/*
All of the code within the ZingChart software is developed and copyrighted by ZingChart, Inc., and may not be copied,
replicated, or used in any other software or application without prior permission from ZingChart. All usage must coincide with the
ZingChart End User License Agreement which can be requested by email at support@zingchart.com.

Build 2.9.1
*/
if(typeof(ZC)==="undefined"){if(window.ZC={AV:function(e,i){if(e.indexOf)return e.indexOf(i);for(var t=0,n=e.length;t<n;t++)if(e[t]===i)return t;return-1},VERSION:"2.9.1",VERSIONID:"2.9.1.2020.07.22",LICENSEKEY:"",ABZ:!1,CHARTS:["null","null3d","line","line3d","vline","area","area3d","varea","bar","bar3d","vbar","vbar3d","hbar","hbar3d","scatter","hscatter","bubble","hbubble","pie","pie3d","ring","ring3d","nestedpie","mixed","mixed3d","hmixed","radar","bullet","vbullet","hbullet","funnel","vfunnel","hfunnel","piano","heatmap","stock","range","vrange","gauge","venn"],EQUIV:{floatbar:["vfloatbar","hfloatbar"],boxplot:["vboxplot","hboxplot"],waterfall:["vwaterfall","hwaterfall"],populationpyramid:["population-pyramid","pop-pyramid"],bubblepie:["bubble-pie","bubblepie"],bar:["column","vbar"],radar:["polar","radar"],stream:["vstream"]},ALIAS:{ring:"pie"},execFn:function(e,i){var t=[].slice.call(arguments).splice(2);return ZC.evalFn(e,i).apply(i,t)},evalFn:function(e,i){for(var t=e.split("."),n=t.pop(),a=0;a<t.length;a++)i=i[t[a]];return i[n]},cache:{data:{},size:0,add:function(e,i){ZC.cache.data[e]=i,ZC.cache.size++,ZC.cache.size>2048&&(ZC.cache.data={},ZC.cache.size=0)}},DEBUG:0,TS:{},MAX:Number.MAX_VALUE,IMG404:[],BLANK:"",TTLOCK:!1,REFRESH_TICK:{},ASYNC_TICK:[],COLORS:[],SEQ:0,LOGO_ABOUT:"",IMAGES:{"zc.logo":""},hosted:!1,adapter:"",flash:null,canvas:null,svg:null,vml:null,move:!1,objmove:!1,compat:function(){ZC.flash=ZC.canvas=ZC.svg=ZC.vml=!1;var e=!!document.createElement("canvas").getContext,i=!1;e&&(i="function"==typeof document.createElement("canvas").getContext("2d").fillText),ZC.canvas=e&&i,ZC.svg=document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");var t=document.body.appendChild(document.createElement("div")),n=document.createElement("zcv:shape");n.className="zcvml",n.setAttribute("id","vml_flag1"),n.setAttribute("adj",new Object),t.appendChild(n),n.style.behavior="url(#default#VML)",ZC.vml=!n||"object"==typeof n.adj,t.parentNode.removeChild(t);var a=!1;navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]?a=navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin:document.all&&-1===navigator.appVersion.indexOf("Mac")&&(a=new Function('try { var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj) { xObj = null; return true; } } catch (e) { return false; }')()),ZC.flash=a?1:0},quirks:!(document.compatMode&&"CSS1Compat"===document.compatMode),ie67:!!/MSIE (\d+\.\d+);/.test(navigator.userAgent)&&parseFloat(RegExp.$1)<8,ie678:!!/MSIE (\d+\.\d+);/.test(navigator.userAgent)&&parseFloat(RegExp.$1)<9,mobile:/Mobile|BlackBerry|Opera Mini|PPC|Windows CE|Android/.test(navigator.userAgent),ipad:/iPad/.test(navigator.userAgent),iphone:/iPhone/.test(navigator.userAgent),websockets:"WebSocket"in window,webstorage:"sessionStorage"in window,RE:[],WA:[],DX:[0,0],ACK:null,_cp_:function(e,i,t,n,a,l){null===ZC._n_(t)&&(t=!0),null===ZC._n_(n)&&(n=!0),null===ZC._n_(a)&&(a=!1);var o=(l=l||[]).length;for(var r in e)if(0===o||o>0&&-1===ZC.AV(l,r))if(e[r]instanceof Array){if(n){(null===ZC._n_(i[r])||"override"!==r&&!a)&&(i[r]=[]);for(var s=0,A=e[r].length;s<A;s++)i[r].push(e[r][s])}}else e[r]instanceof Object&&!(e[r]instanceof Function)?n&&(null===ZC._n_(i[r])&&(i[r]={}),i[r]instanceof Object&&!(i[r]instanceof Function)&&ZC._cp_(e[r],i[r],t)):(null===ZC._n_(i[r])||t)&&(i[r]=e[r])},_cpa_:function(e,i){i||(i=[]);for(var t=0,n=e.length;t<n;t++)i.push(e[t])},_inj_:function(e,i){var t={};ZC._cp_(e,t),ZC._cp_(i,e),ZC._cp_(t,e)},_todash_:function(e,i,t){if("dashed"!==zingchart.SYNTAX){void 0===i&&(i=!0);var n,a,l=(t=t||[]).length;for(var o in e)if(e.hasOwnProperty(o)&&(0===l||l>0&&-1===ZC.AV(t,o))){var r=o.substring(0,1);if("."!==r&&"#"!==r)if(e[o]instanceof Array)if(ZC.U7(o)!==o){for(e[ZC.U7(o)]=[],n=0,a=e[o].length;n<a;n++)ZC._todash_(e[o][n]),e[ZC.U7(o)].push(e[o][n]);delete e[o]}else for(n=0,a=e[o].length;n<a;n++)ZC._todash_(e[o][n]);else e[o]instanceof Object&&!(e[o]instanceof Function)?(ZC.U7(o)!==o&&(e[ZC.U7(o)]={},ZC._cp_(e[o],e[ZC.U7(o)]),delete e[o]),i&&ZC._todash_(e[ZC.U7(o)],i,t)):ZC.U7(o)!==o&&(e[ZC.U7(o)]=e[o],delete e[o])}}},Z8:function(e,i){for(var t in e)if(e.hasOwnProperty(t)){var n;if((n=t.replace(i+"-",""))!==t)if(e[n]=e[t],e[t]instanceof Array)for(var a=0,l=e[t].length;a<l;a++)ZC.Z8(e[t][a],i);else e[t]instanceof Object&&!(e[t]instanceof Function)&&ZC.Z8(e[t],i)}},A98:function(e){for(var i="",t=0,n=e.length;t<n;t++){var a=t%2==0?t:e.length-t;i+=e.substring(a,a+1)}return i=i.replace(/\./g,"d")},AD7:function(e){var i=e;return i=i.replace("*","&"),i=i.replace("9","3"),i=i.replace("l","1")},A9T:function(e){return e.replace(/[a-zA-Z]/g,function(e){return String.fromCharCode((e<="Z"?90:122)>=(e=e.charCodeAt(0)+13)?e:e-26)})},AC3:function(e,i){var t=ZC.WS(ZC.ABS(e)),n=ZC.WS(ZC.A1W(i)),a=t.length;if(0===a)return"";for(var l,o,r=t[a-1],s=t[0],A=2654435769,C=Math.floor(6+52/a)*A;0!==C;){o=C>>>2&3;for(var c=a-1;c>0;c--)l=((r=t[c-1])>>>5^s<<2)+(s>>>3^r<<4)^(C^s)+(n[3&c^o]^r),s=t[c]-=l;l=((r=t[a-1])>>>5^s<<2)+(s>>>3^r<<4)^(C^s)+(n[3&c^o]^r),s=t[0]-=l,C-=A}return decodeURIComponent(ZC.AC2(ZC.A5H(t)))},AE0:function(e,i){e=encodeURIComponent(e);var t=ZC.WS(ZC.A1W(e)),n=ZC.WS(ZC.A1W(i)),a=t.length;if(0===a)return"";1===a&&(t[a++]=0);for(var l,o,r=t[a-1],s=t[0],A=Math.floor(6+52/a),C=0;A-- >0;){o=(C+=2654435769)>>>2&3;for(var c=0;c<a-1;c++)l=(r>>>5^(s=t[c+1])<<2)+(s>>>3^r<<4)^(C^s)+(n[3&c^o]^r),r=t[c]+=l;l=(r>>>5^(s=t[0])<<2)+(s>>>3^r<<4)^(C^s)+(n[3&c^o]^r),r=t[a-1]+=l}return ZC.ABU(ZC.A5H(t))},WS:function(e){for(var i=new Array(Math.ceil(e.length/4)),t=0;t<i.length;t++)i[t]=e[4*t]+(e[4*t+1]<<8)+(e[4*t+2]<<16)+(e[4*t+3]<<24);return i},A5H:function(e){for(var i=[],t=0;t<e.length;t++)i.push(255&e[t],e[t]>>>8&255,e[t]>>>16&255,e[t]>>>24&255);return i},ABU:function(e){for(var i="",t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=0;n<e.length;n++)i+=t[e[n]>>4]+t[15&e[n]];return i},ABS:function(e){for(var i=[],t="0x"===e.substr(0,2)?2:0;t<e.length;t+=2)i.push(parseInt(e.substr(t,2),16));return i},AC2:function(e){for(var i="",t=0;t<e.length;t++)0!==e[t]&&(i+=String.fromCharCode(e[t]));return i},A1W:function(e){for(var i=[],t=0;t<e.length;t++)i.push(e.charCodeAt(t));return i},_i_:function(e){return-1!==String(e).indexOf("e-")?0:""===(e=String(e).replace(/[^0-9\.\-]/gi,""))?0:Math.round(e)},_f_:function(e){return e=parseFloat(e),isNaN(e)?0:e},_x_:function(e,i){return void 0===i&&(i=2),parseFloat(Number(e).toFixed(i))},_a_:function(e){return Math.abs(e)},_b_:function(e){return"false"!==e&&"0"!==e&&("true"===e||"1"===e||!!e&&!0)},_p_:function(e){var i=(e=String(e).replace(/[^0-9\.\%\-]/gi,"")).indexOf("%");return-1!==i&&(e=e.substring(0,i),e=ZC._f_(e)/100),e},_h_:function(e){return window.toStaticHTML?window.toStaticHTML(e):e},_n_:function(e){return null===e||void 0===e?null:e},_c_:function(e,i){return null===e||void 0===e?i:e},_ang_:function(e){return(e%=360)<0&&(e+=360),e},IG:function(e,i){return ZC._f_(e)+""==e+""?i?ZC._f_(e):ZC._a_(e):-1!==(e+="").indexOf("%")?ZC._f_(e.replace("%",""))/100:-1!==e.indexOf("px")?ZC._f_(e.replace("px","")):ZC._f_(e)},QE:function(e){return parseInt(e,16)},OS:function(e){return ZC._i_(e).toString(16)},_r_:function(e,i){return parseInt(e+(i-e)*Math.random(),10)},_l_:function(e,i,t){return e=e<i?i:e,e=e>t?t:e},DT:function(e,i,t,n){return n?i<e&&e<t||t<e&&e<i:i<=e&&e<=t||t<=e&&e<=i},BQ:function(e,i){return Math.max(e,i)},CY:function(e,i){return Math.min(e,i)},A1H:function(e,i){null===ZC._n_(i)&&(i=!1);for(var t=0,n=e.length,a=-Number.MAX_VALUE;t<n;t++)i&&0==e[t]||(a=Math.max(a,e[t]));return a},XS:function(e,i){null===ZC._n_(i)&&(i=!1);for(var t=0,n=e.length,a=Number.MAX_VALUE;t<n;t++)i&&0==e[t]||(a=Math.min(a,e[t]));return a},_rcolor_:function(){for(var e=(16777215*Math.random()+1<<0).toString(16);e.length<6;)e="0"+e;return"#"+e},AA5:function(e,i){for(var t,n=ZC._f_(i),a=Number.MAX_VALUE,l=0,o=0,r=e.length;o<r;o++)(t=Math.abs(ZC._f_(e[o])-n))<a&&(l=o,a=t);return l},AEK:function(e){var i=e.split(".");return i[i.length-1]||""},GT:function(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},H0:function(e,i){return i=i||Math.E,isFinite(Math.log(e)/Math.log(i))?Math.log(e)/Math.log(i):0},TO:function(e){return 360*e/(2*Math.PI)},SZ:function(e){return 2*e*Math.PI/360},EF:function(e){return Math.cos(ZC.SZ(e))},EO:function(e){return Math.sin(ZC.SZ(e))},P4:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},EC:function(e){return-1!==e.indexOf("-")?e.replace(/(\-[a-z0-9])/g,function(e){return e.toUpperCase().replace("-","")}):e},U7:function(e){return e.toUpperCase()!==e&&-1===e.indexOf("-")&&e.substring(0,1).toLowerCase()===e.substring(0,1)?e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}).replace(/([0-9]+)/g,function(e){return"-"+e.toLowerCase()}).replace("-3d","3d"):e},AEL:function(e){return ZC.XL.md5(e)},AK:function(e){return document.getElementById(e)},A1F:function(e,i){return e[0].length<i[0].length?1:e[0].length>i[0].length?-1:0},ZH:function(e){window.setTimeout(e,zingchart.TIMEOUT)},_fixed_:function(e,i){return i>=0&&i<=20?e.toFixed(i):""+e},_nfind_:function(e,i,t,n){var a=i.R[t].BU,l=i.R[n].BU;if(e==a)return t;if(e==l)return n;var o=ZC._i_((t+n)/2);if(!i.R[o]){for(;!i.R[o]&&o<n;)o++;if(o===n){for(o=ZC._i_((t+n)/2);!i.R[o]&&o>t;)o--;if(o===t)return null}}var r=i.R[o].BU;return o!==t&&o!==n?e==r?o:e>r?ZC._nfind_(e,i,o,n):ZC._nfind_(e,i,t,o):e==r?o:null},_tx_:function(e){var i,t,n,a,l=[1,1,0,0];if(zingchart.DEV.LOOKUPCSSTRANSFORM&&!ZC.vml&&ZC.AK(e)){var o=ZC.AK(e);for(i="";o&&(""===i||"none"===i);)i=ZC.A4(o).css("transform")||"",o=o.parentNode;-1!==(t=i.indexOf("matrix("))&&(n=i.indexOf(")",t),a=i.substring(t+7,n-t).split(","),l=[ZC._f_(a[0]),ZC._f_(a[3]),ZC._f_(a[4]),ZC._f_(a[5])])}return l}},ZC.hasPassive=!1,ZC.SEC=1e3,ZC.MIN=60*ZC.SEC,ZC.HR=60*ZC.MIN,ZC.DAY=24*ZC.HR,ZC.MON=30*ZC.DAY,ZC.YR=365*ZC.DAY,ZC.MAPTX=0,window.JSON=window.JSON||{},JSON.stringify=JSON.stringify||function(e){var i=typeof e;if("object"!==i||null===e)return"string"===i&&(e='"'+e.replace("\\","\\\\").replace('"','"')+'"'),String(e);var t,n,a=[],l=e&&e.constructor===Array;for(t in e)"function"!=typeof e[t]&&("string"===(i=typeof(n=e[t]))?n='"'+n.replace("\\","\\\\").replace('"','\\"')+'"':"object"===i&&null!==n&&(n=JSON.stringify(n)),a.push((l?"":'"'+t+'":')+String(n)));return(l?"[":"{")+String(a)+(l?"]":"}")},JSON.parse=JSON.parse||function(KS){return""===KS&&(KS='""'),eval("("+KS+")")},function(){var e=!1,i=/xyz/.test(function(){xyz})?/\bb\b/:/.*/;ZC.C8=function(){},ZC.C8.C7=function(t){function n(){!e&&this.$i&&this.$i.apply(this,arguments)}var a=this.prototype;e=!0;var l=new this;e=!1;for(var o in t)l[o]="function"==typeof l[o]&&"function"==typeof a[o]&&i.test(t[o])?function(e,i){return function(){var t=this.b;this.b=a[e];var n=i.apply(this,arguments);return this.b=t,n}}(o,t[o]):t[o];return n.prototype=l,n.constructor=n,n.C7=arguments.callee,n}}(),ZC.AAX=function(e){this.H=e,this.A9M=function(e,i){var t,n=this,a=n.B7.palette;if(null!==ZC._n_(i)&&null!==ZC._n_(a[i])&&(a=a[i]),null!==ZC._n_(a[e])){var l=a[e];return null===ZC._n_(l[2])&&(l[2]=ZC.AP.QT(l[1],10)),null===ZC._n_(l[3])&&(l[3]=ZC.AP.QT(l[1],10)),l}var o=["#00BAF2","#E80C60","#E2D51A","#9B26AF","#FB301E","#00AE4D","#20398B"];t=null!==ZC._n_(o[e-n.B7.palette.length])?o[e-n.B7.palette.length]:"#"+ZC.XL.md5(e).substr(e%20,6);var r=ZC.AP.QT(t,10),s=ZC.AP.QT(t,20),A="#FFF";return n.B7.palette&&n.B7.palette[0]&&n.B7.palette[0][0]&&(A=n.B7.palette[0][0]),[A,t,r,s]},this.A8O=function(e){e&&ZC._cp_(e,this.B7,!0)},this.AAP=function(e){var i=this;null!==ZC._n_(i.NU[e])&&(ZC._todash_(i.NU[e]),ZC._cp_(i.NU[e],i.B7))},this.NU={},ZC._cp_(zingchart.THEMES,this.NU),this.NU.classic={palette:[["#fff","#6a921f","#a7da47","#89b92e"],["#fff","#007fa3","#00b0e1","#0392bb"],["#fff","#a62b02","#ef4810","#cc3300"],["#fff","#b79007","#f9c332","#da9b04"],["#fff","#563d02","#84680a","#6e4503"],["#fff","#0b32a0","#4d62b1","#1540a0"]],graph:{refresh:{curtain:{alpha:.5,"background-color":"#999",color:"#000","font-size":15,bold:1,text:"Loading..."}},"background-color":"#e1eaec #edf3f5",title:{"font-size":14,bold:1,color:"#fff","background-color":"#00bbf1 #05a0cd",padding:6},subtitle:{"font-size":11,bold:1,color:"#333","margin-top":30,padding:6},source:{"font-size":10,color:"#333",width:"100%",bold:1,"text-align":"right",height:20,margin:"auto 0 0 auto",padding:5},nodata:{"font-size":12,color:"#333","text-align":"center","vertical-align":"middle",text:""},SCALE:{"font-size":11,"line-width":2,"line-color":"#3e6c7b",item:{flat:!0},"ref-line":{"line-width":1,"line-color":"#3e6c7b"},guide:{visible:1,"line-width":1,"line-style":"solid","line-color":"#2c4a59",alpha:.2},"minor-guide":{visible:1,"line-width":1,"line-style":"solid","line-color":"#aaa",alpha:.1},tick:{visible:1,size:6,placement:"outer","line-width":2,"line-color":"#3e6c7b"},"minor-tick":{visible:1,size:4,placement:"outer","line-width":1,"line-color":"#3e6c7b"},label:{color:"#2c4a59",flat:!0}},"scroll-x":{bar:{height:16},handle:{height:16}},"scroll-y":{bar:{width:16},handle:{width:16}},legend:{"background-color":"#fff","border-width":1,alpha:.75,"border-alpha":.75,"border-color":"#666","shadow-distance":3,header:{padding:"4 6",color:"#fff","border-width":1,"border-color":"#3e6c7b","background-color":"#3e6c7b"},footer:{padding:"2 6","background-color":"#ccc","border-width":1,"border-color":"#666"},marker:{"border-color":"#333","border-width":1}},plot:{"value-box":{flat:!0},marker:{shadow:1,"line-width":1,"border-width":1},"hover-marker":{"line-width":1,"border-width":1}},guide:{"line-width":1,"line-color":"#999",alpha:1,"scale-label":{text:"%l",padding:"3 6"},"plot-label":{padding:"3 6"}}},line:{plot:{"shadow-alpha":.5,marker:{size:4},"hover-marker":{size:5}}},area:{plot:{"shadow-alpha":.5,marker:{size:4},"hover-marker":{size:5}}},vbar:{plot:{"fill-angle":90,shadow:0}},hbar:{plot:{"fill-angle":180,shadow:0}},piano:{plotarea:{"mask-tolerance":[0,0]},plot:{shadow:0}},stock:{plot:{shadow:0}},vbullet:{plot:{shadow:0}},hbullet:{plot:{"fill-angle":0,shadow:0}},scatter:{plot:{marker:{size:4},"hover-marker":{size:5}}},hscatter:{plot:{marker:{size:4},"hover-marker":{size:5}}},bubble:{plot:{marker:{"border-width":0},"hover-marker":{"border-width":0}}},hbubble:{plot:{marker:{"border-width":0},"hover-marker":{"border-width":0}}},pie:{plot:{"border-width":1}},nestedpie:{plot:{"border-width":1}},radar:{plot:{marker:{size:3},"hover-marker":{size:4}},"scale-k":{guide:{alpha:.5,"background-color":"#eee #ddd"}}},gauge:{"scale-r":{"background-color":"-1",guide:{alpha:.5,"background-color":"#eee #ddd"},item:{"offset-r":0},ring:{size:1,items:[{"background-color":"#999",alpha:.8},{"background-color":"#666",alpha:.8}]}}},vfunnel:{plotarea:{margin:"50 100"},SCALE:{"line-width":0,tick:{"line-width":0},"minor-tick":{"line-width":0},guide:{"line-width":0},"minor-guide":{"line-width":0}},"scale-y":{guide:{alpha:.25,"background-color":"-1 #58595B"}},"scale-y-n":{guide:{alpha:.25,"background-color":"-1 #58595B"}},plot:{"border-width":1}},hfunnel:{plotarea:{margin:"50 100"},"scale-x":{label:{"font-angle":270}},"scale-x-n":{label:{"font-angle":90}},SCALE:{"line-width":0,tick:{"line-width":0},"minor-tick":{"line-width":0},guide:{"line-width":0},"minor-guide":{"line-width":0}},"scale-y":{label:{"font-angle":0},item:{"text-align":"center"},guide:{alpha:.25,"background-color":"#58595B -1"}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"},guide:{alpha:.25,"background-color":"#58595B -1"}},plot:{"border-width":1}},range:{plot:{marker:{type:"circle",size:4},"hover-marker":{size:5}}},line3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":0,"line-width":1}},area3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":0,"line-width":1}},mixed3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":1}},vbar3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":1}},hbar3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":1}},pie3d:{plot:{"border-width":1}},"-":""},this.NU.light={palette:[["#fff","#29A2CC","#29A2CC","#1089B3"],["#fff","#D31E1E","#D31E1E","#BA0505"],["#fff","#7CA82B","#7CA82B","#638F12"],["#fff","#EF8535","#EF8535","#D66C1C"],["#fff","#A14BC9","#A14BC9","#8832B0"],["#fff","#A05F18","#A05F18","#874600"],["#fff","#265E96","#265E96","#0D457D"],["#fff","#6B7075","#6B7075","#52575C"],["#fff","#96C245","#96C245","#7CA82B"]],graph:{refresh:{curtain:{alpha:.5,"background-color":"#999",color:"#000","font-size":15,bold:1,text:"Loading..."}},"background-color":"#ffffff",title:{"font-size":21,bold:1,color:"#414042","background-color":"none",padding:6},subtitle:{"font-size":11,bold:1,color:"#414042","margin-top":30,padding:6},source:{"font-size":10,color:"#414042",width:"100%",bold:1,"text-align":"right",height:20,margin:"auto 0 0 auto",padding:5},nodata:{"font-size":12,color:"#333","text-align":"center","vertical-align":"middle",text:"No Data","background-color":"#BBBBBB",alpha:.8},SCALE:{"font-size":11,"line-width":1,"line-color":"#8C8C8C",item:{"font-size":12,flat:!0,color:"#808285"},"ref-line":{"line-width":1,"line-color":"#D1D3D4"},guide:{visible:1,"line-width":1,"line-style":"solid","line-color":"#DCDCDC",alpha:1},"minor-guide":{visible:1,"line-width":1,"line-style":"solid","line-color":"#aaa",alpha:.1},tick:{visible:1,size:5,placement:"outer","line-width":1,"line-color":"#8C8C8C"},"minor-tick":{visible:1,size:3,placement:"outer","line-width":1,"line-color":"#A7A9AC"},label:{color:"#414042",flat:!0}},"scale-x":{normalize:!0,guide:{visible:!1}},scroll:{bar:{"background-color":"#F0F1F1",margin:1},handle:{"background-color":"#A7A9AC","border-radius":6}},"scroll-x":{bar:{height:16,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"},handle:{height:10,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"}},"scroll-y":{bar:{width:16,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"},handle:{width:10,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"}},"scroll-xi":{bar:{width:16,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"},handle:{width:10,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"}},"scroll-yi":{bar:{height:16,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"},handle:{height:10,"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"}},preview:{"background-color":"#fff","border-width":1,"border-color":"#A7A9AC",live:!0,mask:{"background-color":"#999"},active:{alpha:0},handle:{width:11,"border-width":2,"border-radius":3,"line-color":"#C6C6C6","border-color":"#A7A9AC","background-color":"#F0F1F1"},"handle-top":{height:11},"handle-bottom":{height:11}},tooltip:{shadow:1,"shadow-angle":45,"shadow-distance":1,"shadow-alpha":.25,"border-width":1,"border-color":"#fff","border-alpha":1},zoom:{"preserve-zoom":1,"background-color":"#929497"},legend:{"background-color":"#fff","border-width":1,shadow:0,"shadow-alpha":.2,alpha:1,"border-alpha":1,"border-color":"#cccccc",header:{padding:"5 0 5 10",color:"#222222","background-color":"none","border-width":0,"border-top":"0px solid none","border-bottom":"1px solid #cccccc"},footer:{padding:"5 0 5 10","border-top":"1px solid #cccccc"},shader:{"background-color":"#F0F1F1","line-color":"#C6C6C6",margin:2,height:8,"line-width":2,"line-style":"dotted"},icon:{"line-color":"#C6C6C6","line-width":2,style:"small"},marker:{"border-color":"#fff","border-width":1},"page-on":{"background-color":"#929497"},"page-off":{"background-color":"#D1D2D3"},scroll:{bar:{"background-color":"none","margin-top":3,"margin-bottom":3},handle:{"background-color":"#D1D2D3","border-top":"none","border-right":"none","border-bottom":"none","border-left":"none","border-radius":6,width:12,height:12}}},plot:{"value-box":{flat:!0},marker:{shadow:0,"line-width":1,"border-width":1,"border-color":"#fff"},"hover-marker":{"line-width":1,"border-width":1},monotone:!0},guide:{"line-width":1,"line-color":"#8C8C8C",alpha:1,"scale-label":{text:"%l",padding:"3 6"},"plot-label":{padding:"3 6"}}},line:{plot:{"line-width":2,shadow:0,marker:{size:4},"hover-state":{},"hover-marker":{size:5,"border-width":1,"border-color":"#fff"}}},area:{plot:{"line-width":2,shadow:0,"alpha-area":.25,"background-color-style":"solid",marker:{size:4},"hover-state":{},"hover-marker":{size:5,"border-width":1,"border-color":"#fff"}}},vbar:{plot:{"fill-angle":90,shadow:0}},hbar:{plot:{"fill-angle":180,shadow:0}},piano:{plotarea:{"mask-tolerance":[0,0]},plot:{shadow:0},"scale-x":{guide:{visible:!0}}},stock:{plot:{shadow:0}},vbullet:{plot:{shadow:0,goal:{"border-width":1,"border-color":"#fff",height:8}}},hbullet:{plot:{"fill-angle":0,shadow:0,goal:{"border-width":1,"border-color":"#fff",width:8}}},scatter:{plot:{"line-color":"%palatte-0","border-color":"%palatte-0",marker:{size:5},"hover-marker":{size:6}},"scale-x":{guide:{visible:!0}}},hscatter:{plot:{"line-color":"%palatte-0","border-color":"%palatte-0",marker:{size:4},"hover-marker":{size:5}},"scale-x":{guide:{visible:!0}}},bubble:{plot:{marker:{"border-width":1,"border-color":"#fff"},"hover-marker":{"border-width":1,"border-color":"#fff"}},"scale-x":{guide:{visible:!0}}},hbubble:{plot:{marker:{"border-width":1,"border-color":"#fff"},"hover-marker":{"border-width":1,"border-color":"#fff"}},"scale-x":{guide:{visible:!0}}},pie:{plot:{shadow:0,"border-width":1,"value-box":{placement:"in","font-size":16,text:"%node-percent-value%"}}},nestedpie:{plot:{"border-width":1}},radar:{plot:{shadow:0,"line-width":2,"background-color":"%palette-1","active-area":!0,marker:{size:4},"hover-marker":{size:5,"border-color":"#fff"}},"scale-k":{guide:{"line-width":1,"line-style":"solid","line-color":"#8C8C8C","line-segment-size":6,"line-gap-size":6,alpha:1,"background-color":"#fff #F7F8F8"},tick:{"line-color":"#8C8C8C","line-width":1,size:10}},"scale-r":{},"scale-v":{"ref-line":{"line-color":"#8C8C8C","line-width":1},tick:{"line-color":"#8C8C8C","line-width":1},guide:{"line-color":"#CDCDCD","line-width":1}}},gauge:{plot:{shadow:0},scale:{"size-factor":1},"scale-r":{aperture:270,tick:{size:11,"line-width":2},"background-color":-1,guide:{"background-color":"#fff"},ring:{size:8,"background-color":"#CDCDCD"},center:{size:20,"background-color":"#fff","border-width":6,"border-color":"#1089B3"}}},vfunnel:{plotarea:{margin:"50 100"},SCALE:{"line-width":0,tick:{"line-width":0},"minor-tick":{"line-width":0},guide:{"line-width":1,"line-style":"solid","line-color":"#CDCDCD","line-segment-size":6,"line-gap-size":6,alpha:1},"minor-guide":{"line-width":0}},"scale-x":{visible:!1,guide:{visible:0}},"scale-y":{guide:{"background-color":"-1",alpha:1}},"scale-y-n":{guide:{"background-color":"-1"}},plot:{"border-width":1,"border-color":"#fff",shadow:0,"hover-state":{"line-color":"-1","border-color":"-1"}}},hfunnel:{plotarea:{margin:"50 100"},"scale-x":{visible:!1,guide:{visible:0},label:{"font-angle":270}},"scale-x-n":{label:{"font-angle":90}},SCALE:{"line-width":0,tick:{"line-width":0},"minor-tick":{"line-width":0},guide:{"line-width":1,"line-style":"solid","line-color":"#CDCDCD","line-segment-size":6,"line-gap-size":6,alpha:1},"minor-guide":{"line-width":0}},"scale-y":{guide:{"background-color":"-1",alpha:1},label:{"font-angle":0},item:{"text-align":"center"}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"},guide:{"background-color":"-1"}},plot:{"border-width":1,"border-color":"#fff",shadow:0,"hover-state":{"line-color":"-1","border-color":"-1"}}},range:{plot:{"background-color":"%palette-1",marker:{type:"circle",size:4},"hover-marker":{size:5}}},line3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":0,"line-width":1}},area3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":0,"line-width":1}},mixed3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":1}},vbar3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":1}},hbar3d:{SCALE:{"line-color":"#ddd",tick:{visible:!1}},plot:{"border-width":1}},pie3d:{plot:{"border-width":1}},venn:{plot:{"border-width":0,shadow:0,alpha:.75,"background-color":"%palette-1"}},root:{gui:{"context-menu":{visible:!0,width:"125px",padding:"5 0","background-color":"#595959","border-width":0,"border-color":"#595959",position:"left",button:{visible:ZC.mobile,alpha:0},gear:{"background-color":"#000",type:"hamburger",alpha:1},item:{"background-color":"#595959","text-align":"left",padding:"4 20 4 15","border-width":0,"border-color":"#595959","font-size":"12px",color:"#fff","hover-state":{"background-color":"#414141"}},separator:{"line-width":1,"line-color":"#969696"}},"context-menu[mobile]":{item:{padding:"6 10 6 6"}}}},"-":""},this.NU.light.graph["crosshair-x"]=this.NU.light.graph["crosshair-y"]=this.NU.light.graph.guide,this.NU.dark={},ZC._cp_(this.NU.light,this.NU.dark,!0,!0),ZC._cp_({graph:{"background-color":"#221F1F",title:{color:"#fff"},subtitle:{color:"#fff"},source:{color:"#fff"},SCALE:{"line-color":"#D1D3D4",item:{color:"#D1D3D4"},"ref-line":{"line-color":"#D1D3D4"},guide:{"line-color":"#58595B"},"minor-guide":{"line-color":"#58595B"},tick:{"line-color":"#D1D3D4"},"minor-tick":{"line-color":"#D1D3D4"},label:{color:"#D1D3D4"}},scroll:{bar:{"background-color":"#6C6D70"},handle:{"background-color":"#A7A9AC"}},"scroll-x":{bar:{"border-top":"0px solid none","border-right":"2px solid #D1D3D4","border-bottom":"2px solid #D1D3D4","border-left":"2px solid #D1D3D4"},handle:{"border-top":"none","border-right":"none","border-bottom":"none","border-left":"none"}},"scroll-y":{bar:{"border-top":"2px solid #D1D3D4","border-right":"0px solid none","border-bottom":"2px solid #D1D3D4","border-left":"2px solid #D1D3D4"}},preview:{"background-color":"#221F1F"},tooltip:{"border-color":"#000"},legend:{"background-color":"#221F1F",header:{color:"#fff",shader:{"background-color":"#414042","line-color":"#676667"}},footer:{color:"#D1D3D4","background-color":"#414042","border-top":"0px solid none","border-right":"2px solid #A7A9AC","border-bottom":"2px solid #A7A9AC","border-left":"2px solid #A7A9AC"},shader:{"background-color":"#414042","line-color":"#676667"},icon:{"line-color":"#676667"},"page-status":{color:"#D1D3D4"},"page-on":{"background-color":"#D1D2D3"},"page-off":{"background-color":"#929497"},marker:{"border-color":"#000"},item:{color:"#D1D3D4"}},plot:{marker:{"border-color":"#221F1F"}},guide:{"line-color":"#D1D3D4","scale-label":{"background-color":"#929497"},"plot-label":{"background-color":"#221F1F",color:"#FFF","border-color":"#5a5a5a"}}},line:{plot:{"hover-marker":{"border-color":"#221F1F"}}},area:{plot:{"hover-marker":{"border-color":"#221F1F"}}},vbullet:{plot:{goal:{"border-color":"#221F1F"}}},hbullet:{plot:{goal:{"border-color":"#221F1F"}}},bubble:{plot:{marker:{"border-color":"#221F1F"},"hover-marker":{"border-color":"#221F1F"}}},hbubble:{plot:{marker:{"border-color":"#221F1F"},"hover-marker":{"border-color":"#221F1F"}}},pie:{plot:{"border-color":"#221F1F"}},radar:{plot:{"hover-marker":{"border-color":"#221F1F"}},"scale-k":{guide:{"line-color":"#58595B","background-color":"#221F1F #312F30"},tick:{"line-color":"#D1D3D4"}},"scale-v":{"ref-line":{"line-color":"#58595B"},tick:{"line-color":"#58595B"},guide:{"line-color":"#58595B"}}},gauge:{"scale-r":{guide:{"background-color":"#221F1F"},ring:{"background-color":"#57585B"}}},vfunnel:{SCALE:{guide:{"line-color":"#58595B"}},plot:{"border-color":"#221F1F","hover-state":{"line-color":"#58595B","border-color":"#221F1F"}}},hfunnel:{SCALE:{guide:{"line-color":"#58595B"}},"scale-y":{guide:{alpha:.25,"background-color":"#b6c8cf -1"}},"scale-y-n":{guide:{alpha:.25,"background-color":"#b6c8cf -1"}},plot:{"border-color":"#221F1F","hover-state":{"line-color":"#58595B","border-color":"#221F1F"}}},root:{gui:{"context-menu":{gear:{"background-color":"#FFF"}}}},"-":""},this.NU.dark,!0,!0),this.NU.dark.graph["crosshair-x"]=this.NU.dark.graph["crosshair-y"]=this.NU.dark.graph.guide,this.NU.mini={graph:{title:{width:"100%",padding:"1 2 2","font-size":10},subtitle:{width:"100%",padding:"1 2 2","margin-top":14,"font-size":9},plotarea:{width:"100%",height:"100%",margin:"18 4 4 4"},SCALE:{visible:0},tooltip:{shadow:0,"border-radius":7},legend:{visible:0},preview:{visible:0},guide:{"line-width":1,"line-color":"#ccc",alpha:1,"scale-label":{text:"%l",padding:"3 6"},"plot-label":{"border-color":"#ccc","border-radius":5,padding:"3 6"}},plot:{shadow:0,"value-box":{visible:0},"hover-state":{visible:0},"hover-marker":{visible:0},"max-trackers":99999,"max-nodes":99999}},line:{plot:{"line-width":1,marker:{type:"none"}}},line3d:{"3d-aspect":{depth:20,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0,zoom:.9}},area:{plot:{"line-width":1,marker:{type:"none"}}},area3d:{"3d-aspect":{depth:20,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0,zoom:.9}},scatter:{SCALE:{offset:5},plot:{marker:{size:3,shadow:!1,alpha:.8}}},hscatter:{SCALE:{offset:5},plot:{marker:{size:3,shadow:!1,alpha:.8}}},bubble:{SCALE:{offset:15},plot:{marker:{"fill-type":"none",shadow:!1,alpha:.8},"min-size":3,"max-size":9}},hbubble:{SCALE:{offset:15},plot:{marker:{"fill-type":"none",shadow:!1,alpha:.8},"min-size":3,"max-size":9}},pie:{plotarea:{margin:"18 4 4 4"},plot:{"value-box":{visible:0}},scale:{"size-factor":.95}},pie3d:{plotarea:{margin:"32 4 4 4"},plot:{"value-box":{visible:0}},scale:{"size-factor":1}},nestedpie:{plotarea:{margin:"18 4 4 4"},plot:{"value-box":{visible:0}},scale:{"size-factor":.95}},radar:{plotarea:{margin:"18 4 4 4"},plot:{"line-width":1,marker:{shadow:0,size:2}},scale:{"size-factor":.95}},vbar3d:{"3d-aspect":{depth:20,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0,zoom:.9}},hbar3d:{"3d-aspect":{depth:20,angle:45,"x-angle":0,"y-angle":-20,"z-angle":0,zoom:.9}},venn:{plotarea:{margin:"18 4 4 4"},plot:{"border-width":0}},gauge:{plotarea:{margin:"18 4 4 4"},plot:{indicator:[5]},SCALE:{visible:1},scale:{"size-factor":.9},"scale-r":{"background-color":"-1",aperture:270,tick:{visible:0},item:{visible:0},guide:{visible:0},ring:{size:6,"background-color":"#CDCDCD",items:[]},center:{"border-width":0,size:2,"background-color":"#fff"}}},vfunnel:{plotarea:{margin:"18 4 4 4"}},hfunnel:{plotarea:{margin:"18 4 4 4"}},vbullet:{plot:{"bar-space":.5,goal:{"border-width":0,height:4}}},hbullet:{plot:{"bar-space":.5,goal:{"border-width":0,width:4}}},range:{plot:{"line-width":1,marker:{visible:0},"hover-state":{visible:0}}},"-":""},this.NU.negative={palette:[["#000","#909090","#969696","#9c9c9c"],["#000","#a0a0a0","#a6a6a6","#acacac"],["#000","#b0b0b0","#b6b6b6","#bcbcbc"],["#000","#c0c0c0","#c6c6c6","#cccccc"],["#000","#d0d0d0","#d6d6d6","#dcdcdc"],["#000","#e0e0e0","#e6e6e6","#ececec"],["#000","#f0f0f0","#f6f6f6","#fcfcfc"]],graph:{"background-color":"#111",title:{color:"#fff"},subtitle:{color:"#333"},SCALE:{"font-size":11,"line-width":2,"line-color":"#ccc",guide:{visible:1,"line-width":1,"line-style":"solid","line-color":"#ccc",alpha:.2},"minor-guide":{visible:1,"line-width":1,"line-style":"solid","line-color":"#ccc",alpha:.2},tick:{visible:1,size:6,placement:"outer","line-width":2,"line-color":"#ccc"},"minor-tick":{visible:1,size:4,placement:"outer","line-width":1,"line-color":"#ccc"},label:{color:"#fff"},item:{color:"#fff"}}},radar:{"scale-k":{guide:{alpha:.5,"background-color":"#222 #333"}}},"-":""},this.NU.spark=this.NU.mini,this.B7={root:{gui:{behaviors:[{id:"PageScroll",enabled:"all"},{id:"ViewSource",enabled:"all"},{id:"BugReport",enabled:"none"},{id:"LogScale",enabled:"none"},{id:"LinScale",enabled:"none"},{id:"FullScreen",enabled:"none"},{id:"3D",enabled:"none"},{id:"ExportData",enabled:"none"},{id:"SaveAsImageJPG",enabled:"none"},{id:"DownloadCSV",enabled:ZC.ie678?"none":"all"},{id:"DownloadXLS",enabled:ZC.ie678?"none":"all"}],watermark:{type:1,position:"rb"},history:{margin:"10 auto auto 10",width:30,height:22,padding:4,item:{"background-color":"#369","border-width":1,"border-color":"#69c"},"item-off":{"background-color":"#eee","border-color":"#ddd"}},progress:{"background-color":"#fff",color:"#000"},"context-menu":{padding:0,"border-width":1,"border-color":"#000",button:{visible:ZC.mobile,margin:"5 auto auto 5",alpha:.8,"background-color":"#333 #999","border-radius":8,width:40,height:40},gear:{"background-color":"#fff #f6f6f6",type:"gear6",alpha:.8},item:{"background-color":"#36393D","text-align":"left",padding:"4 20 4 8","border-width":1,"border-color":"#000",color:"#fff","hover-state":{"background-color":"#0084AA"}},separator:{"line-width":1,"line-color":"#000000"}},"context-menu[mobile]":{item:{padding:"6 10 6 6"}}}},palette:[],graph:{title:{width:"100%",bold:1,"font-size":13},subtitle:{width:"100%",bold:1,"font-size":11},scroll:{bar:{"background-color":"#e1eaec","border-color":"#ddd"},handle:{"background-color":"#ddd","border-color":"#ccc","border-width":2,"border-top":"2px solid #eee","border-left":"2px solid #eee","border-right":"2px solid #999","border-bottom":"2px solid #999"}},"scroll-x":{bar:{height:16},handle:{height:16}},"scroll-y":{bar:{width:16},handle:{width:16}},"scroll-xi":{bar:{width:16},handle:{width:16}},"scroll-yi":{bar:{height:16},handle:{height:16}},preview:{width:"100%",height:50,margin:"auto 50 20 50","border-width":1,shadow:0,"background-color":"#f0f0f0","border-color":"#999",mask:{alpha:.5,"background-color":"#333"},active:{alpha:.1,"background-color":"#999"},handle:{width:9,height:16,"border-width":1,"line-width":1,"line-color":"#111","border-color":"#444","border-radius":2,"background-color":"#e6e6e6"},"handle-top":{width:16,height:9},"handle-bottom":{width:16,height:9}},"preview[yx]":{width:50,height:"100%",margin:"20 auto 50 20"},plotarea:{width:"100%",height:"100%",margin:"60 50 65 50"},"plotarea[preview]":{margin:"60 50 105 50"},SCALE:{"line-width":1,guide:{"line-width":1,"line-color":"#ddd"},tick:{size:6,"line-width":2},"minor-guide":{"line-width":1,"line-color":"#ddd"},"minor-tick":{size:4,"line-width":1},label:{bold:1,padding:6,flat:!0},item:{padding:2,"auto-align":!0,flat:!0},marker:{"line-width":1,"line-color":"#000","background-color":"#ccc"},"transform[date]":{item:{"font-size":10,padding:2,color:"#000","background-color":"#fff"}}},"SCALE[3d]":{"background-color":"#ccc"},"scale-y[default]":{label:{"font-angle":270},item:{"text-align":"right"}},"scale-y[opposite]":{label:{"font-angle":90},item:{"text-align":"left"}},plot:{error:{"line-width":1,"line-color":"#333",size:.5},"value-box":{flat:!0,text:"%v",bold:1,placement:"auto",shadow:1},"tooltip-text":"%v",shadow:1,"line-width":1,marker:{type:"square",shadow:1},"highlight-state":{shadow:!0,"shadow-blur":2,"shadow-distance":1,"shadow-alpha":.91}},tooltip:{shadow:1,padding:"4 8","shadow-distance":3,"offset-y":ZC.mobile?-40:-20},"tooltip[dynamic]":{padding:"4 8","offset-y":0},guide:{marker:{type:"circle"},"plot-label[single]":{text:'<b style="color:%color">%plot-text:</b> %node-value',padding:10,"background-color":"#fff #eee","border-width":1,"border-color":"#999",color:"#000","text-align":"left"},"plot-label[multiple]":{text:'<b style="color:%color">%plot-text:</b> %node-value',padding:5,"background-color":"#fff #eee","border-width":1,"border-color":"#999",color:"#000","text-align":"left"}},zoom:{"preserve-zoom":1,"border-width":0,"background-color":"#369",alpha:.25,label:{visible:!1,"background-color":"#fff","font-size":10,padding:2,"border-width":1,"border-color":"#999"}},arrow:{"border-width":1,"border-color":"#000","background-color":"#666",size:4},"legend[position]":{margin:10},legend:{"background-color":"#eee",alpha:1,shadow:1,margin:"10 10 auto auto",padding:"4 2 4 2",item:{"text-align":"left",margin:"2 6 2 4",padding:"2 4"},"item-off":{alpha:.25},marker:{shadow:0,size:6,"border-color":"#999","border-width":1},header:{"font-size":12,"text-align":"left",bold:1},footer:{"text-align":"left"},icon:{"line-color":"#000","line-width":1},"page-status":{color:"#000"},"page-on":{"background-color":"#f90"},"page-off":{"background-color":"#999"},scroll:{bar:{width:12,height:12,"background-color":"#e1eaec","border-color":"#ddd"},handle:{width:12,height:12,"background-color":"#ddd","border-color":"#ccc","border-width":2,"border-top":"2px solid #eee","border-left":"2px solid #eee","border-right":"2px solid #999","border-bottom":"2px solid #999"}}}},vbar:{plot:{"value-box":{placement:"top-out"}}},vbar3d:{plot:{"value-box":{placement:"top-out"}},"3d-aspect":{depth:40,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0}},mixed3d:{"3d-aspect":{depth:40,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0}},hbar:{"scale-y":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x[default]":{label:{"font-angle":270}},"scale-x[opposite]":{label:{"font-angle":90}},plot:{"value-box":{placement:"top-out"}}},vline:{"scale-y":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x[default]":{label:{"font-angle":270}},"scale-x[opposite]":{label:{"font-angle":90}}},varea:{plot:{"fill-angle":0},"scale-y":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x[default]":{label:{"font-angle":270}},"scale-x[opposite]":{label:{"font-angle":90}}},hbar3d:{"scale-y":{label:{"font-angle":0}},"scale-x":{label:{"font-angle":270}},"scale-y-n":{label:{"font-angle":0}},"scale-x-n":{label:{"font-angle":90}},"3d-aspect":{depth:40,angle:45,"x-angle":0,"y-angle":-20,"z-angle":0},plot:{"value-box":{placement:"top-out"}}},hbullet:{"scale-y":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x":{label:{"font-angle":270}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x-n":{label:{"font-angle":90}}},line:{plot:{"line-width":4,marker:{type:"circle",size:4}}},area:{plot:{"line-width":4,marker:{type:"circle",size:4},"value-box":{placement:"top"}}},line3d:{"3d-aspect":{depth:40,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0},plot:{"border-width":1,"line-width":1,marker:{type:"circle",size:4,alpha:1,visible:0}}},area3d:{"3d-aspect":{depth:40,angle:45,"x-angle":-20,"y-angle":0,"z-angle":0},plot:{"border-width":1,"line-width":1,marker:{type:"circle",size:4,alpha:1,visible:0},"value-box":{placement:"top"}}},scatter:{SCALE:{offset:10},plot:{marker:{type:"circle",size:4},"value-box":{placement:"top"}}},poly:{SCALE:{offset:10},plot:{"alpha-area":.4,marker:{type:"none"},"value-box":{placement:"top"}}},hscatter:{SCALE:{offset:10},"scale-y":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x":{label:{"font-angle":270}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x-n":{label:{"font-angle":90}},plot:{marker:{type:"circle",size:4},"value-box":{placement:"top"}}},bubble:{SCALE:{offset:40},plot:{marker:{type:"circle","fill-type":"radial","fill-offset-x":-.2,"fill-offset-y":-.2},"hover-marker":{"fill-type":"radial","fill-offset-x":-.2,"fill-offset-y":-.2},"value-box":{placement:"middle",text:"%node-size-value"},"tooltip-text":"%node-size-value"}},hbubble:{SCALE:{offset:40},"scale-y":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x":{label:{"font-angle":270}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x-n":{label:{"font-angle":90}},plot:{marker:{type:"circle","fill-type":"radial","fill-offset-x":-.2,"fill-offset-y":-.2},"hover-marker":{"fill-type":"radial","fill-offset-x":-.2,"fill-offset-y":-.2},"value-box":{placement:"middle",text:"%node-size-value"},"tooltip-text":"%node-size-value"}},hmixed:{"scale-y":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x":{label:{"font-angle":270}},"scale-y-n":{label:{"font-angle":0},item:{"text-align":"center"}},"scale-x-n":{label:{"font-angle":90}}},pie:{plotarea:{margin:"35 5 5 5"},scale:{"size-factor":"auto","line-width":0,guide:{"line-width":0},"minor-guide":{"line-width":0}},plot:{"fill-type":"radial","value-box":{connector:{"line-width":1},placement:"out",text:"%t",visible:1}}},pie3d:{"3d-aspect":{"x-angle":38,"y-angle":0,"z-angle":0},plotarea:{margin:"25 5 5 5"},scale:{"size-factor":"auto","line-width":0,guide:{"line-width":0},"minor-guide":{"line-width":0}},plot:{"fill-type":"linear","value-box":{connector:{"line-width":1},placement:"out",text:"%t",visible:1}}},nestedpie:{plotarea:{margin:"40 5 15 5"},scale:{"size-factor":.8,"line-width":0,guide:{"line-width":0},"minor-guide":{"line-width":0}},plot:{"fill-type":"radial","value-box":{connector:{"line-width":1},text:"%t",visible:1}}},venn:{plotarea:{margin:"30 10 10 10"},plot:{alpha:.5,"border-width":4},scale:{"size-factor":.65,"line-width":0,guide:{"line-width":0},"minor-guide":{"line-width":0}}},radar:{SCALE:{guide:{"line-width":1,"line-color":"#999","background-color":"-1"},tick:{"line-width":1},item:{"auto-align":!1}},scale:{visible:0,"size-factor":.7},"scale-k":{"ref-angle":270},plotarea:{margin:"40 5 5 5"},plot:{"line-width":4,aspect:"line",marker:{type:"circle"}}},gauge:{SCALE:{guide:{"border-width":1,"border-color":"#999","background-color":"-1"}},scale:{"line-width":0,guide:{"line-width":0},"minor-guide":{"line-width":0},"size-factor":.7},"scale-r":{"ref-angle":270,"background-color":"#fff",guide:{"line-width":0},tick:{placement:"inner"},item:{"offset-r":"-45%"}},plot:{size:"85%"},plotarea:{margin:"40 5 5 5"}},stock:{plot:{"line-width":1,"border-width":1,"tooltip-text":"Open:&nbsp;$%open<br>High:&nbsp;$%high<br>Low:&nbsp;$%low<br>Close:&nbsp;$%close"}},range:{plot:{"line-width":2,"value-box":{text:"%node-min-value - %node-max-value"},"tooltip-text":"%node-min-value - %node-max-value"}},"-":""},this.PF=function(e,i){var t,n=this,a=!1;return null!==ZC._n_(t=n.B7.graph[e])&&null!==ZC._n_(t.enabled)&&(a=a||ZC._b_(t.enabled)),null!==ZC._n_(n.B7[i])&&null!==ZC._n_(t=n.B7[i][e])&&null!==ZC._n_(t.enabled)&&(a=a||ZC._b_(t.enabled)),a},this.load=function(e,i,t,n){var a,l,o,r=this;t=null===ZC._n_(t)||ZC._b_(t),n=null!==ZC._n_(n)&&ZC._b_(n),i instanceof Array||(i=new Array(i));var s=[],A="";for(l=0,o=i.length;l<o;l++)if(/(\(\w+\))(.*)/.test(i[l])){var C=RegExp.$1;A=i[l].replace(C,"graph"),-1===ZC.AV(s,A)&&s.push(A),A=i[l].replace(C,C.substring(1,C.length-1)),-1===ZC.AV(s,A)&&s.push(A)}else-1===ZC.AV(s,i[l])&&s.push(i[l]),/root(.*)/.test(i[l])&&-1===ZC.AV(s,i[l].replace("root","loader"))&&s.push(i[l].replace("root","loader")),/loader(.*)/.test(i[l])&&-1===ZC.AV(s,i[l].replace("loader","root"))&&s.push(i[l].replace("loader","root"));var c={};for(l=0,o=s.length;l<o;l++){for(var u=s[l].split("."),p=r.B7,Z=0,h=u.length;Z<h;Z++)if(null!==ZC._n_(a=p[u[Z]]))p=a;else if(null!==ZC._n_(a=p[ZC.U7(u[Z])]))p=a;else{if(null===ZC._n_(a=p[ZC.EC(u[Z])])){p=null;break}p=a}if(p)for(var d in p)null!==ZC._n_(p[d])&&(n||"object"!=typeof p[d]||p[d].length)&&(t||null===ZC._n_(e[d])?r.H.QP&&null!==ZC._n_(r.H.QP[d])||(c[d]=p[d]):t&&"object"==typeof p[d]&&(r.H.QP&&null!==ZC._n_(r.H.QP[d])||(c[d]=p[d])))}ZC._cp_(c,e)}},ZC.AP={AGL:function(e,i){for(var t=[],n=0,a=e.p.length;n<a;n++)if(e.p[n]){var l=(e.p[n][0]-e.x)/e.w,o=(e.p[n][1]-e.y)/e.h;t.push([i.x+i.w*l,i.y+i.h*o])}else t.push(null);return{l:i.w*e.l/e.w,r:i.w*e.r/e.w,p:t}},AC7:function(e,i,t){var n=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.src=i+"?v"+ZC.VERSION;var l=!1;a.onload=a.onreadystatechange=function(){if(!(l||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState)){l=!0,a.onload=a.onreadystatechange=null,n&&a.parentNode&&n.removeChild(a);var e=new RegExp("zingchart-(.+?).min.js","g").exec(i);e&&ZC.WA.push(e[1]),t&&t(i)}},a.onerror=function(){!e&&zingchart.HU[0]&&(e=zingchart.HU[0]),e?e.NP({name:"Network error",message:"Resource not found ("+a.src+")"},"Module loader"):alert("Resource not found ("+a.src+")")},n.insertBefore(a,n.firstChild)},_rcolor_:function(){return"#"+ZC.XL.md5(ZC._r_(0,99999)).substr(ZC._r_(0,20),6)},WM:function(){},A7Y:function(e,i){return zingchart[e]||i&&i.A0V&&i.A0V[e]||zingchart.hasEvent(null,e)||i&&zingchart.hasEvent(i.K,e)},BZ:function(e,i,t,n,a){t instanceof Array||(t=[t]);var l=1;return null!==ZC._n_(n)&&t.push(n),a&&(l=2,t.push(a)),"touchstart"===e&&(e="mousedown"),"touchend"===e&&(e="mouseup"),"touchmove"===e&&(e="mousemove"),zingchart[e]&&"render"!==e&&(null!==ZC._n_(n)?t[t.length-l]=zingchart[e].apply(zingchart,t):zingchart[e].apply(zingchart,t)),i&&i.A0V[e]&&(null!==ZC._n_(n)?t[t.length-l]=i.A0V[e].apply(zingchart,t):i.A0V[e].apply(zingchart,t)),zingchart.hasEvent(null,e)&&(null!==ZC._n_(n)?t[t.length-l]=zingchart.callEvent(null,e,t,n):zingchart.callEvent(null,e,t)),i&&zingchart.hasEvent(i.K,e)&&(null!==ZC._n_(n)?t[t.length-l]=zingchart.callEvent(i.K,e,t,n):zingchart.callEvent(i.K,e,t)),t[t.length-l]},O1:function(e,i){if(i.AA%360!=0){for(var t=[[-i.I/2,-i.F/2],[i.I/2,-i.F/2],[i.I/2,i.F/2],[-i.I/2,i.F/2]],n="",a=0;a<4;a++)t[a]=[i.iX+i.I/2+i.BJ+ZC.MAPTX+t[a][0]*ZC.EF(i.AA)-t[a][1]*ZC.EO(i.AA),i.iY+i.F/2+i.BH+ZC.MAPTX+t[a][0]*ZC.EO(i.AA)+t[a][1]*ZC.EF(i.AA)],n+=ZC._i_(t[a][0])+","+ZC._i_(t[a][1])+",";return i.D=t,ZC.Q.GC("poly",i.E8,i.IR)+'class="'+e+'-label-area zc-label-area" id="'+i.K+'-area" coords="'+n.substring(0,n.length-1)+'" />'}return ZC.Q.GC("rect",i.E8,i.IR)+'class="'+e+'-label-area zc-label-area" id="'+i.K+'-area" coords="'+ZC._i_(i.iX+i.BJ+ZC.MAPTX)+","+ZC._i_(i.iY+i.BH+ZC.MAPTX)+","+ZC._i_(i.iX+i.BJ+i.I+ZC.MAPTX)+","+ZC._i_(i.iY+i.BH+i.F+ZC.MAPTX)+'" />'},MY:function(e){var i,t="",n=e.indexOf('id="');if(-1!==n){var a=e.indexOf('"',n+4);-1!==a&&(t=e.substring(n+4,a))}if(ZC.cache.data["area-score-"+t])return ZC.cache.data["area-score-"+t];var l=0;if(-1!==e.indexOf('shape="rect"')?(l+=1e4,5===(i=/coords=\"(\-*\d+),(\-*\d+),(\-*\d+),(\-*\d+)\"/.exec(e)).length&&(l+=(ZC._i_(i[3])-ZC._i_(i[1]))*(ZC._i_(i[4])-ZC._i_(i[2])))):-1!==e.indexOf('shape="circle"')?(l+=100,i=/coords=\"(\-*\d+),(\-*\d+),(\-*\d+)\"/.exec(e),null!==ZC._n_(i[3])&&(l+=ZC._i_(i[3])/10)):-1!==e.indexOf('shape="poly"')?-1!==e.indexOf("data-map")?l+=1e6:l+=1e3:l+=1,-1!==e.indexOf("data-z-sort")){var o=/data-z-sort=\"(\-*\d+)\"/.exec(e);o&&2===o.length&&(l*=ZC._i_(Math.pow(10,ZC._i_(o[1]))))}return""!==t&&ZC.cache.add("area-score-"+t,l),l},A4Q:function(e,i,t){for(var n=[],a=0,l=e.length;a<l;a++)if(null!==ZC._n_(e[a])){var o=e[a].slice(0);null!==ZC._n_(o[0])&&"string"!=typeof o[0]&&(o[0]+=i),null!==ZC._n_(o[1])&&"string"!=typeof o[1]&&(o[1]+=t),null!==ZC._n_(o[2])&&"string"!=typeof o[2]&&o.length<=4&&(o[2]+=i),null!==ZC._n_(o[3])&&"string"!=typeof o[3]&&o.length<=4&&(o[3]+=t),n.push(o)}else n.push(null);return n},OQ:function(e,i){var t;i=i||{},e=e||{};var n={};if(null!==ZC._n_(t=e.negation)&&(n.negation=t),null!==ZC._n_(t=e["short"])&&(n["short"]=ZC._b_(t)),null!==ZC._n_(t=e["short-unit"])&&(n["short-unit"]=t),null!==ZC._n_(t=e.exponent)&&(n.exponent=ZC._b_(t)),null!==ZC._n_(t=e["exponent-decimals"])&&(n["exponent-decimals"]=ZC._i_(t)),null!==ZC._n_(t=e["decimals-separator"])?n["decimals-separator"]=t:null===ZC._n_(i["decimals-separator"])&&null!==ZC._n_(t=ZC.HI["decimals-separator"])&&(n["decimals-separator"]=t),null!==ZC._n_(t=e["thousands-separator"])?n["thousands-separator"]=t:null===ZC._n_(i["thousands-separator"])&&null!==ZC._n_(t=ZC.HI["thousands-separator"])&&(n["thousands-separator"]=t),null!==ZC._n_(t=e.decimals)&&(n.decimals=ZC._i_(t)),null!==ZC._n_(t=e["decimals-dyn"])&&(n["decimals-dyn"]=t),null!==ZC._n_(t=e.transform)&&null!==ZC._n_(t.type))switch(t.type){case"date":n["transform-date"]=!0,null!==ZC._n_(t.text)&&(t.all=t.text),null!==ZC._n_(t.all)&&(n["transform-date-format"]=t.all)}return n},GF:function(e,i,t,n){var a,l=e,o=e+"",r=!1;if(n&&null!==ZC._n_(i["transform-date"])&&i["transform-date"]&&""+Number(o)===o&&(o=ZC.AP.Y2(Number(o),i["transform-date-format"],i.utc,i.timezone),r=!0),null===ZC._n_(i["decimals-separator"])&&null!==ZC._n_(e=ZC.HI["decimals-separator"])&&(i["decimals-separator"]=e),null===ZC._n_(i["thousands-separator"])&&null!==ZC._n_(e=ZC.HI["thousands-separator"])&&(i["thousands-separator"]=e),null!==ZC._n_(i.decimals)&&-1!==i.decimals&&"undefined"!=typeof i["max-decimals"]&&-1!==i["max-decimals"]&&(i.decimals=ZC.BQ(i["max-decimals"],i.decimals)),!r)if(null!==ZC._n_(i.exponent)&&i.exponent)o=Number(o).toExponential(ZC.CY(20,i["exponent-decimals"])),null!==ZC._n_(i["decimals-separator"])&&(o=o.replace(/\./g,i["decimals-separator"]));else{if(null!==ZC._n_(i["short"])&&i["short"]){a="";var s=i["short-unit"]||"";if("string"!=typeof s&&s.length){""+ZC._f_(s[0])!==s[0]&&(s=[1e3].concat(s));for(var A=1,C=s[0]||1e3,c=s.slice(1),u=null,p=0;p<c.length;p++)0===c[p].indexOf("#")&&(u=p,c[p]=c[p].substring(1));if(c.length){if(null!==u)A=u;else if(null!==ZC._n_(i["max-power"]))A=i["max-power"];else{var Z=ZC.H0(ZC._a_(Number(o)),C);A=Math.floor(Z),A=ZC.CY(A,c.length-1)}a=c[A];var h=(o=""+Number(o)/Math.pow(C,A)).split(".");2===h.length&&h[1].length>=9&&(o=null!==ZC._n_(i.decimals)&&-1!==i.decimals?""+ZC._x_(o,i.decimals):""+ZC._x_(o))}}else{var d=ZC.H0(ZC._a_(Number(o)))/Math.LN10;switch(ZC._a_(Number(o))){case 1e3:d=3;break;case 1e6:d=6;break;case 1e9:d=9}if(null!==ZC._n_(i["max-power"])&&(d=3*i["max-power"]),"KB"===s.toUpperCase())o=""+Number(o)/1024,a="KB";else if("MB"===s.toUpperCase())o=""+Number(o)/1048576,a="MB";else if("GB"===s.toUpperCase())o=""+Number(o)/1073741824,a="GB";else if("TB"===s.toUpperCase())o=""+Number(o)/1099511627776,a="TB";else if("PB"===s.toUpperCase())o=""+Number(o)/0x4000000000000,a="PB";else if(d>=0&&d<3)switch(s){default:o=o,a="";break;case"K":o=""+Number(o)/1e3,a="K";break;case"M":o=""+Number(o)/1e6,a="M";break;case"B":o=""+Number(o)/1e9,a="B"}else d>=3&&d<6&&""===s||"K"===s.toUpperCase()?(o=""+Number(o)/1e3,a="K"):d>=6&&d<9&&""===s||"M"===s.toUpperCase()?(o=""+Number(o)/1e6,a="M"):(d>=9&&""===s||"B"===s.toUpperCase())&&(o=""+Number(o)/1e9,a="B")}if(ZC.P4(o))if(null!==ZC._n_(i.decimals)&&-1!==i.decimals)o=ZC._fixed_(Number(o),ZC.BQ(0,ZC._i_(i.decimals)));else{var f=o.split(".")[1]||"";-1!==i["max-decimals"]&&i["max-decimals"]<f.length&&(o=ZC._fixed_(Number(o),ZC.BQ(0,ZC._i_(i["max-decimals"]))))}null!==ZC._n_(i["decimals-separator"])&&(o=o.replace(/\./g,i["decimals-separator"]))}var _=t?t.K:"";if(!isNaN(o)&&("string"!=typeof l||-1===_.indexOf("-scale-"))){if(null!==ZC._n_(i.decimals)&&-1!==i.decimals&&ZC.P4(o)&&(null!==ZC._n_(i["short"])&&i["short"]||(o=ZC._fixed_(Number(o),ZC.BQ(0,ZC._i_(i.decimals))))),null!==ZC._n_(i["thousands-separator"])||null!==ZC._n_(i["decimals-separator"])){for(var g=o.split("."),v="",b=0,m=g[0].length;b<m;b++){var B=g[0].substring(b,b+1);v+=B,-1===ZC.AV(["-","+"],B)&&(g[0].length-b-1)%3==0&&g[0].length-b-1!=0&&(v+=i["thousands-separator"])}o=v+(null!==ZC._n_(g[1])?i["decimals-separator"]+g[1]:"")}null!==ZC._n_(i["short"])&&i["short"]&&(o+=a)}}return o},AA8:function(e){var i=e.indexOf("("),t="",n="";-1!==i?(t=ZC.GT(e.substring(0,i)),n=ZC.GT(e.substring(i+1,e.length-1))):t=ZC.GT(e);var a=[],l="";if(""!==n){var o=!1,r=!1,s=!1;l="";for(var A=0,C=n.length;A<C;A++){var c=n.substring(A,A+1);switch(c){case"\\":s?(l+="\\",s=!1):s=!0;break;case'"':s?(l+='"',s=!1):r?(a.push(l),l="",r=!1):o?l+=c:r=!0;break;case"'":s?(l+="'",s=!1):o?(a.push(l),l="",o=!1):r?l+=c:o=!0;break;case" ":(o||r)&&(l+=c);break;case",":o||r?l+=c:(""!==l&&a.push(l),l="");break;default:l+=c}}}return""!==l&&a.push(l),[t,a]},A59:function(e){return e.toString().replace(/^([0-9])$/,"0$1")},Y2:function(e,i,t,n){e=ZC._i_(e),i=i||ZC.HI["date-formats"].minute,void 0===t&&(t=!1),void 0===n&&(n=0),t&&(e+=36e5*n);var a,l,o,r,s,A,C,c,u=new Date;u.setTime(e),t?(a=u.getUTCHours(),l=u.getUTCMinutes(),o=u.getUTCSeconds(),r=u.getUTCMilliseconds(),s=u.getUTCDay(),A=u.getUTCDate(),C=u.getUTCMonth(),c=u.getUTCFullYear()):(a=u.getHours(),l=u.getMinutes(),o=u.getSeconds(),r=u.getMilliseconds(),s=u.getDay(),A=u.getDate(),C=u.getMonth(),c=u.getFullYear());for(var p=[["mm",ZC.AP.A59(C+1)],["dd",ZC.AP.A59(A)],["Y",c],["y",c.toString().substr(2,2)],["F",ZC.HI["months-long"][C]],["m",C+1],["M",ZC.HI["months-short"][C]],["n",C],["d",A],["D",ZC.HI["days-short"][s]],["j",A],["l",ZC.HI["days-long"][s]],["N",s+1],["w",s],["S",function(){return A%10==1?"st":A%10==2?"nd":A%10==3?"rd":"th"}],["a",a<12?"am":"pm"],["A",a<12?"AM":"PM"],["g",a%12||12],["G",a],["h",ZC.AP.A59(a%12||12)],["H",ZC.AP.A59(a)],["i",ZC.AP.A59(l)],["s",ZC.AP.A59(o)],["q",r]],Z=0;Z<p.length;Z++)i=i.replace("%"+p[Z][0],p[Z][1]);return i},A03:{},YV:function(e,i){var t=null;if(i&&i.BP?t=i.BP:i&&i.A&&i.A.BP&&(t=i.A.BP),"string"==typeof e&&-1!==e.indexOf("%color-")&&ZC.COLORS.length>0)for(var n=0;n<ZC.COLORS.length;n++)-1===e.indexOf("(+")&&-1===e.indexOf("(-")||(e=e.replace(/%color-(\d+?)\((\+|\-)(\d+?)\)/gi,function(){var e=ZC.AP.G5(ZC.COLORS[ZC._i_(arguments[1])]);return"+"===arguments[2]?e=ZC.AP.QT(e,ZC._i_(arguments[3])):"-"===arguments[2]&&(e=ZC.AP.JH(e,ZC._i_(arguments[3]))),e})),e=e.replace("%color-"+n,ZC.COLORS[n]);else"string"==typeof e&&t&&-1!==e.indexOf("%palette-")&&(e=t[ZC._i_(e.replace("%palette-",""))]);return e},G5:function(e,i){var t,n,a,l;if(null!==ZC._n_(ZC.AP.A03[e]))return ZC.AP.A03[e];var o=ZC.GT(String(e)),r=1,s=!1;return 0===o.length?"":("rgba("===(o=o.replace("0x","#")).substring(0,5)?(t=new RegExp("rgba\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*([0-9.]+)\\)","gi").exec(o))&&(1===(n=ZC.OS(t[1])).length&&(n="0"+n),1===(a=ZC.OS(t[2])).length&&(a="0"+a),1===(l=ZC.OS(t[3])).length&&(l="0"+l),o="#"+n+a+l,r=ZC.BQ(0,ZC.CY(1,parseFloat(t[4]))),s=!0):"rgb("===o.substring(0,4)?(t=new RegExp("rgb\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)","gi").exec(o))&&(1===(n=ZC.OS(t[1])).length&&(n="0"+n),1===(a=ZC.OS(t[2])).length&&(a="0"+a),1===(l=ZC.OS(t[3])).length&&(l="0"+l),o="#"+n+a+l):"#"===o.substring(0,1)?4===o.length?o="#"+o.substring(1,2)+o.substring(1,2)+o.substring(2,3)+o.substring(2,3)+o.substring(3,4)+o.substring(3,4):7!==o.length&&(o=""):null!==ZC._n_(ZC.Q.A9H[o.toUpperCase()])&&(o="#"+ZC.Q.A9H[o.toUpperCase()]),"none"!==o&&"transparent"!==o||(o="-1"),i||(ZC.AP.A03[e]=o),i&&s?[o,r]:o)},A1M:{},A2M:function(e,i){if(-1===e&&(e="#ffffff",i=0),null!==ZC._n_(ZC.AP.A1M[e+","+i]))return ZC.AP.A1M[e+","+i];4===e.length&&(e=e.substring(0,1)+e.substring(1,2)+e.substring(1,2)+e.substring(2,3)+e.substring(2,3)+e.substring(3,4)+e.substring(3,4));var t="rgba("+[ZC.QE(e.substring(1,3)),ZC.QE(e.substring(3,5)),ZC.QE(e.substring(5,7)),i].join(",")+")";return ZC.AP.A1M[e+","+i]=t,t},AD4:function(e,i,t){e/=255,i/=255,t/=255;var n,a,l,o=Math.max(e,i,t),r=Math.min(e,i,t);l=o;var s=o-r;if(a=0===o?0:s/o,o===r)n=0;else{switch(o){case e:n=(i-t)/s+(i<t?6:0);break;case i:n=(t-e)/s+2;break;case t:n=(e-i)/s+4}n/=6}return[n,a,l]},AD6:function(e,i,t){var n,a,l,o=Math.floor(6*e),r=6*e-o,s=t*(1-i),A=t*(1-r*i),C=t*(1-(1-r)*i);switch(o%6){case 0:n=t,a=C,l=s;break;case 1:n=A,a=t,l=s;break;case 2:n=s,a=t,l=C;break;case 3:n=s,a=A,l=t;break;case 4:n=C,a=s,l=t;break;case 5:n=t,a=s,l=A}return[255*n,255*a,255*l]},JH:function(e,i){if(-1===e)return-1;if(i>=100)return"#000000";e=ZC.AP.G5(e),void 0===i&&(i=10);var t=ZC.QE(e.substring(1,3)),n=ZC.QE(e.substring(3,5)),a=ZC.QE(e.substring(5,7)),l=ZC.AP.AD4(t,n,a);l[2]=i>0?Math.max(0,l[2]-l[2]*i/100):Math.min(1,l[2]-l[2]*i/100);var o=ZC.AP.AD6(l[0],l[1],l[2]);return o[0]=ZC._i_(o[0])<16?"0"+ZC.OS(o[0]):ZC.OS(o[0]),o[1]=ZC._i_(o[1])<16?"0"+ZC.OS(o[1]):ZC.OS(o[1]),o[2]=ZC._i_(o[2])<16?"0"+ZC.OS(o[2]):ZC.OS(o[2]),e="#"+o[0]+o[1]+o[2]},QT:function(e,i){if(-1===e)return-1;if(i>=100)return"#ffffff";e=ZC.AP.G5(e),void 0===i&&(i=10);var t=parseInt(e.substr(1,2),16),n=parseInt(e.substr(3,2),16),a=parseInt(e.substr(5,2),16);return"#"+(0|256+t+(256-t)*i/100).toString(16).substr(1)+(0|256+n+(256-n)*i/100).toString(16).substr(1)+(0|256+a+(256-a)*i/100).toString(16).substr(1)},_hex2rgb_:function(e,i){var t=parseInt(e.substr(1,2),16),n=parseInt(e.substr(3,2),16),a=parseInt(e.substr(5,2),16);return ZC._n_(i)?"rgb("+t+","+n+","+a+")":{r:t,g:n,b:a}},_rgb2hex_:function(e,i,t){return"#"+((1<<24)+(e<<16)+(i<<8)+t).toString(16).slice(1)},AA3:function(e,i,t){var n=ZC.AP._hex2rgb_(e);return(299*n.r+587*n.g+114*n.b)/1e3>=128?t:i},_colorAlpha_:function(e,i,t){e=ZC.AP.G5(e),i=ZC.AP.G5(i);var n=ZC.AP._hex2rgb_(e),a=ZC.AP._hex2rgb_(i),l={};for(var o in n)l[o]=Math.floor(t*n[o]+(1-t)*a[o]);return ZC.AP._rgb2hex_(l.r,l.g,l.b)},A30:function(){},ABL:function(){},gc:function(e,i){var t;for(t=0;t<i.length;t++)e[i[t]]=null;for(t in e)0===t.indexOf("zc_")&&"function"==typeof e[t]&&(e[t]=null)}},ZC.Q={A9H:{BLACK:"000000",BLUE:"0000FF",BROWN:"A52A2A",CYAN:"00FFFF",FUCHSIA:"FF00FF",GOLD:"FFD700",GRAY:"808080",GREEN:"008000",INDIGO:"4B0082",LIME:"00FF00",MAGENTA:"FF00FF",MAROON:"800000",NAVY:"000080",ORANGE:"FFA500",PINK:"FFC0CB",PURPLE:"800080",RED:"FF0000",SILVER:"C0C0C0",TURQUOISE:"40E0D0",VIOLET:"EE82EE",WHITE:"FFFFFF",YELLOW:"FFFF00"},GC:function(e,i,t){return"<area"+(t&&!i&&"hand"!==t?' style="cursor:'+t+'"':"")+(i&&"arrow"!==t||"hand"===t?' href="javascript:;"':"")+' shape="'+e+'" '},AB2:function(e){var i;if(ZC.A4.browser.msie)try{i=document.createElement("<iframe />")}catch(r){i=document.createElement("iframe")}else i=document.createElement("iframe");i.id=e.id+"-iframe",i.style.visibility="hidden",e.appendChild(i);var t=null,n=i.contentWindow||i.contentDocument;if(!(t=n.document?n.document:n).body){var a=t.createElement("HTML");t.appendChild(a);var l=t.createElement("HEAD");a.appendChild(l);var o=t.createElement("BODY");a.appendChild(o)}return t},C0:function(e){var i;if("undefined"==typeof ZC.TOUCHEVENTS){if(ZC.ie678)i=!1;else{i=!0;try{document.createEvent("TouchEvent")}catch(t){i=!1}}i&&!ZC.mobile&&(i=!1),i&&(i="ontouchstart"in document.documentElement),ZC.TOUCHEVENTS=i}else i=ZC.TOUCHEVENTS;if(i)switch(e){case"mouseover":case"mousedown":e="touchstart";break;case"mousemove":e="touchmove";break;case"mouseout":case"mouseup":e="touchend";break;case"click":e="touchstart"}return e},_sh_:function(e,i){var t,n,a,l=[],o=i.JP,r=i.OE,s=i.P1,A=o-s/2;if(e.length>0){var C=0,c=0;for(0!==o&&(C=ZC._i_(A*ZC.EF(r)+s),c=ZC._i_(A*ZC.EO(r)+s)),t=0,n=e.length;t<n;t++)if(null!==ZC._n_(e[t])){var u=[];for(a=0;a<e[t].length;a++)u[a]=e[t][a];var p=u.length;if(2===p||4===p)for(a=0;a<p;a++)u[a]=e[t][a]+(a%2?c+ZC._c_(i.BH,0):C+ZC._c_(i.BJ,0));l.push(u)}else l.push(null)}return l},_txp_:function(e,i,t,n,a){void 0===a&&(a=!1);var l,o,r=[e[0],e[1]];switch(e.length>=4&&(r[2]=e[2],r[3]=e[3]),e.length>=6&&(r[4]=e[4],r[5]=e[5]),7===e.length&&(r[6]=e[6]),i){case"canvas":case"svg":if(t.CZ){var s,A;s=A=t.B0%2==1?.5:0,ZC.A4.browser.msie&&ZC.quirks&&"svg"===i&&(s=t.B0%2==1?.5:0,A=t.B0%2==1?0:.5),r[0]=Math.round(r[0])-s,r[1]=Math.round(r[1])-A,4===r.length&&(r[2]=Math.round(r[2])-s,r[3]=Math.round(r[3])-A)}"svg"===i&&(r[0]=parseFloat(r[0].toFixed(4)),r[1]=parseFloat(r[1].toFixed(4)),4===r.length&&(r[2]=parseFloat(r[2].toFixed(4)),r[3]=parseFloat(r[3].toFixed(4)))),"canvas"!==i||n||"undefined"!=typeof t.BJ&&"undefined"!=typeof t.BH&&(r[0]+=t.BJ,r[1]+=t.BH,4===r.length&&(r[2]+=t.BJ,r[3]+=t.BH));break;case"vml":t.AA%360==0?(l=10,o=t.B0%2==1?0:l/2):(l=1,o=0),t.CZ?(r[0]=l*ZC._i_(ZC._i_(l*r[0])/l)-o,r[1]=l*ZC._i_(ZC._i_(l*r[1])/l)-o,4!==r.length&&7!==r.length||(r[2]=l*ZC._i_(ZC._i_(l*r[2])/l)-o,r[3]=l*ZC._i_(ZC._i_(l*r[3])/l)-o),7===r.length&&(r[4]=l*ZC._i_(ZC._i_(l*r[4])/l)-o,r[5]=l*ZC._i_(ZC._i_(l*r[5])/l)-o)):(r[0]=ZC._i_(l*r[0]),r[1]=ZC._i_(l*r[1]),4!==r.length&&7!==r.length||(r[2]=ZC._i_(l*r[2]),r[3]=ZC._i_(l*r[3])),7===r.length&&(r[4]=ZC._i_(l*r[4]),r[5]=ZC._i_(l*r[5])))}return r},A2O:function(e,i,t,n,a){var l,o,r,s,A,C,c;if(t.QJ&&(t.E["fast-vector-path"]=!0),!t.E["fast-vector-path"]){for(l=0,o=e.length;l<o;l++)e[l]&&(e[l][0]=parseFloat(Number(e[l][0]).toFixed(2)),e[l][1]=parseFloat(Number(e[l][1]).toFixed(2)));if(t.O3&&(c=t.K+":"+t.AA+":"+e.join("#"),ZC.cache.data["path-points-"+c]))return ZC.cache.data["path-points-"+c].split("#")}var u=[ZC.MAX,ZC.MAX,-ZC.MAX,-ZC.MAX],p=[],Z=!1;for(l=0,o=e.length;l<o;l++)if(null!==ZC._n_(e[l])){if(t.E["fast-vector-path"]){if(r=e[l],"vml"===i){var h=t.AA%360==0?10:1;r[0]=ZC._i_(h*r[0]),r[1]=ZC._i_(h*r[1]),4===r.length&&(r[2]=ZC._i_(h*r[2]),r[3]=ZC._i_(h*r[3]))}}else r=ZC.Q._txp_(e[l],i,t,n,a);if(null!==ZC._n_(r)&&!isNaN(r[0])&&!isNaN(r[1])&&isFinite(r[0])&&isFinite(r[1]))if(o<=20&&n&&(u[0]=ZC.CY(u[0],r[0]/("vml"===i?10:1)),u[1]=ZC.CY(u[1],r[1]/("vml"===i?10:1)),u[2]=ZC.BQ(u[2],r[0]/("vml"===i?10:1)),u[3]=ZC.BQ(u[3],r[1]/("vml"===i?10:1))),0===l)p.push(("svg"===i?"M ":"m ")+r[0]+" "+r[1]);else if(Z&&(p.push(("svg"===i?"M ":"m ")+r[0]+" "+r[1]),Z=!1),2===r.length)p.push(("svg"===i?"L ":"l ")+r[0]+" "+r[1]);else if(4===r.length)p.push(("svg"===i?"Q ":"qb ")+r[0]+" "+r[1]+" "+r[2]+" "+r[3]),"vml"===i&&p.push("l "+r[2]+" "+r[3]);else if(6===r.length)if("svg"===i){var d=0;r[3]%360==r[4]%360&&(d=r[4]>=r[3]?.001:-.001),s=ZC.AO.BK(r[0],r[1],r[2],r[3]+d),A=ZC.AO.BK(r[0],r[1],r[2],r[4]-d),C="0 0",0===r[5]?r[4]-r[3]>360?(C="0 1",A[0]=s[0],A[1]=s[1]):C=r[4]-r[3]<=180?"0 1":"1 1":r[3]-r[4]>360?(C="0 0",A[0]=s[0],A[1]=s[1]):C=r[3]-r[4]<=180?"0 0":"1 0",p.push("a "+r[2]+","+r[2]+" 0 "+C+" "+(A[0]-s[0])+","+(A[1]-s[1]))}else"vml"===i&&(r[2]*=10,s=ZC.AO.BK(r[0],r[1],r[2],r[3]),A=ZC.AO.BK(r[0],r[1],r[2],r[4]),C=1===r[5]?"at":"wa",p.push(C+" "+ZC._i_(r[0]-r[2])+","+ZC._i_(r[1]-r[2])+","+ZC._i_(r[0]+r[2])+","+ZC._i_(r[1]+r[2])+" "+ZC._i_(s[0])+","+ZC._i_(s[1])+" "+ZC._i_(A[0])+","+ZC._i_(A[1])));else 7===r.length&&p.push(("svg"===i?"C ":"c ")+r[0]+" "+r[1]+" "+r[2]+" "+r[3]+" "+r[4]+" "+r[5])}else Z=!0;return t.E["fast-vector-path"]||t.O3&&ZC.cache.add("path-points-"+c,p.join("#")),t.H&&o<=20&&n&&(t.H.E[t.K+"-bounds"]=u),p},M7:function(e,i){var t,n,a=e.originalEvent||e.originalEventZC;return i=ZC._i_(i||"0"),a&&a.touches?a.touches.length>0?(t=a.touches[i].pageX,n=a.touches[i].pageY):a.changedTouches.length>0&&(t=a.changedTouches[i].pageX,n=a.changedTouches[i].pageY):(t=e.pageX,n=e.pageY),[ZC._i_(t||"0"),ZC._i_(n||"0")]},F4:function(e,i,t){t=t||document;var n;return null!==ZC._n_(i)?t.createElementNS?n=t.createElementNS(i,e):(n=t.createElement(e)).setAttribute("xmlns",i):n=t.createElement(e),"zcv:"===e.substring(0,4)&&(n.className="zcvml"),n},EU:function(e){var i;e instanceof Array||(e=[e]);for(var t=0,n=e.length;t<n;t++)"object"!=typeof(i=e[t])&&(i=ZC.AK(e[t])),i&&("undefined"!=typeof i.parentElement?i.parentElement.removeChild(i):"undefined"!=typeof i.parentNode&&i.parentNode.removeChild(i))},G2:function(e,i){for(var t in i)if("string"==typeof t&&"object"!=typeof i[t]&&"function"!=typeof i[t])try{e.setAttribute(t,i[t])}catch(n){}},PD:function(e,i){for(var t in i)"string"==typeof t&&"object"!=typeof i[t]&&"function"!=typeof i[t]&&(e.style[t]=i[t])},AAW:function(e){var i;if(e===document)return!0;if(!e)return!1;if(!e.parentNode)return!1;if(e.style){if("none"===e.style.display)return!1;if("hidden"===e.style.visibility)return!1}if(window.getComputedStyle){if("none"===(i=window.getComputedStyle(e,"")).display)return!1;if("hidden"===i.visibility)return!1}if(i=e.currentStyle){if("none"===i.display)return!1;if("hidden"===i.visibility)return!1}return ZC.Q.AAW(e.parentNode)},SV:function(e){var i=e.className||ZC.A4(e).attr("class");return null!==ZC._n_(i)&&"object"==typeof i&&(i="undefined"!=typeof i.baseVal?i.baseVal:""),i||""},IQ:function(e,i,t,n,a,l,o,r){if(e)switch(o=o||"",i){case"canvas":r?e.getContext("2d").clearRect(t,n,a,l):e.width=e.width;break;case"vml":case"svg":var s=e.childNodes.length;if(s>1024&&"undefined"!=typeof e.innerHTML)return void(e.innerHTML="");if(s>0)for(var A=s-1;A>=0;A--)""===o?e.removeChild(e.childNodes[A]):0===e.childNodes[A].id.indexOf(o+"-")&&e.removeChild(e.childNodes[A])}},E9:function(e,i){switch("string"==typeof e&&(e=ZC.AK(e)),i){case"canvas":return e.getContext("2d");case"svg":case"vml":return e}},JW:function(e,i){switch(i){case"svg":return ZC.Q.ABI(e);case"vml":case"canvas":return ZC.Q.HX(e)}},HE:function(e,i){switch(i){case"svg":return ZC.Q.ABI(e);case"vml":return ZC.Q.HX(e);case"canvas":return ZC.Q.AD9(e)}},ABI:function(e){var i;if(ZC.AK(e.id))return ZC.AK(e.id);var t=ZC.Q.F4("g","http://www.w3.org/2000/svg");return null!==ZC._n_(i=e.id)&&t.setAttribute("id",i),null!==ZC._n_(i=e.cls)&&t.setAttribute("class",i),null!==ZC._n_(i=e.zidx)&&t.setAttribute("z-index",i),null!==ZC._n_(i=e["clip-path"])&&t.setAttribute("clip-path",i),e.after?e.p.insertBefore(t,e.after.nextSibling):e.p.appendChild(t),t},XA:function(e){var i;ZC.Q.EU(e.id);var t=ZC.Q.F4("clipPath","http://www.w3.org/2000/svg");return t.id=e.id,null!==ZC._n_(e.cx)?((i=ZC.Q.F4("circle","http://www.w3.org/2000/svg")).id=e.id+"-shape",ZC.Q.G2(i,{cx:e.cx,cy:e.cy,r:e.r})):((i=ZC.Q.F4("polygon","http://www.w3.org/2000/svg")).id=e.id+"-shape",ZC.Q.G2(i,{points:e.path})),t.appendChild(i),t},AD9:function(e){var i;if(ZC.AK(e.id))return ZC.AK(e.id);var t=document.createElement("canvas"),n=t.style;if(null!==ZC._n_(i=e.id)&&(t.id=i),null!==ZC._n_(i=e.cls)&&(t.className=i),null!==ZC._n_(i=e.wh)){var a=(""+i).split("/");e.width=a[0],e.height=a[1]}if(null!==ZC._n_(i=e.tl)){var l=(""+i).split("/");e.top=l[0],e.left=l[1]}return t.width=e.width,t.height=e.height,null!==ZC._n_(i=e.left)&&(n.left=i+"px"),null!==ZC._n_(i=e.top)&&(n.top=i+"px"),null!==ZC._n_(i=e.display)&&(n.display=i),null!==ZC._n_(i=e.position)&&(n.position=i),null!==ZC._n_(i=e.zidx)&&(n.zIndex=i),e.p.appendChild(t),t},HX:function(e){var i,t,n,a,l,o;if(ZC.AK(e.id))return n=ZC.AK(e.id),null!==ZC._n_(i=e.wh)&&(l=(""+i).split("/"),n.style.width=l[0]+"px",n.style.height=l[1]+"px"),null!==ZC._n_(i=e.tl)&&(o=(""+i).split("/"),n.style.top=o[0]+"px",n.style.left=o[1]+"px"),n;(a=(n=document.createElement("div")).style).whiteSpace="nowrap",null!==ZC._n_(i=e.wh)&&(l=(""+i).split("/"),e.width=l[0],e.height=l[1]),null!==ZC._n_(i=e.tl)&&(o=(""+i).split("/"),e.top=o[0],e.left=o[1]),null!==ZC._n_(i=e.id)&&(n.id=i),null!==ZC._n_(i=e.cls)&&""!==i&&(n.className=i);for(var r=[["top","","px"],["left","","px"],["width","","px"],["height","","px"],"position","overflow",["float","cssFloat|styleFloat"],["zidx","zIndex"],"clip","display",["fontSize","","px"],"fontFamily","fontWeight","fontStyle","textDecoration","textAlign","verticalAlign","color","border","borderTop","borderRight","borderBottom","borderLeft","background","cursor",["margin","marginTop|marginRight|marginBottom|marginLeft","px"],["marginTop","","px"],["marginRight","","px"],["marginBottom","","px"],["marginLeft","","px"],["padding","paddingTop|paddingRight|paddingBottom|paddingLeft","px"],["paddingTop","","px"],["paddingRight","","px"],["paddingBottom","","px"],["paddingLeft","","px"],"lineHeight","filter"],s=null,A=null,C=null,c=0,u=r.length;c<u;c++)if("string"==typeof r[c]&&(r[c]=[r[c]]),i=null,null!==ZC._n_(t=e[r[c][0]])&&(i=t),null!==ZC._n_(i)){null!==ZC._n_(r[c][1])&&""!==r[c][1]||(r[c][1]=r[c][0]);for(var p=r[c][1].split("|"),Z=0,h=p.length;Z<h;Z++){var d=i+(null===ZC._n_(r[c][2])?"":r[c][2]);a[p[Z]]=d,"fontFamily"===p[Z]&&(s=d),"fontSize"===p[Z]&&(A=ZC._i_(d)),"fontWeight"===p[Z]&&(C=d)}}return null!==ZC._n_(i=e.opacity)&&(a.opacity=i,1!==ZC._f_(i)&&(a.filter="alpha(opacity = "+ZC._i_(100*ZC._f_(i))+")",a.opacity=i)),null!==ZC._n_(i=e.p)&&(e.after?i.insertBefore(n,e.after.nextSibling):i.appendChild(n)),null!==ZC._n_(i=e.html)&&(n.innerHTML=ZC._h_(i),-1!==i.indexOf("<")&&-1!==i.indexOf(">")&&ZC.A4(n).children().each(function(){null!==ZC._n_(s)&&(null!==ZC._n_(this.style.fontFamily)&&""!==this.style.fontFamily||(this.style.fontFamily=s)),null!==ZC._n_(A)&&(null!==ZC._n_(this.style.fontSize)&&""!==this.style.fontSize||(this.style.fontSize=A+"px")),null!==ZC._n_(C)&&(null!==ZC._n_(this.style.fontWeight)&&""!==this.style.fontWeight||(this.style.fontWeight=C))})),e.rtl&&(n.style.unicodeBidi="bidi-override",n.style.direction="rtl"),e.cursor&&"hand"===e.cursor&&(n.style.cursor="pointer"),n},VS:null,A3Y:function(e,i,t,n,a,l,o){var r,s,A,C;null===ZC._n_(o)&&(o=!1);var c=!1;"[HTMLMODE]"===i.substring(0,10)&&(c=!0,i=i.substring(10)),C=e+"-text-ruler",-1!==e.indexOf("-fullscreen")&&(C="zc-text-ruler");var u="{{"+i+"}}"+t.replace(/[^a-z]/gi,"").toLowerCase()+n+l+a;if(ZC.cache.data["text-width-"+u]&&!o)return ZC.cache.data["text-width-"+u];if(ZC.cache.data["text-height-"+u]&&o)return ZC.cache.data["text-height-"+u];var p=i;p=p.replace(/<hr>/g,'<hr style="margin:0;padding:0">');var Z;return(Z=ZC.AK(C))?(ZC.Q.VS&&ZC.Q.VS===e+t+n+l+a||(Z.style.fontFamily=t,Z.style.fontSize=n+"px",Z.style.fontWeight=a,Z.style.lineHeight=c?"130%":-1!==l?ZC._i_(l)+"px":"130%",ZC.Q.VS=e+t+n+l+a),Z.innerHTML=p):(Z=ZC.Q.HX({id:C,p:document.body,tl:"-9999/-9999",html:p,position:"absolute",fontFamily:t,fontSize:n,cls:"zc-text-ruler",fontWeight:a})).style.lineHeight=c?"130%":-1!==l?ZC._i_(l)+"px":"130%",-1===i.indexOf("<")||-1===i.indexOf(">")||c||ZC.A4(Z).children().each(function(){"BR"!==this.tagName.toUpperCase()&&(null!==ZC._n_(this.style.fontFamily)&&""!==this.style.fontFamily||(this.style.fontFamily=t),null!==ZC._n_(this.style.fontSize)&&""!==this.style.fontSize||(this.style.fontSize=n+"px"),this.style.lineHeight=-1!==l?ZC._i_(l)+"px":"130%","B"!==this.tagName.toUpperCase()&&"STRONG"!==this.tagName.toUpperCase()&&(null!==ZC._n_(this.style.fontWeight)&&""!==this.style.fontWeight||(this.style.fontWeight=a)))}),(r=Z.getBoundingClientRect())&&r.width>0?(s=r.width,o&&(A=r.height)):(s=ZC.mobile&&ZC.A4.browser.webkit?Z.offsetWidth:ZC.A4(Z).width(),o&&(A=ZC.mobile&&ZC.A4.browser.webkit?Z.offsetHeight:ZC.A4(Z).height())),o?(ZC.cache.add("text-height-"+u,A),A):(ZC.cache.add("text-width-"+u,s),s)}},!document.getElementsByClassName&&document.querySelectorAll&&(document.getElementsByClassName=function(e){return document.querySelectorAll("."+e)}),ZC.A4=function(e,i,t){var n,a,l,o,r=this;if(void 0===t&&(t=!0),t)return new ZC.A4(e,i,!1);if(r.OX=[],r.Q0=e,r.MF=i,r.length=0,r.MF=r.MF||document.getElementsByTagName("body")[0],"object"==typeof r.Q0)r.OX=[r.Q0];else if("string"==typeof r.Q0)for(var s=r.Q0.split(","),A=0;A<s.length;A++){var C=ZC.GT(s[A]),c=!1;if(2===(n=C.split(">")).length&&(c=!0,ZC.A4(n[0]).each(function(){var e=this;ZC.A4(n[1],this).each(function(){this.parentNode===e&&r.OX.push(this)})})),2===(n=C.split(" ")).length&&(c=!0,ZC.A4(n[0]).each(function(){ZC.A4(n[1],this).each(function(){r.OX.push(this)})})),!c)if("#"===C.substring(0,1))ZC.AK(C.substring(1))&&(r.OX=[ZC.AK(C.substring(1))]);else if("."===C.substring(0,1))if(document.getElementsByClassName){if(r.MF.getElementsByClassName)a=r.MF.getElementsByClassName(C.substring(1));else if(a=document.getElementsByClassName(C.substring(1)),r.MF!==document){var u=[];for(l=0,o=a.length;l<o;l++)ZC.A4.childof(a[l],r.MF)&&u.push(a[l]);a=u}for(l=0,o=a.length;l<o;l++)r.OX.push(a[l])}else{var p=new RegExp("(^|\\s)"+C.substring(1)+"(\\s|$)","i"),Z=r.MF.getElementsByTagName("*"),h="";for(l=0,o=Z.length;l<o;l++)"object"==typeof(h=Z[l].className)&&(h="undefined"!=typeof h.baseVal?h.baseVal:""),""!==h&&p.test(h)&&r.OX.push(Z[l])}else for(l=0,o=(a=r.MF.getElementsByTagName(C)).length;l<o;l++)r.OX.push(a[l])}return r.length=r.OX.length,this},ZC.A4.prototype={eachfn:function(){for(var e,i=[],t=0,n=this.OX.length;t<n;t++){var a=[this.OX[t]];if((e=arguments.length)>1)for(var l=1;l<e;l++)a.push(arguments[l]);i.push(arguments[0].apply(this,a))}return i},each:function(){for(var e,i=0,t=this.OX.length;i<t;i++){var n=[this.OX[i]];if((e=arguments.length)>1)for(var a=1;a<e;a++)n.push(arguments[a]);arguments[0].apply(this.OX[i],n)}return this},children:function(){var e=[];return this.each(function(){for(var i=0,t=this.childNodes.length;i<t;i++)1===this.childNodes[i].nodeType&&e.push(this.childNodes[i])}),this.OX=e,this},remove:function(){this.eachfn.call(this,function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})},empty:function(){this.eachfn.call(this,function(e){if(e)for(;e.childNodes.length;)e.removeChild(e.childNodes[e.childNodes.length-1])})},A2I:function(e){void 0===e&&(e=!0);var i,t,n=this.eachfn.call(this,function(n){if(!n)return null;if(n===window){var a=document.body;return n.innerWidth?(i=n.innerWidth,t=n.innerHeight):a&&a.parentElement&&a.parentElement.clientWidth?(i=a.parentElement.clientWidth,t=a.parentElement.clientHeight):a&&a.clientWidth&&(i=a.clientWidth,t=a.clientHeight),{width:i,height:t}}var l,o,r=e?"block":ZC.A4(n).getstyle("display");if(window.getComputedStyle){var s=window.getComputedStyle(n,null);l=s.getPropertyValue("width").slice(0,-2),o=s.getPropertyValue("height").slice(0,-2)}else if(n.getBoundingClientRect){var A=n.getBoundingClientRect();l=A.width?A.width:n.offsetWidth,o=A.height?A.height:n.offsetHeight}else l=n.offsetWidth,o=n.offsetHeight;if("none"===r||""===r||void 0===r){var C=n.style,c=C.visibility,u=C.position,p=C.display;C.visibility="hidden",C.position="absolute",C.display="block",i=l,t=o,C.display=p,C.position=u,C.visibility=c}else i=l||0,t=o||0;return{width:i,height:t}});return 1===n.length?n[0]:n},getstyle:function(e){var i=this.eachfn.call(this,function(e,i){if("display"===i)return e.style.display;var t,n=document;if(i=ZC.EC(i),!e||e===n)return undefined;if("opacity"===i&&"undefined"!=typeof e.filters){var a=(ZC.A4(e).getstyle("filter")||"").match(/alpha\(opacity=(.*)\)/);return a&&a[1]?parseFloat(a[1])/100:1}if(-1!==ZC.AV(["float","cssFloat","styleFloat"],i))return(t=e.style["float"])?t:(t=e.style.cssFloat)?t:(t=e.style.styleFloat)?t:"none";var l=e.style?e.style[i]:null;if(!l)if(n.defaultView&&n.defaultView.getComputedStyle){var o=n.defaultView.getComputedStyle(e,null);i=i.replace(/([A-Z])/g,"-$1").toLowerCase(),l=o?o.getPropertyValue(i):null}else if(e.currentStyle&&(l=e.currentStyle[i],/^\d/.test(l)&&!/px$/.test(l)&&"fontWeight"!==i)){var r=e.style.left,s=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,e.style.left=l||0,l=e.style.pixelLeft+"px",e.style.left=r,e.runtimeStyle.left=s}return"opacity"===i&&(l=parseFloat(l)),/Opera/.test(navigator.userAgent)&&-1!==ZC.AV(["left","top","right","bottom"],i)&&"static"===ZC.A4(e).getstyle("position")&&(l="auto"),"auto"===l?null:l},e);return 1===i.length?i[0]:i},wh:function(){var e;return this.OX[0]?null!==ZC._n_(e=ZC.A4(this.OX[0]).A2I())?[ZC._i_(e.width),ZC._i_(e.height)]:[0,0]:null},width:function(e){var i;if(void 0===e){var t=this.eachfn.call(this,function(e){return null!==ZC._n_(i=ZC.A4(e).A2I())?ZC._i_(i.width):0});return 1===t.length?t[0]:t}return this.eachfn.call(this,function(e,i){e.style.width=i+"px"},e),this},height:function(e){var i;if(void 0===e){var t=this.eachfn.call(this,function(e){return null!==ZC._n_(i=ZC.A4(e).A2I())?ZC._i_(i.height):0});return 1===t.length?t[0]:t}return this.eachfn.call(this,function(e,i){e.style.height=i+"px"},e),this},scrollLeft:function(){return ZC.A4.scroll().left},scrollTop:function(){return ZC.A4.scroll().top},css:function(e,i){if(void 0===i){var t=this.eachfn.call(this,function(i){var t=ZC.A4(i).getstyle(e);return-1!==(""+t).indexOf("px")?ZC._i_(t):t});return 1===t.length?t[0]:t}return this.eachfn.call(this,function(e,i,t){e.style[i]=t},e,i),this},attr:function(e,i){if(void 0===i){var t=this.eachfn.call(this,function(i){return i.getAttribute(e)});return 1===t.length?t[0]:t}return this.eachfn.call(this,function(e,i,t){e.setAttribute(i,t)},e,i),this},val:function(e){if(void 0===e){var i=this.eachfn.call(this,function(e){return e.value});return 1===i.length?i[0]:i}return this.eachfn.call(this,function(e,i){e.value=i},e),this},show:function(){return this.eachfn.call(this,function(e){e.style.display="block"}),this},hide:function(){return this.eachfn.call(this,function(e){e.style.display="none"}),this},offset:function(){var e=this.eachfn.call(this,function(e){if(!(e&&(e.x&&e.y||null!==!e.parentNode&&"none"!==ZC.A4(e).getstyle("display"))))return undefined;var i,t,n,a,l,o,r,s={top:0,left:0},A={top:0,left:0},C=e&&e.ownerDocument;return C&&((t=C.body)===e&&(s={top:t.offsetTop,left:t.offsetLeft}),i=C.documentElement,"undefined"!=typeof e.getBoundingClientRect&&(A=e.getBoundingClientRect()),n=C.defaultView||C.parentWindow,a=i.clientTop||t.clientTop||0,l=i.clientLeft||t.clientLeft||0,o=n.pageYOffset||i.scrollTop,r=n.pageXOffset||i.scrollLeft,s={top:A.top+o-a,left:A.left+r-l}),s});return 1===e.length?e[0]:e},bind:function(e,i,t){if(""!==(e=ZC.A4.cleanTouchEvents(e))){if(t||(t=!ZC.hasPassive||{passive:!0}),-1!==e.indexOf(" ")){for(var n=e.split(/\s+/),a=0;a<n.length;a++)this.bind(n[a],i,t);return this}return this.eachfn.call(this,function(e,i,n){function a(e){var i=(e=e||window.event).target||e.srcElement,t=ZC.A4.C0(e);null!==t&&n.call(i,t)}ZC.A4.IV||(ZC.A4.IV=[]),ZC.A4.IV.push([e,i,n,a]),e.addEventListener?e.addEventListener(i,a,t):e.attachEvent("on"+i,a)},e,i),this}},unbind:function(e,i){if(""!==(e=ZC.A4.cleanTouchEvents(e))){if(-1!==e.indexOf(" ")){for(var t=e.split(/\s+/),n=0;n<t.length;n++)this.unbind(t[n],i);return this}return this.eachfn.call(this,function(e,i,t){if("undefined"!=typeof ZC.A4.IV)for(var n=0,a=ZC.A4.IV.length;n<a;n++)if((ZC.A4.IV[n][0]===e||e.tagName&&"MAP"===e.tagName.toUpperCase()&&e.id===ZC.A4.IV[n][0].id)&&ZC.A4.IV[n][1]===i&&ZC.A4.IV[n][2]===t){e.removeEventListener?e.removeEventListener(i,ZC.A4.IV[n][3],!0):e.detachEvent("on"+i,ZC.A4.IV[n][3]),ZC.A4.IV.splice(n,1);break}},e,i),this}},live:function(e,i,t){function n(i){var t=(i=i||window.event).target||i.srcElement,n=t.className||"";"object"==typeof n&&(n="undefined"!=typeof n.baseVal&&null!==ZC._n_(n.baseVal)?n.baseVal:"");var a,o,r=ZC.A4.EVENTS[e],s=null,A=null,C=[];for(a=0,o=r.length;a<o;a++)("object"==typeof r[a][0]&&t===r[l][0]||"string"==typeof r[a][0]&&("."===r[a][0].substring(0,1)&&-1!==ZC.AV(n.split(" "),r[a][0].replace(".",""))||"#"===r[a][0].substring(0,1)&&t.id===r[a][0].substring(1)))&&(s=r[a][1],A=ZC.A4.C0(i),null!==ZC._n_(s)&&null!==ZC._n_(A)&&C.push([s,t,A]));for(a=0,o=C.length;a<o;a++)C[a][0].call(C[a][1],C[a][2])}if(""!==(e=ZC.A4.cleanTouchEvents(e))){if(t||(t=!ZC.hasPassive||{passive:!0}),-1===e.indexOf("touch")&&-1===e.indexOf("wheel")||(t={passive:!1}),-1!==e.indexOf(" ")){for(var a=e.split(/\s+/),l=0;l<a.length;l++)this.live(a[l],i,t);return this}var o=this.Q0;return ZC.A4.EVENTS||(ZC.A4.EVENTS={}),ZC.A4.EVENTS[e]||(ZC.A4.EVENTS[e]=[],document.addEventListener?document.addEventListener(e,n,t):document.attachEvent("on"+e,n)),ZC.A4.EVENTS[e].push([o,i]),this}},die:function(e,i){if(""!==(e=ZC.A4.cleanTouchEvents(e))){var t,n,a;if(-1!==e.indexOf(" ")){for(n=0,a=(t=e.split(/\s+/)).length;n<a;n++)this.die(t[n],i);return this}var l=this.Q0;if(ZC.A4.EVENTS||(ZC.A4.EVENTS={}),t=ZC.A4.EVENTS[e])for(n=t.length-1;n>=0;n--)t[n][0]!==l||i&&t[n][1]!==i||ZC.A4.EVENTS[e].splice(n,1);return this}}},ZC.A4._list_=function(e){for(var i=[],t=0;t<ZC.A4.EVENTS[e].length;t++)i.push(ZC.A4.EVENTS[e][t][0]);return i.join(",")},ZC.A4.cleanTouchEvents=function(e){return ZC.ie678&&(e=ZC.GT(e.replace(/touchstart|touchend|touchmove/,""))),e},ZC.A4.cache={},ZC.A4.browser={},function(){var e=/(webkit)[ \/]([\w.]+)/,i=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,a=/(trident)(?:.*? rv:([\w.]+))?/,l=function(l){l=l.toLowerCase();var o=e.exec(l)||i.exec(l)||t.exec(l)||a.exec(l)||l.indexOf("compatible")<0&&n.exec(l)||[];return[o[1]||"",o[2]||"0"]}(navigator.userAgent);l[0]&&("trident"===l[0]&&(l[0]="msie"),ZC.A4.browser[l[0]]=!0,ZC.A4.browser.version=l[1])}(),ZC.A4.scroll=function(){var e={top:0,left:0},i=document,t=i.documentElement,n=i.body;return t&&(t.scrollTop||t.scrollLeft)?(e.left=t.scrollLeft,e.top=t.scrollTop):n&&(e.left=n.scrollLeft,e.top=n.scrollTop),e},ZC.A4.C0=function(e){if(e.originalEventZC=e,e.target||(e.target=e.srcElement||document),3!==e.target.nodeType&&8!==e.target.nodeType||(e.target=e.target.parentNode),null===ZC._n_(e.pageX)&&null!==ZC._n_(e.clientX)){var i=e.target.ownerDocument||document,t=i.documentElement,n=i.body;e.pageX=e.clientX+(t&&t.scrollLeft||n&&n.scrollLeft||0)-(t&&t.clientLeft||n&&n.clientLeft||0),e.pageY=e.clientY+(t&&t.scrollTop||n&&n.scrollTop||0)-(t&&t.clientTop||n&&n.clientTop||0)}return e.which||e.button===undefined||(e.which=1&e.button?1:2&e.button?3:4&e.button?2:0),e.preventDefault||(e.preventDefault=function(){this.returnValue=!1}),e.stopPropagation||(e.stopPropagation=function(){this.cancelBubble=!0}),e},ZC.A4.childof=function(e,i){if(e===i)return!0;for(;e!==i&&e.parentNode;)if((e=e.parentNode)===i)return!0;return!1},ZC.A4.ajax=function(e){var i=e.url||"",t=e.type||"GET",n=e.data||"",a=!0;"undefined"!=typeof e.async&&(a=ZC._b_(e.async)),""===n.replace(/\&/g,"")&&(n="");var l=e.beforeSend||null,o=e.error||null,r=e.success||null,s=null;try{window.ActiveXObject?s=new ActiveXObject("Microsoft.XMLHTTP"):window.XMLHttpRequest&&(s=new XMLHttpRequest)}catch(C){}var A="file:"===window.location.protocol;if(s){a&&(s.onreadystatechange=function(){4===s.readyState&&((A||s.status>=200&&s.status<300)&&r&&r(s.responseText,s.status,s,i),s.status>=400&&o&&o(s,s.status,s.statusText,i),s.onreadystatechange=new window.Function,s=null)}),window.ActiveXObject||(s.onerror=function(){o&&o(s,0,"",i)}),"POST"===t.toUpperCase()?(s.open("POST",i,a),s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.setRequestHeader("Content-type","application/x-www-form-urlencoded")):(""!==n&&(-1===i.indexOf("?")&&(i+="?"),i+="&"+n),s.open("GET",i,a)),l&&l(s);try{s.send(n),a||((A||s.status>=200&&s.status<300)&&r&&r(s.responseText,s.status,s,i),s.status>=400&&o&&o(s,s.status,s.statusText,i),s=null)}catch(c){A&&o&&(o(s,s.status,s.statusText,i),s.onreadystatechange=new window.Function,s=null)}}},ZC.AO={ACD:function(e,i){function t(e,i){-1===ZC.AV(e,i)&&e.push(i)}var n,a,l=zingchart.DEV.SPREADFACTOR,o=[],r=0;for(n=0;n<e.length;n++)e[n]+=i;var s=-1;for(n=1;n<e.length;n++)ZC._a_(e[n]-e[n-1])<l?(o[r]=o[r]||{min:-1,max:-1,items:[]},-1===o[r].min&&(o[r].min=n>1?e[n-2]:i,-1===s&&(s=o[r].min),o[r].min),t(o[r].items,n-1),t(o[r].items,n)):o[r]&&(o[r].max=e[n],o[r].max,r++);o[r]&&-1===o[r].max&&(o[r].max=360+i);var A=o.length;if(A>1&&o[A-1].max-o[0].min==360){for(a=0;a<o[0].items.length;a++)e[o[0].items[a]]+=360;o[A-1].items=o[A-1].items.concat(o[0].items),o[A-1].max+=o[0].min,o=o.splice(1)}for(o.length>1&&(o[o.length-1].max=o[0].min+360),n=0;n<o.length;n++){var C=o[n],c=C.items.length,u=(C.max-C.min)/(c+4);u=ZC.CY(u,l);var p=0;for(a=0;a<C.items.length;a++)p+=e[C.items[a]];p/=C.items.length;for(var Z=!0;Z;)for(Z=!1,a=1;a<C.items.length;a++)if(e[C.items[a]]-e[C.items[a-1]]<u){e[C.items[a-1]]<p?(e[C.items[a-1]]-=.45,e[C.items[a]]+=.05):e[C.items[a]]+=.25,Z=!0;break}}return e},_int_:function(e){return Math.abs(e-ZC._i_(e))<Math.pow(10,-10)},XI:function(e,i,t){return t=t||1,!(e.x>i.x+i.width+t)&&(!(i.x>e.x+e.width+t)&&(!(e.y>i.y+i.height+t)&&!(i.y>e.y+e.height+t)))},_boxoverlap2_:function(e,i,t){return t=t||1,!(e.iX>i.iX+i.I+t)&&(!(i.iX>e.iX+e.I+t)&&(!(e.iY>i.iY+i.F+t)&&!(i.iY>e.iY+e.F+t)))},AG6:function(e,i){return e.iX>=i.iX&&e.iX<=i.iX+i.I&&e.iY>=i.iY&&e.iY<=i.iY+i.F&&e.iX+e.I>=i.iX&&e.iX+e.I<=i.iX+i.I&&e.iY+e.F>=i.iY&&e.iY+e.F<=i.iY+i.F},A5U:function(e,i,t){for(var n=Math.sqrt(e/Math.PI),a=Math.sqrt(i/Math.PI),l=Math.min(n,a),o=Math.max(n,a),r=ZC.MAX,s=0,A=l+o;A>o-l;A-=l/50){var C=l*l*Math.acos((A*A+l*l-o*o)/(2*A*l))+o*o*Math.acos((A*A+o*o-l*l)/(2*A*o))-.5*Math.sqrt((-A+l+o)*(A+l-o)*(A-l+o)*(A+l+o));Math.abs(C-t)<r&&(r=Math.abs(C-t),s=A)}return s},BK:function(e,i,t,n){return[e+t*Math.cos(2*n*Math.PI/360),i+t*Math.sin(2*n*Math.PI/360)]},A55:function(e,i,t,n,a){var l=ZC.TO(Math.atan((n-i)/(t-e)));return[e+ZC._i_(ZC.EF(l)*a),i+ZC._i_(ZC.EO(l)*a)]},JO:function(e,i,t,n,a,l){if(a=null===ZC._n_(a)?0:a,l=null===ZC._n_(l)||l,t-e!=0){var o=0,r=0,s=Math.atan((n-i)/(t-e));return(a<1||l)&&(o=a/2.5*Math.cos(s),r=a/2.5*Math.sin(s)),[(e+t)/2+(e<t?o:-o),(i+n)/2+r]}return[e,(i+n)/2]},AAZ:function(e,i){var t=(e[1]-i[1])/(e[0]-i[0]);return[t,e[1]-t*e[0]]},A4G:function(e,i,t,n){if(i[0]===n[0]&&i[1]===n[1])return i;if(e[0]===t[0]&&e[1]===t[1])return e;var a=ZC.AO.AAZ(e,i),l=a[0],o=a[1],r=ZC.AO.AAZ(t,n),s=r[0],A=(r[1]-o)/(l-s);return[A,l*A+o]},PM:function(e,i,t){null===ZC._n_(i)&&(i=5);var n=0,a=0;null!==ZC._n_(t)&&(n=t[0],a=t[1]);for(var l,o,r,s="",A=ZC.ie67?ZC.MAPTX:0,C=0,c=e.length;C<c;C++)e[C]&&(0===C?(o=e[C][0]+A+n,r=e[C][1]+A+a,l=C,s+=Math.round(o,10)+","+Math.round(r,10)+","):Math.sqrt((e[C][0]+A-o)*(e[C][0]+A-o)+(e[C][1]+A-r)*(e[C][1]+A-r))>i&&e[C-1]&&(Math.sqrt((e[C][0]-e[C-1][0])*(e[C][0]-e[C-1][0])+(e[C][1]-e[C-1][1])*(e[C][1]-e[C-1][1]))>i&&C-l>1&&(s+=Math.round(e[C-1][0]+A+n,10)+","+Math.round(e[C-1][1]+A+a,10)+","),o=e[C][0]+A+n,r=e[C][1]+A+a,l=C,s+=Math.round(o,10)+","+Math.round(r,10)+","));return s=s.substring(0,s.length-1)},YW:function(e,i){if(null===ZC._n_(e)||e.length<2)return"";null===ZC._n_(i)&&(i=6,ZC.mobile&&(i+=10));var t,n,a,l,o,r=[];for(t=0,n=e.length;t<n;t++)(0===t||t>0&&null!==ZC._n_(e[t])&&null!==ZC._n_(e[t-1])&&e[t].join("/")!==e[t-1].join("/")||null===ZC._n_(e[t]))&&r.push(e[t]);var s=[],A=[],C=!1;for(t=0,n=r.length;t<n;t++)if(r[t]){var c,u,p,Z,h=r[t][0],d=r[t][1];if(r[t-1]&&(p=r[t-1][0],Z=r[t-1][1],p===h&&(p-=.1)),r[t+1]&&(c=r[t+1][0],u=r[t+1][1],c===h&&(c+=.1)),0===t)a=Math.atan((u-d)/(c-h)),o=l=ZC.TO(a),c>=h&&(o+=180),s.push(ZC.AO.BK(h,d,i,l+90),ZC.AO.BK(h,d,i,o),ZC.AO.BK(h,d,i,l+270));else if(t===r.length-1)a=Math.atan((Z-d)/(p-h)),o=l=ZC.TO(a),p>=h&&(o+=180),C?(A.push(ZC.AO.BK(h,d,i,l+270),ZC.AO.BK(h,d,i,o),ZC.AO.BK(h,d,i,l+90)),C=!1):s.push(ZC.AO.BK(h,d,i,l+270),ZC.AO.BK(h,d,i,o),ZC.AO.BK(h,d,i,l+90));else{var f=Math.atan((u-d)/(c-h)),_=Math.atan((d-Z)/(h-p));o=ZC.TO((f+_)/2),s.push(ZC.AO.BK(h,d,i,o+270)),c>=h&&p>=h?(s.push(ZC.AO.BK(h,d,i,o+180)),s.push(ZC.AO.BK(h,d,i,o+90)),A.push(ZC.AO.BK(h,d,i,o)),C=!0):c<=h&&p<=h?(s.push(ZC.AO.BK(h,d,i,o)),s.push(ZC.AO.BK(h,d,i,o+90)),A.push(ZC.AO.BK(h,d,i,o+180)),C=!0):A.push(ZC.AO.BK(h,d,i,o+90))}}for(t=A.length-1;t>=0;t--)s.push(A[t]);return s},A20:function(e,i){var t=0,n=0,a=[];switch(e+=""){case"horizontal":case"h":t=1,n=i;break;case"vertical":case"v":t=i,n=1;break;default:a=e.split("x"),null!==ZC._n_(a[0])&&ZC._i_(a[0])+""===a[0]&&(t=ZC._i_(a[0])),null!==ZC._n_(a[1])&&ZC._i_(a[1])+""===a[1]&&(n=ZC._i_(a[1])),0===n&&0===t?(t=Math.ceil(Math.sqrt(i)),n=Math.ceil(i/t)):(0===n&&(n=Math.ceil(i/t)),0===t&&(t=Math.ceil(i/n)))}return[t,n]},AB0:function(e,i){return.5*(2*i[1]+(-i[0]+i[2])*e+(2*i[0]-5*i[1]+4*i[2]-i[3])*e*e+(-i[0]+3*i[1]-3*i[2]+i[3])*e*e*e)},AB4:function(e,i){var t,n,a,l,o,r=e.length,s=[],A=[],C=[];for(t=0;t<r-1;t++)n=e[t+1]-e[t],a=i[t+1]-i[t],A.push(n),s.push(a),C.push(a/n);var c=[C[0]];for(t=0;t<A.length-1;t++){l=C[t];var u=C[t+1];if(l*u<=0)c.push(0);else{n=A[t];var p=A[t+1];o=n+p,c.push(3*o/((o+p)/l+(o+n)/u))}}c.push(C[C.length-1]);var Z=[],h=[];for(t=0;t<c.length-1;t++){l=C[t];var d=c[t],f=1/A[t];o=d+c[t+1]-l-l,Z.push((l-d-o)*f),h.push(o*f*f)}return function(t){var n=e.length-1;if(t===e[n])return i[n];for(var a,l=0,o=h.length-1;l<=o;){a=Math.floor(.5*(l+o));var r=e[a];if(r<t)l=a+1;else{if(!(r>t))return i[a];o=a-1}}n=Math.max(0,o);var s=t-e[n],A=s*s;return i[n]+c[n]*s+Z[n]*A+h[n]*s*A}},XZ:function(e,i,t,n){null===ZC._n_(n)&&(n=1/(t/i.length*4));var a,l,o=[];if(e)if((a=[].concat(i))[1]&&a[2]){a[0]=a[0]||a[1]||a[2]||a[3],a[1]=a[1]||a[2]||a[0]||a[3],a[2]=a[2]||a[3]||a[1]||a[0],a[3]=a[3]||a[2]||a[1]||a[0];var r=ZC.AO.AB4([0,1,2,3],a);for(l=1;l<=2;l+=n)o.push([l-1,r(l)])}else o.push([]);else for(var s=1;s<i.length-2;s++)if(1!==n)if((a=[i[s-1],i[s],i[s+1],i[s+2]])[1]&&a[2])for(a[0]=a[0]||a[1]||a[2]||a[3],a[1]=a[1]||a[2]||a[0]||a[3],a[2]=a[2]||a[3]||a[1]||a[0],a[3]=a[3]||a[2]||a[1]||a[0],l=0;l<=1;l+=n){var A=s+l,C=ZC.AO.AB0(l,a);o.push([A-1,C])}else o.push([]);else o.push([s-1,i[s]]);return o},A0A:function(e){for(var i=Math.round(ZC.H0(ZC._a_(e))/Math.LN10),t=[1,2,4,5,6,8,10],n=ZC.MAX,a=1,l=0;l<t.length;l++){var o=t[l]*Math.pow(10,i)-e;ZC._a_(o)<n&&(a=t[l],n=ZC._a_(o))}return a*Math.pow(10,i)},_nice_number_:function(e,i){var t,n;return t=Math.floor(Math.log(e)/Math.log(10)),n=e/Math.pow(10,t),(i?n<1.5?1:n<3?2:n<7?5:10:n<=1?1:n<=2?2:n<=5?5:10)*Math.pow(10,t)},W7:function(e,i,t,n,a,l){null===ZC._n_(a)&&(a=!0),l=null===ZC._n_(l)?10:Math.min(Math.max(2,l),100),null!==ZC._n_(n)&&0!==n||(n=1);var o,r,s,A,C,c,u=Math.floor(ZC.H0(ZC._a_(i))/Math.LN10);e===i&&(i+=Math.pow(10,u)),o=e,r=i,A=ZC.AO._nice_number_(r-o,!1),null===ZC._n_(t)?(s=A/(l-1),s=ZC.AO._nice_number_(s,!0),s*=n):s=t,a?(C=Math.floor(o/s)*s,c=Math.ceil(r/s)*s):(C=o,c=r,s=null===ZC._n_(t)?A/(l-1):t);var p=Math.floor(ZC.H0(ZC._a_(s))/Math.LN10),Z=p<0?ZC._a_(p):0;if(0===Z){var h=(""+s).split(".");2===h.length&&(Z=h[1].length)}return[C,c,s,Z,s]}},ZC.XL={md5:function(e){return ZC.XL.ACV(ZC.XL.ACW(ZC.XL.ACP(e)))},ACW:function(e){return ZC.XL.ACB(ZC.XL.ACS(ZC.XL.ACA(e),8*e.length))},ACV:function(e){for(var i,t="",n=0,a=e.length;n<a;n++)i=e.charCodeAt(n),t+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return t},ACP:function(e){for(var i,t,n="",a=-1,l=e.length;++a<l;)i=e.charCodeAt(a),t=a+1<l?e.charCodeAt(a+1):0,55296<=i&&i<=56319&&56320<=t&&t<=57343&&(i=65536+((1023&i)<<10)+(1023&t),a++),i<=127?n+=String.fromCharCode(i):i<=2047?n+=String.fromCharCode(192|i>>>6&31,128|63&i):i<=65535?n+=String.fromCharCode(224|i>>>12&15,128|i>>>6&63,128|63&i):i<=2097151&&(n+=String.fromCharCode(240|i>>>18&7,128|i>>>12&63,128|i>>>6&63,128|63&i));return n},ACA:function(e){var i,t=Array(e.length>>2);for(i=0;i<t.length;i++)t[i]=0;for(i=0;i<8*e.length;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t},ACB:function(e){for(var i="",t=0;t<32*e.length;t+=8)i+=String.fromCharCode(e[t>>5]>>>t%32&255);return i},ACS:function(e,i){function t(e,i,t,n,a,l){return r(s(r(r(i,e),r(n,l)),a),t)}function n(e,i,n,a,l,o,r){return t(i&n|~i&a,e,i,l,o,r)}function a(e,i,n,a,l,o,r){return t(i&a|n&~a,e,i,l,o,r)}function l(e,i,n,a,l,o,r){return t(i^n^a,e,i,l,o,r)}function o(e,i,n,a,l,o,r){return t(n^(i|~a),e,i,l,o,r)}function r(e,i){var t=(65535&e)+(65535&i);return(e>>16)+(i>>16)+(t>>16)<<16|65535&t}function s(e,i){return e<<i|e>>>32-i}e[i>>5]|=128<<i%32,e[14+(i+64>>>9<<4)]=i;for(var A=1732584193,C=-271733879,c=-1732584194,u=271733878,p=0,Z=e.length;p<Z;p+=16){var h=A,d=C,f=c,_=u;C=o(C=o(C=o(C=o(C=l(C=l(C=l(C=l(C=a(C=a(C=a(C=a(C=n(C=n(C=n(C=n(C,c=n(c,u=n(u,A=n(A,C,c,u,e[p],7,-680876936),C,c,e[p+1],12,-389564586),A,C,e[p+2],17,606105819),u,A,e[p+3],22,-1044525330),c=n(c,u=n(u,A=n(A,C,c,u,e[p+4],7,-176418897),C,c,e[p+5],12,1200080426),A,C,e[p+6],17,-1473231341),u,A,e[p+7],22,-45705983),c=n(c,u=n(u,A=n(A,C,c,u,e[p+8],7,1770035416),C,c,e[p+9],12,-1958414417),A,C,e[p+10],17,-42063),u,A,e[p+11],22,-1990404162),c=n(c,u=n(u,A=n(A,C,c,u,e[p+12],7,1804603682),C,c,e[p+13],12,-40341101),A,C,e[p+14],17,-1502002290),u,A,e[p+15],22,1236535329),c=a(c,u=a(u,A=a(A,C,c,u,e[p+1],5,-165796510),C,c,e[p+6],9,-1069501632),A,C,e[p+11],14,643717713),u,A,e[p],20,-373897302),c=a(c,u=a(u,A=a(A,C,c,u,e[p+5],5,-701558691),C,c,e[p+10],9,38016083),A,C,e[p+15],14,-660478335),u,A,e[p+4],20,-405537848),c=a(c,u=a(u,A=a(A,C,c,u,e[p+9],5,568446438),C,c,e[p+14],9,-1019803690),A,C,e[p+3],14,-187363961),u,A,e[p+8],20,1163531501),c=a(c,u=a(u,A=a(A,C,c,u,e[p+13],5,-1444681467),C,c,e[p+2],9,-51403784),A,C,e[p+7],14,1735328473),u,A,e[p+12],20,-1926607734),c=l(c,u=l(u,A=l(A,C,c,u,e[p+5],4,-378558),C,c,e[p+8],11,-2022574463),A,C,e[p+11],16,1839030562),u,A,e[p+14],23,-35309556),c=l(c,u=l(u,A=l(A,C,c,u,e[p+1],4,-1530992060),C,c,e[p+4],11,1272893353),A,C,e[p+7],16,-155497632),u,A,e[p+10],23,-1094730640),c=l(c,u=l(u,A=l(A,C,c,u,e[p+13],4,681279174),C,c,e[p],11,-358537222),A,C,e[p+3],16,-722521979),u,A,e[p+6],23,76029189),c=l(c,u=l(u,A=l(A,C,c,u,e[p+9],4,-640364487),C,c,e[p+12],11,-421815835),A,C,e[p+15],16,530742520),u,A,e[p+2],23,-995338651),c=o(c,u=o(u,A=o(A,C,c,u,e[p],6,-198630844),C,c,e[p+7],10,1126891415),A,C,e[p+14],15,-1416354905),u,A,e[p+5],21,-57434055),c=o(c,u=o(u,A=o(A,C,c,u,e[p+12],6,1700485571),C,c,e[p+3],10,-1894986606),A,C,e[p+10],15,-1051523),u,A,e[p+1],21,-2054922799),c=o(c,u=o(u,A=o(A,C,c,u,e[p+8],6,1873313359),C,c,e[p+15],10,-30611744),A,C,e[p+6],15,-1560198380),u,A,e[p+13],21,1309151649),c=o(c,u=o(u,A=o(A,C,c,u,e[p+4],6,-145523070),C,c,e[p+11],10,-1120210379),A,C,e[p+2],15,718787259),u,A,e[p+9],21,-343485551),A=r(A,h),C=r(C,d),c=r(c,f),u=r(u,_)}return Array(A,C,c,u)}},"undefined"==typeof zingchart&&(zingchart={ADG:!0}),zingchart.clipart={},zingchart.widgets={},zingchart.plugins={},zingchart.pool={},zingchart.pool.size=0,zingchart.pool.data={},zingchart.pool.getInstance=function(e,i,t,n){var a;if(null!==ZC._n_(zingchart.pool.data[t]))(a=zingchart.pool.data[t])._POOL_=!0,ZC.SKIPOBJCOUNT=!0,n||(a.$i(i),a.K=t),ZC.SKIPOBJCOUNT=!1;else{switch(e){case"DS":a=new ZC.DS(i);break;case"HS":a=new ZC.HS(i);break;case"DW":a=new ZC.DW(i);break;case"QU":a=new ZC.QU(i);break;case"D0":a=new ZC.D0(i)}a.K=t,zingchart.pool.size++,zingchart.pool.size>zingchart.DEV.MAXPOOLSIZE?(zingchart.pool.data={},zingchart.pool.size=0):zingchart.pool.data[t]=a}return a},zingchart.i18n={},zingchart.THEMES={},zingchart.V3D=2,zingchart.QUOTEDVALUES=!1,zingchart.EDITSOURCE=1,zingchart.MODULESDEP={line:"xy",line3d:"3d,line",area:"xy",area3d:"3d,area",vline:"yx",varea:"yx",vbar:"xy",vbar3d:"3d,vbar",hbar:"yx",hbar3d:"3d,hbar",scatter:"xy",bubble:"xy",hscatter:"yx",hbubble:"yx",pie:"r",pie3d:"3d,pie",nestedpie:"r",gauge:"r",vbullet:"vbar",hbullet:"hbar",vfunnel:"xy",hfunnel:"yx",piano:"xy",radar:"r",range:"xy",vrange:"yx",stock:"xy,vbar",venn:"r"},zingchart.SKIP={EVENT:!1,ANIMATION:!1,LEGEND:!1,CSV:!1,PARSE3D:!1},zingchart.MODULESDIR=function(e){for(var i=0;i<e.length;i++)if(e[i].src&&e[i].src.indexOf("zingchart.min.js")>-1)return e[i].src.split("zingchart.min.js")[0]+"modules/";return"./modules/"}(document.getElementsByTagName("head")[0].childNodes),zingchart.DEV={DOMFRAGMENTS:1,SORTTOKENS:1,PLOTSTATS:1,RESOURCES:1,KEEPSOURCE:1,SPREADTYPE:0,SPREADFACTOR:10,IGNORESUBUNIT:0,DELAYEDTRACKERS:0,STACKINGLOGIC:-1,SMARTDATELABELS:0,GC:1,CACHECANVASTEXT:0,CHECKDECIMALS:0,CACHESELECTION:0,MEDIARULES:1,SKIPTRACKERS:0,PLOTSHLAYER:0,RESIZESPEED:250,DEBOUNCESPEED:250,LOCALSVGEXPORT:1,SKIPPROGRESS:0,SKIPCONTEXTMENU:0,COPYDATA:1,GUIDETIMEOUT:0,LOOKUPCSSTRANSFORM:0,MAPSONBOTTOM:0,MAXPOOLSIZE:1024},zingchart.CANVASTEXT=0,zingchart.ZINDEX=1,zingchart.CMZINDEX=9999,zingchart.FSZINDEX=9998,zingchart.FSID=null,zingchart.ZCOUTPUT=0,zingchart.ASYNC=0,zingchart.SORTTRACKERS=0,zingchart.TIMEOUT=0,zingchart.USERCSS={},zingchart.OBJECTMODE="normal",zingchart.SYNTAX="mixed",zingchart.THEME=null,zingchart.EXPORTURL=("file:"===document.location.protocol?"http:":document.location.protocol)+"//export.zingchart.com/",zingchart.AJAXEXPORT=!1,zingchart.TOUCHZOOM="normal",zingchart.DEFAULT={height:480,width:640},zingchart.FASTWIDTH=0,zingchart.FONTSIZE=11,zingchart.FONTFAMILY="Lucida Sans Unicode,Lucida Grande,Lucida Sans,Helvetica,Arial,sans-serif",ZC.mobile&&(zingchart.FONTFAMILY="Lucida Sans,Helvetica,Arial,sans-serif"),zingchart.loadModules=function(e,i){for(var t=(""+e).split(","),n=0,a=t.length;n<a;n++){var l=ZC.GT(t[n]);l=ZC.ALIAS[l]||l,-1!==ZC.AV(["bar","bar3d","funnel","bullet"],l)&&(l="v"+l);var o=zingchart.MODULESDEP[l];null!==ZC._n_(o)&&zingchart.loadModules(o),-1===ZC.AV(ZC.RE,l)&&ZC.RE.push(l)}i&&zingchart.A15(null,ZC.RE,i)},zingchart.A15=function(e,i,t){function n(){function l(){++a===i.length?t():n()}var o,r=!0;zingchart.ACH(i[a])?o=zingchart.MODULESDIR+"zingchart-"+i[a]+".min.js":r=!1,r?ZC.AP.AC7(e,o,l):l()}var a=0;if(0===i.length)t();else{if(!document.getElementsByTagName("head")[0])return void t();n()}},zingchart.ACH=function(e){return-1!==ZC.AV(ZC.RE,e)&&-1===ZC.AV(ZC.WA,e)},zingchart.LD=[],ZC.ie67||function(){for(var e in ZC.IMAGES)ZC.IMAGES.hasOwnProperty(e)&&(zingchart.LD[e]=new Image,zingchart.LD[e].src=ZC.IMAGES[e])}(),"undefined"!=typeof Ext&&(zingchart.LD["zc.blank"]=new Image,zingchart.LD["zc.blank"].src=ZC.BLANK),zingchart.exec=function(e,i,t){return zingchart.exec_flash?zingchart.exec_flash(e,i,t):null},zingchart.ACY=function(O){var QB=O.dataurl||"",EW="",G,M6=null;null!==ZC._n_(G=O.data)&&("string"==typeof G?EW=G:M6=JSON.parse(JSON.stringify(G)));var DJ=null;if(""!==QB)ZC.A4.ajax({type:"GET",url:QB,async:!1,data:zingchart.ZCOUTPUT?"zcoutput=userdef":"",error:function(){return!1},success:function(K8){function _f_(e){ZC.cache.data["data-"+QB]=K8,O.output="auto",ZC._cp_(e.render,O)}try{DJ=JSON.parse(K8),_f_(DJ)}catch(J7){try{DJ=eval("("+K8+")"),_f_(DJ)}catch(J7){return!1}}}});else{if(""!==EW)try{DJ=JSON.parse(EW)}catch(J7){return!1}else null!==M6&&(DJ=M6);null===ZC._n_(O.output)&&(O.output="auto"),ZC._cp_(DJ.render,O)}return zingchart.render(O)},zingchart.ZU=null,zingchart.params={},zingchart.render=function(e,i){if(null===ZC._n_(i)&&(i=!1),i)return zingchart.ACY(e);null===ZC._n_(ZC.canvas)&&ZC.compat();var t=e.output||"auto";"html5"===t&&(t="auto"),ZC.mobile&&"auto"===t&&(t="svg");var n=!1;if("!"===t.substring(0,1)&&(n=!0,t=t.substring(1)),n||("auto"===t||"canvas"===t&&!ZC.canvas||"svg"===t&&!ZC.svg||"vml"===t&&!ZC.vml||"flash"===t&&!ZC.flash)&&(ZC.svg?t="svg":ZC.canvas?t="canvas":ZC.vml?t="vml":ZC.flash&&(t="flash")),"vml"===t&&null===ZC._n_(zingchart.ZU)&&(zingchart.ZU=!1),"flash"!==t)return zingchart.A8G(e,t);zingchart.render_flash(e)},document.attachEvent&&("complete"===document.readyState?zingchart.ZU=!0:document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&(zingchart.ZU=!0)})),zingchart.setlabel=zingchart.setLabel=function(e,i){ZC.HI[e]=i},zingchart.HU=[],zingchart.XR={},zingchart.ADF=0,zingchart.AD3=0,zingchart.ADD=!1,zingchart.A95=!1,zingchart.A9V=!1,zingchart.ACX=!1,zingchart.css=null,zingchart.WR=function(e){if(e.target.id){for(var i=null,t=0,n=zingchart.HU.length;t<n;t++)e.target.id.substr(0,zingchart.HU[t].K.length+1)===zingchart.HU[t].K+"-"&&(i=zingchart.HU[t]);return i}},ZC.GESTURE={id:null,on:!1,ts:null,type:null,dist:-1,mp:[-1,-1]},"undefined"==typeof zingchart.MG&&(zingchart.MG=function(e){if("INPUT"!==e.target.tagName.toUpperCase()&&"TEXTAREA"!==e.target.tagName.toUpperCase()){var i;if("pinch"===zingchart.TOUCHZOOM)switch(ZC.TOUCHEVENTS=!1,e.type){case"touchstart":for(var t=!1,n=0;n<zingchart.HU.length;n++)i=ZC.A4("#"+zingchart.HU[n].K+"-top"),ZC.DT(e.touches[0].pageX,i.offset().left,i.offset().left+i.width())&&ZC.DT(e.touches[0].pageY,i.offset().top,i.offset().top+i.height())&&(t=!0,ZC.GESTURE.id=zingchart.HU[n].K);t&&(ZC.GESTURE.on=!0);break;case"touchmove":if(ZC.GESTURE.on&&2===e.touches.length){e.preventDefault();var a=(e.touches[0].clientX-e.touches[1].clientX)*(e.touches[0].clientX-e.touches[1].clientX)+(e.touches[0].clientY-e.touches[1].clientY)*(e.touches[0].clientY-e.touches[1].clientY);a=Math.round(Math.sqrt(a));var l=[Math.round((e.touches[0].clientX+e.touches[1].clientX)/2),Math.round((e.touches[0].clientY+e.touches[1].clientY)/2)];if(-1===ZC.GESTURE.dist)ZC.GESTURE.dist=a,ZC.GESTURE.mp=l,ZC.GESTURE.ts=(new Date).getTime();else if((new Date).getTime()-ZC.GESTURE.ts>100){if(a>ZC.GESTURE.dist+50)ZC.GESTURE.type="pinch-in",zingchart.exec(ZC.GESTURE.id,"zoomin");else if(a<ZC.GESTURE.dist-50)ZC.GESTURE.type="pinch-out",zingchart.exec(ZC.GESTURE.id,"zoomout");else{ZC.GESTURE.type="panning";var o={};l[0]>ZC.GESTURE.mp[0]+10?(o["x-"]=!0,o.xdist=ZC._a_(ZC.GESTURE.mp[0]-l[0])):l[0]<ZC.GESTURE.mp[0]-10&&(o["x+"]=!0,o.xdist=ZC._a_(ZC.GESTURE.mp[0]-l[0])),l[1]>ZC.GESTURE.mp[1]+10?(o["y+"]=!0,o.ydist=ZC._a_(ZC.GESTURE.mp[1]-l[1])):l[1]<ZC.GESTURE.mp[1]-10&&(o["y-"]=!0,o.ydist=ZC._a_(ZC.GESTURE.mp[1]-l[1])),ZC.GESTURE.mp=l,zingchart.exec(ZC.GESTURE.id,"pan",o)}ZC.GESTURE.ts=(new Date).getTime()}}break;case"touchend":ZC.GESTURE.id=null,ZC.GESTURE.on=!1,ZC.GESTURE.type=null,ZC.GESTURE.ts=null,ZC.GESTURE.dist=-1,ZC.GESTURE.mp=[-1,-1]}if(window.ZC){window.ZC.DX=[e.pageX,e.pageY];var r=zingchart.WR(e);if(r){if(!zingchart.SKIP.EVENT){if("mousedown"===e.type&&(window.ZC.aMDXY=[e.pageX,e.pageY]),"touchstart"===e.type&&r.AH)for(var s=0;s<r.AH.length;s++)r.AH[s].LN();if(-1!==ZC.AV(["mouseover","mouseout","mouseover"],e.type)&&"IMG"!==e.target.tagName.toUpperCase())return;if("mouseout"===e.type&&(i=ZC.A4("#"+r.K+"-top"),ZC.DT(e.pageX,i.offset().left,i.offset().left+i.width(),!0)&&ZC.DT(e.pageY,i.offset().top,i.offset().top+i.height(),!0)))return;ZC.AP.BZ(e.type,r,zingchart.A09(e,r))}zingchart.SKIP.EVENT=!1}}}},ZC.A4(document).bind(ZC.Q.C0("mouseover"),zingchart.MG).bind(ZC.Q.C0("mouseout"),zingchart.MG).bind(ZC.Q.C0("mousemove"),zingchart.MG).bind(ZC.Q.C0("mousedown"),zingchart.MG).bind(ZC.Q.C0("mouseup"),zingchart.MG)),zingchart.A09=function(e,i){var t=ZC.Q.M7(e),n=i.A4O(t[0],t[1]),a=ZC.A4("#"+i.K+"-top"),l=Math.round(t[0]-a.offset().left),o=Math.round(t[1]-a.offset().top),r="none";return/(.*)\-scale\_(.*)\-item\_title\-area(.*)/.test(e.target.id)&&(r="scale-title"),/(.*)\-scale\_(.*)\-item\_(\d+)\-area(.*)/.test(e.target.id)&&(r="scale-item"),/(.*)\-plotset\-plot\-(\d+)\-node\-(\d+)(.*)/.test(e.target.id)&&(r="node"),/(.*)\-legend\-item\_(\d+)\-area/.test(e.target.id)&&(r="legend-item"),/(.*)\-legend\-marker\_(\d+)\-area/.test(e.target.id)&&(r="legend-marker"),/(.*)\-menu\-item\-(.*)/.test(e.target.id)&&(r="menu-item"),/(.*)\-preview\-handler\-x(.*)/.test(e.target.id)&&(r="preview"),/(.*)\-shape\-(.*?)\-area/.test(e.target.id)&&(r="shape"),/(.*)\-label\-(.*?)\-area/.test(e.target.id)&&(r="label"),{id:i.K,ev:ZC.A4.C0(e),targetid:e.target.id,graphid:n?n.K:null,target:r,x:l,y:o,plotarea:!!n&&(l>=n.P.iX&&l<=n.P.iX+n.P.I&&o>=n.P.iY&&o<=n.P.iY+n.P.F),touch:ZC.mobile}},"undefined"==typeof zingchart.SA&&(zingchart.SA=function(e){for(var i=0,t=zingchart.HU.length;i<t;i++)zingchart.HU[i].hideCM();if(ZC.mobile&&ZC.move)ZC.move=!1;else if(ZC.mobile||!(e.which>1)){var n=zingchart.WR(e);if(n){if("click"===e.type&&ZC.aMDXY&&(ZC._a_(ZC.aMDXY[0]-e.pageX)>2||ZC._a_(ZC.aMDXY[1]-e.pageY)>2))return;if(!zingchart.SKIP.EVENT){var a=zingchart.A09(e,n);a.target=zingchart.plugins.CLICK_TARGET||a.target,zingchart.plugins.CLICK_TARGET=null,ZC.mobile&&"touchend"===e.type&&(n.E["click-ts"]&&(new Date).getTime()-n.E["click-ts"]<500&&ZC.AP.BZ("dblclick",n,a),n.E["click-ts"]=(new Date).getTime()),ZC.AP.BZ("dblclick"===e.type?"dblclick":"click",n,a)}zingchart.SKIP.EVENT=!1,e.target.id!==n.K+"-menu-area"?n.hideCM():zingchart.YU(e)}}},ZC.mobile?(ZC.A4(document).bind("touchmove",function(){ZC.move=!0}),ZC.A4(document).bind("touchend",function(){ZC.move=!1})):(ZC.A4(document).bind("click",zingchart.SA),ZC.A4(document).bind("dblclick",zingchart.SA))),"undefined"==typeof zingchart.A2N&&(zingchart.A2N=function(e){e.touches.length>0&&(ZC.TOUCHEVENTS=!0)},ZC.A4(document).bind("touchstart",zingchart.A2N)),"undefined"==typeof zingchart.YU&&(zingchart.YU=function(e,i,t){if(!e||"IMG"===e.target.tagName.toUpperCase()||"AREA"===e.target.tagName.toUpperCase()||-1!==ZC.Q.SV(e.target).indexOf("zc-scroll")||-1!==e.target.id.indexOf("-legend-")||-1!==e.target.id.indexOf("-preview-")||zingchart.DEV.SKIPTRACKERS){var n,a,l,o,r,s;t=t||{};var A=null===ZC._n_(i)?zingchart.WR(e):zingchart.getLoader(i);if(A){if(-1!==ZC.AV(A.KM,"skip_context_menu"))return!1;if(null===ZC._n_(i)?(a=ZC.Q.M7(e),n=A.A4O(a[0],a[1])):n=null!==ZC._n_(t.graphid)?A.OR(t.graphid):A.AH[0],!n)return!1;var C=ZC.A4("#"+A.K+"-top");null===ZC._n_(i)?(l=a[0]-C.offset().left,o=a[1]-C.offset().top):(l=A.I/2,o=A.F/2);var c={};e&&(c=zingchart.A09(e,A));var u=ZC.AP.BZ("contextmenu",A,c,!0);if(!u&&void 0!==u&&(!e&&!t["from-api"]||e&&e.target.id!==A.K+"-menu-area"))return e.preventDefault(),!1;var p=ZC._tx_(A.K);A.A5P(n?n.L:-1,e);var Z=-1;if(0!==zingchart.CMZINDEX)Z=zingchart.CMZINDEX;else for(var h=ZC.AK(A.K);-1===Z&&null!==h.parentNode;)"auto"!==(Z=ZC._i_(ZC.A4(h).css("zIndex")))&&""!==Z&&null!==ZC._n_(Z)||(Z=-1),h=h.parentNode;Z&&-1!==Z&&null!==ZC._n_(Z)||(Z=1);var d=ZC.A4("#"+A.K+"-menu");if(d.css("zIndex",zingchart.ZINDEX+Z+1),null===ZC._n_(i)){if(e.target.id===A.K+"-print-png"||e.target.id===A.K+"-print-jpeg")return!0;e.preventDefault()}if(!ZC.AK(A.K+"-menu"))return!1;l=C.offset().left,o=C.offset().top;var f=C.width(),_=C.height();null===ZC._n_(i)?(r=(a=ZC.Q.M7(e))[0]||ZC.DX[0],s=a[1]||ZC.DX[1]):(r=l+A.I/2,s=o+5);var g=!1;if(A.VG("goback",!1),A.NY>0&&(A.VG("goback",!0),g=!0),A.VG("goforward",!1),A.NY<A.QQ.length-1&&(A.VG("goforward",!0),g=!0),A.VG("history",g,!0),r>=l&&r<=l+f*p[0]&&s>=o&&s<=o+_*p[1]){ZC.A4(".zc-menu").each(function(){this.id!==A.K+"-menu"&&A.hideCM()}),A.SN=[r,s,null===ZC._n_(i)?e.target.id:i],d.css("opacity",0).show();var v=ZC._i_(d.css("width"))+ZC._i_(d.css("paddingLeft"))+ZC._i_(d.css("paddingRight")),b=ZC._i_(d.css("height"))+ZC._i_(d.css("paddingTop"))+ZC._i_(d.css("paddingBottom")),m=1,B=!1;A.o.gui&&A.o.gui["context-menu"]&&A.o.gui["context-menu"]&&(m=A.o.gui["context-menu"].alpha?A.o.gui["context-menu"].alpha:1,B=A.o.gui["context-menu"].docked),d.css("opacity",m).hide();var E,K;if("classic"!==A.LH&&B){if(B){var F=A.B7.NU[A.LH].root.gui["context-menu"];ZC._cp_(A.o.gui["context-menu"],F),E="left"!==A.o.gui["context-menu"].position&&ZC._n_(A.o.gui["context-menu"].position)?C.offset().left+C.width()-v:C.offset().left}K=C.offset().top,d.css("left",ZC.BQ(1,E)+"px").css("top",ZC.BQ(1,K)+"px").css("height",C.height()+"px").css("box-sizing","border-box").show(),d=ZC.A4("#"+A.K+"-menu"),B&&d.OX[0].scrollHeight>C.height()&&d.css("overflow-y","scroll")}else{if(null===ZC._n_(i)&&e.target.id===A.K+"-menu-area"){ZC.AK(A.K+"-menu").style.paddingTop=0;var D=ZC.A4("#"+A.K+"-menu-area").attr("coords").split(","),X=ZC._i_(D[3])-ZC._i_(D[1]);ZC.AK(A.K+"-menu").style.backgroundPosition=ZC._i_(D[0])>A.I/2?"100% 0% !important":"0% 0% !important",E=l+(ZC._i_(D[0])>A.I/2?ZC._i_(D[2])-v:ZC._i_(D[0])),K=o+(ZC._i_(D[1])>A.F/1.25?ZC._i_(D[3])-b-X:ZC._i_(D[3]))}else ZC.AK(A.K+"-menu").style.backgroundPosition="50% 0% !important",E=A.SN[0]-v/2,K=A.SN[1],b>A.F*p[1]?K=o:K-o+b>A.F*p[1]&&(K=ZC.BQ(K-b,A.F*p[1]-b)),E<l&&(E=ZC.BQ(E,l)),E+v>l+A.I*p[0]&&(E=ZC.CY(l+A.I*p[0]-v/2,E-v/2));if(t.position)switch(t.position){case"top":break;case"top-left":E=E-(A.I*p[0]-v)/2+5;break;case"top-right":E=E+(A.I*p[0]-v)/2-5;break;case"bottom":K=K+(A.F*p[1]-b)-10;break;case"bottom-left":K=K+(A.F*p[1]-b)-10,E=E-(A.I*p[0]-v)/2+5;break;case"bottom-right":K=K+(A.F*p[1]-b)-10,E=E+(A.I*p[0]-v)/2-5;break;case"left":K=K+(A.F*p[1]-b)/2-5,E=E-(A.I*p[0]-v)/2+5;break;case"right":K=K+(A.F*p[1]-b)/2-5,E=E+(A.I*p[1]-v)/2-5}else null!==ZC._n_(t.x)&&null!==ZC._n_(t.y)&&(E=l+ZC._i_(t.x),K=o+ZC._i_(t.y));if(d.css("left",ZC.BQ(1,E)+"px").css("top",ZC.BQ(1,K)+"px").show(),ZC.ie67){var I=ZC.A4("#"+A.K+"-menu div").width()[0]||120;d.css("width",I+"px")}}return A.A9B=!0,!1}}}},ZC.A4(document).bind("contextmenu",zingchart.YU)),zingchart.AA9=function(e,i){if(zingchart.css)return zingchart.css.addRule?zingchart.css.addRule(e,i):zingchart.css.insertRule(e+"{"+i+"}",0)},zingchart.wh=function(e,i,t){"auto"===i&&(i="100%"),"auto"===t&&(t="100%");var n,a,l=[0,0];return-1===(""+i).indexOf("%")&&-1===(""+t).indexOf("%")||(l=e.wh()),n=-1!==(""+i).indexOf("%")?l[0]*parseInt(i,10)/100:parseInt(i,10),a=-1!==(""+t).indexOf("%")?l[1]*parseInt(t,10)/100:parseInt(t,10),[n,a]},zingchart.IV={},zingchart.bind=function(e,i,t){e=e||"zingchart-global",zingchart.IV[e]||(zingchart.IV[e]={}),zingchart.IV[e][i]?zingchart.IV[e][i].push({fn:t}):zingchart.IV[e][i]=[{fn:t}]},zingchart.unbind=function(e,i,t){if(e=e||"zingchart-global",zingchart.IV[e]&&zingchart.IV[e][i])if(t){for(var n=0,a=zingchart.IV[e][i].length;n<a;n++)if(zingchart.IV[e][i][n].fn===t){zingchart.IV[e][i].splice(n,1);break}}else zingchart.IV[e][i]=null},zingchart.callEvent=function(e,i,t,n){if(e=e||"zingchart-global",zingchart.IV[e]&&zingchart.IV[e][i]){for(var a=0,l=zingchart.IV[e][i].length;a<l;a++)null!==ZC._n_(n)?t[t.length-1]=zingchart.IV[e][i][a].fn.apply(zingchart,t):zingchart.IV[e][i][a].fn.apply(zingchart,t);if(null!==ZC._n_(n))return t[t.length-1]}},zingchart.hasEvent=function(e,i){return e=e||"zingchart-global",zingchart.IV[e]&&zingchart.IV[e][i]},zingchart.A8G=function(e,i){function t(){if(!d.E.wh||d.E.wh!==d.I+"/"+d.F){for(var e=!1,i=0;i<zingchart.HU.length;i++)zingchart.HU[i].K===d.K&&(e=!0);e&&d.resize()}d.A00=!1}function n(){d.A00?d.V6.width!==d.I&&(clearTimeout(d.A63),d.V6.width=d.I,d.V6.height=d.F,d.A63=setTimeout(t,zingchart.DEV.DEBOUNCESPEED)):(d.A00=!0,d.V6={width:d.I,height:d.F},d.A63=setTimeout(t,zingchart.DEV.DEBOUNCESPEED))}ZC._todash_(e,!1);var a,l,o,r,s,A,C,c,u=[];if(null!==ZC._n_(a=e.flags)&&(u=a.split(",")),null!==ZC._n_(a=e.mode))switch(a){case"static":u=["skip_context_menu","skip_segment_tracking","skip_marker_tracking","skip_interactivity","use_single_canvas"]}var p="";if(null!==ZC._n_(a=e.container)&&(p=a),null!==ZC._n_(a=e.id)&&(p=a),ZC.AK(p)){var Z=null;for(o=0;o<zingchart.HU.length;o++)zingchart.HU[o].K===p&&(Z=zingchart.HU[o].M9);if(null!==ZC._n_(Z)){if(""!==Z)return;zingchart.exec(p,"destroy")}zingchart.params[p]={},ZC._cp_(e,zingchart.params[p]);var h=!1,d=null;for(o=0;o<zingchart.HU.length;o++)zingchart.HU[o].K===p&&(zingchart.HU[o]=new ZC.RG,d=zingchart.HU[o],h=!0);if(h||((d=new ZC.RG).M9="init",zingchart.HU.push(d)),d.K=p,zingchart.XR[p]=!0,"vml"!==i||zingchart.ZU||zingchart.A8G(e,i),!zingchart.A9V){zingchart.A9V=!0;var f={".zc-style":"font-family:"+zingchart.FONTFAMILY+";font-size:"+zingchart.FONTSIZE+"px;font-weight:normal;font-style:normal;text-decoration:none;text-shadow:none;",".zc-style *":"font-family:"+zingchart.FONTFAMILY+";font-size:"+zingchart.FONTSIZE+"px;font-weight:normal;font-style:normal;text-decoration:none;text-shadow:none;",".zc-top *":"text-align:left;margin:auto;text-shadow:none;",".zc-menu *":"text-align:left;margin:auto;",".zc-main text":"-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;",".zc-img":"-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;",".zc-map":"-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;",".zc-pixmap":"-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;",".zc-preview-mask":"cursor:default;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;",".zc-about":"position:absolute;overflow:hidden;border:5px solid #fff;background:#003C4F url("+(ZC.ie67?"//":ZC.LOGO_ABOUT)+") no-repeat center 10px",".zc-about-1":"padding:80px 5px 5px 5px;text-align:center !important;",".zc-about-1 a":"color:#1AB6E3;font-size:17px;line-height:125%;",".zc-about-2":"padding:5px;color:#fff;text-align:center !important;",".zc-about-3":"padding:5px;text-align:center;line-height:125%;",".zc-about-3 div":"background-color:#1AB6E3;line-height:125%;color:#fff;border:1px solid #fff;padding:5px 10px;font-weight:bold;width:60px;margin:0 auto;cursor:pointer;text-align:center",".zc-about-4":"color:#fff;line-height:125%;",".zc-about-4 div":"float:right;color:#fff;line-height:125%;",".zc-viewsource":"border:5px solid #fff;background:#999",".zc-error":"border:5px solid #fff;background:#900",".zc-bugreport":"border:5px solid #fff;background:#999",".zc-form-row-label":"padding:4px 10px 2px;text-align:left;color:#fff",".zc-form-row-element":"padding:2px 8px",".zc-form-row-last":"padding:8px 8px 2px !important",".zc-form-row-element textarea":"text-align:left;background:#fff;color:#000;border:1px solid #333;",".zc-form-row-label input":"color:#000;padding:2px;margin:0 5px 0 0;background-color:#999;",".zc-form-row-element input":"color:#000;padding:2px;margin:0;background-color:#fff",".zc-form-row-last input":"padding:4px 10px !important;margin:0 20px 0 0 !important;background-color:#eee !important;border:2px outset #ccc !important",".zc-form-s0":"font-size:27px !important;letter-spacing:-1px;line-height:125%",".zc-form-s1":"font-size:17px !important;line-height:125%",".zc-form-s1 a":"color:#fff;padding:3px 10px;position:relative;top:4px;border:1px solid #333;border-bottom:0px solid #333",".zc-tab-active":"background-color:#fff;color:#333 !important",".zc-tab-inactive":"background-color:#999;color:#ddd !important",".zc-bugreport label":"display:inline-block;position:relative;top:-2px",".zc-viewimage div":"position:absolute;text-align:center;padding:5px;background:#999;color:#fff",".zc-license-ie67":"padding:0;position:absolute;font-size:12px;font-weight:bold;font-family:"+zingchart.FONTFAMILY+";color:#369;text-align:left",".zc-license":"padding:0;position:absolute;","#zc-fullscreen":"display:block;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;background:#fff;",".zc-menu":"position:absolute;display:none;background-repeat:no-repeat !important;background-position:50% 0% !important;",".zc-menu-sep":"font-size:1px;padding:0;line-height:1px;border-bottom:1px solid #000",".zc-menu-item":"cursor:pointer;white-space:nowrap",".zc-blocker":"background:#eee",".zc-blocker div.zc-blocker-msg":"position:absolute;border:2px solid #ccc;padding:10px 30px;background-color:#333;color:#fff",".zc-modal":"background-color:#fff;color:#000;border:2px solid #999",".zc-guide-label-table":"border-collapse:collapse",".zc-guide-label-table td":"padding:4px 10px 2px 2px",".zc-data-table":"border-collapse:collapse",".zc-data-table caption":"font-family:"+zingchart.FONTFAMILY+";text-align:left;font-size:17px;font-weight:600;padding:6px 14px 6px 4px;background-color:#ccc;border-bottom:2px solid #666",".zc-data-table th":"font-family:"+zingchart.FONTFAMILY+";text-align:left;font-size:13px;font-weight:600;padding:2px 14px 2px 4px;background-color:#ddd;border-bottom:1px solid #666",".zc-data-table td":"font-family:"+zingchart.FONTFAMILY+";text-align:left;font-size:11px;padding:1px 14px 1px 4px;background-color:#ffffff;border-bottom:1px solid #eee;white-space:nowrap",".zc-rel":"top:0;left:0;position:relative",".zc-abs":"top:0;left:0;position:absolute"};ZC.ie678||(f[".zc-data-table th:not(:last-child)"]="border-right:1px dotted #666",f[".zc-data-table td:not(:last-child)"]="border-right:1px solid #eee");var _=document.getElementsByTagName("head")[0],g=document.createElement("style");if(g.type="text/css",g.setAttribute("data-author","zingchart"),_.appendChild(g),!zingchart.css)for(o=0,r=document.styleSheets.length;o<r;o++)document.styleSheets[o].ownerNode&&"zingchart"===document.styleSheets[o].ownerNode.getAttribute("data-author")&&(zingchart.css=document.styleSheets[o]);zingchart.css||(zingchart.css=document.styleSheets[document.styleSheets.length-1]);for(var v in f)null!==ZC._n_(zingchart.USERCSS[v])?zingchart.AA9(v,zingchart.USERCSS[v]):zingchart.AA9(v,f[v])}"vml"!==i||zingchart.A95||(document.namespaces.add("zcv","urn:schemas-microsoft-com:vml"),document.createStyleSheet().cssText=".zcvml { behavior:url(#default#VML); }",zingchart.A95=!0);var b="";zingchart.THEME&&(b=zingchart.THEME),e.data&&null!==ZC._n_(a=e.data.theme)&&(b=a),null!==ZC._n_(a=e.theme)&&(b=a);var m={data:!1,defaults:!1,css:!1,csv:!1};if(null!==ZC._n_(a=e.cache))for(var B in m)null!==ZC._n_(l=a[B])&&(m[B]=ZC._b_(l));var E=!1;null!==ZC._n_(a=e.fullscreen)&&(E=ZC._b_(a));var K=!0;null!==ZC._n_(a=e["auto-resize"])&&(K=ZC._b_(a));var F=ZC.A4("#"+p);s=(e.width||"100%")+"",A=(e.height||""+zingchart.DEFAULT.height)+"","auto"===s&&(s="100%"),"auto"===A&&(A="100%");var D=zingchart.wh(F,s,A);C=D[0],c=D[1],E&&(C=ZC.A4(window).width(),c=ZC.A4(window).height(),document.body.style.overflow="hidden"),C<10&&(C=zingchart.DEFAULT.width),c<10&&(c=zingchart.DEFAULT.height),C=0===C?zingchart.DEFAULT.width:C,c=0===c?zingchart.DEFAULT.height:c;var X=e.dataurl||"",I=e.defaultsurl||"",x=null,y="",w=null;null!==ZC._n_(a=e.data)&&("string"==typeof a?y=a:w=zingchart.DEV.COPYDATA?JSON.parse(JSON.stringify(a)):a),null!==ZC._n_(a=e.defaults)&&("string"==typeof a&&(a=JSON.parse(a)),x=a),null!==ZC._n_(a=e.imggen)&&(d.A10=ZC._b_(a)),d.A10&&(d.FY=null),d.JJ=s+"/"+A,d.AC=i,d.A=d,d.iX=0,d.iY=0,d.I=C,d.F=c,d.FV=s,d.MN=A,d.QB=X,d.EW=y,d.M6=w,d.QN=I,d.MM=x,d.UA=!1,null!==ZC._n_(e.fullscreenmode)&&ZC._b_(e.fullscreenmode)&&(d.QV=!0),d.LO=E,d.RX=m,d.KM=u,d.LH=b,d.H=d,d.E.hideprogresslogo=!1,null!==ZC._n_(a=e.hideprogresslogo)&&(d.E.hideprogresslogo=ZC._b_(a)),null!==ZC._n_(a=e.customprogresslogo)&&(d.E.customprogresslogo=a),null!==ZC._n_(a=e.customprogresstext)&&(d.E.customprogresstext=a),null!==ZC._n_(a=e.exportdataurl)&&(d.E.exportdataurl=a),null!==ZC._n_(a=e.exportimageurl)&&(d.E.exportimageurl=a);var Y={};null!==ZC._n_(a=e.bgcolor)&&(Y["background-color"]=a),null!==ZC._n_(a=e["background-color"])&&(Y["background-color"]=a),null!==ZC._n_(a=e["border-color"])&&(Y["border-color"]=a),null!==ZC._n_(a=e["border-width"])&&(Y["border-width"]=a),null!==ZC._n_(a=e.color)&&(Y.color=a),d.E.progress=Y,null!==ZC._n_(a=e["auto-load-modules"])&&(d.A6E=ZC._b_(a)),null!==ZC._n_(a=e.events)&&(d.A0V=a),null!==ZC._n_(a=e.modules)&&(d.A1I=a),null!==ZC._n_(a=e.format)&&(d.CI=a),null!==ZC._n_(a=e.csvdata)&&(d.NT=a),null!==ZC._n_(a=e.locale)&&null!==ZC._n_(zingchart.i18n[a])&&(d.A0W=a,ZC.HI=zingchart.i18n[a]),null!==ZC._n_(a=e["cache-control"])&&(d.MX=a);for(var M in zingchart.params)if(!zingchart.XR[M]){delete zingchart.params[M],delete ZC.TS[M];for(var H in zingchart.pool.data)0===H.indexOf(M+"-")&&(delete zingchart.pool.data[H],zingchart.pool.size--)}if(d.render(),F.css("overflow","hidden"),d.LO&&F.css("position","absolute").css("top",0).css("left",0),(-1!==d.FV.indexOf("%")||-1!==d.MN.indexOf("%")||d.LO||d.QV)&&K){var L=d.QV||d.LO?ZC.A4(window):F,P=L.width(),N=L.height(),O=0;d.A00=!1,d.YQ=window.setInterval(function(){var e;if(ZC.AK(p)&&!d.A27){var i=ZC.A4("#"+p+"-top"),t=!1;if(-1!==(""+d.FV).indexOf("%")&&i.length&&L.length&&i.width()!==L.width()&&(t=!0),0!==O||L.width()===P&&L.height()===N&&!t){if(L.width()+L.height()>0&&(L.width()!==P||L.height()!==N)&&(e=d.LO||d.QV?zingchart.wh(L,""+L.width(),""+L.height()):zingchart.wh(L,d.FV,d.MN))[0]>10&&e[1]>10){for(d.I=e[0],d.F=e[1],P=L.width(),N=L.height(),o=0,r=d.AH.length;o<r;o++)d.AH[o].M8[0]=0;n()}}else if(P=L.width(),N=L.height(),P>10&&N>10){for(-1!==(""+d.FV).indexOf("%")?d.I=P*ZC.IG(d.FV):d.I=P,-1!==(""+d.MN).indexOf("%")?d.F=N*ZC.IG(d.MN):d.F=N,o=0,r=d.AH.length;o<r;o++)d.AH[o].M8[0]=0;n()}O++}else window.clearInterval(d.YQ)},zingchart.DEV.RESIZESPEED)}return d}},window.zingchart=zingchart,ZC.A4.browser.msie&&parseFloat(ZC.A4.browser.version)<9){var _window_onunload_=window.onunload;window.onunload=function(){for(;zingchart.HU.length;)zingchart.exec(zingchart.HU[0].K,"destroy");ZC.A4(document).unbind(ZC.Q.C0("mouseover"),zingchart.MG).unbind(ZC.Q.C0("mouseout"),zingchart.MG).unbind(ZC.Q.C0("mousemove"),zingchart.MG).unbind(ZC.Q.C0("mousedown"),zingchart.MG).unbind(ZC.Q.C0("mouseup"),zingchart.MG).unbind("click",zingchart.SA).unbind("contextmenu",zingchart.YU),zingchart.HU=[],_window_onunload_&&_window_onunload_()}}zingchart.i18n.en_us={rtl:!1,"decimals-separator":".","thousands-separator":"","menu-enablepagescroll":"Enable Page Scroll","menu-disablepagescroll":"Disable Page Scroll","menu-reload":"Reload","menu-print":"Print Chart","menu-viewaspng":"View As PNG","menu-viewasjpg":"View As JPG","menu-downloadpdf":"Download PDF","menu-downloadsvg":"Download SVG","menu-downloadcsv":"Download CSV","menu-downloadxls":"Download XLS","menu-viewdatatable":"View Data Table","menu-hidedatatable":"Hide Data Table","menu-exportdata":"Export Data","menu-zoomin":"Zoom In","menu-zoomout":"Zoom Out","menu-viewall":"View All","menu-viewsource":"View Source","menu-bugreport":"Submit Bug","menu-switchto2d":"Switch To 2D","menu-switchto3d":"Switch To 3D","menu-showguide":"Show Guide","menu-hideguide":"Hide Guide","menu-switchtolin":"Show Linear Scale","menu-switchtolog":"Show Log Scale","menu-fullscreen":"Full Screen","menu-exitfullscreen":"Exit Full Screen","menu-goback":"Go Back","menu-goforward":"Go Forward","date-formats":{msecond:"%d %M %Y<br>%g:%i:%s %A<br>%q ms",second:"%d %M %Y<br>%g:%i:%s %A",minute:"%d %M %Y<br>%g:%i %A",hour:"%d %M %Y<br>%g %A",day:"%d %M %Y",month:"%M %Y",year:"%Y"},"days-short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"days-long":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"months-short":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"months-long":["January","February","March","April","May","June","July","August","September","October","November","December"],"sync-wait":"Wait...","export-wait":"Exporting...","progress-wait-long":"Wait. Loading...","progress-wait-short":"Wait...","progress-wait-mini":"...","error-header":"An Error Has Occured","error-message":"Error Message:","error-close":"Close","bugreport-header":"Submit Bug Report","bugreport-senddata":"Send JSON Data","bugreport-sendcapture":"Send Graph Capture","bugreport-yourcomment":"Your Comment:","bugreport-jsondata":"JSON Data:","bugreport-youremail":"Your Email Address","bugreport-infoemail":"if you want to receive via email our reply to your problem","bugreport-emailmandatory":"Email address is mandatory...","bugreport-submit":"Submit","bugreport-cancel":"Cancel","bugreport-confirm":"Your bug report was sent.\n\nThank you!","about-close":"Close","viewsource-jsonsource":"Parsed JSON","viewsource-originalsource":"Original JSON","viewsource-close":"Close","viewsource-apply":"Apply","viewimage-close":"Close","legend-pagination":"Page %page% of %pages%"},ZC.HI=zingchart.i18n.en_us,zingchart.getLoader=function(e){for(var i=0;i<zingchart.HU.length;i++)if(zingchart.HU[i].K===e)return zingchart.HU[i];return null},zingchart.getGraph=function(e,i){return e.OR(i)},zingchart.clearLayer=function(e){e.A8&&e.A8.onmouseout();for(var i=0;i<e.AH.length;i++)e.AH[i].LN()},zingchart.getGraphInfo=function(e,i,t){return e.A4J(i,t)},zingchart.initThemes=function(e){e&&e.A9J(!0)},zingchart.setModule=function(e){ZC.WA.push(e)},zingchart.getModules=function(e){return e.A1I.split(",")},zingchart.defineModule=function(e,i,t){switch(zingchart.setModule(e),i){case"chart":zingchart.bind(null,"dataparse",function(i,n){for(var a=n.graphset.length,l=0;l<a;l++)if(n.graphset[l].type===e){var o=n.graphset[l];o.id?o.id=o.id:o.id=e.replace(/-/g,"")+l,n.graphset[l]=t(o)}return n});break;case"plugin":zingchart.bind(null,"dataparse",function(i,n){var a=zingchart.getLoader(i.id);if(-1!==zingchart.getModules(a).indexOf(e))for(var l=n.graphset.length,o=null,r=0;r<l;r++)(o=n.graphset[r]).hasOwnProperty(e)&&(n.graphset[r]=t(o,i.id));return n})}},zingchart.getPalette=function(e,i,t){return t=t||"bar",e.B7.A9M(i,t)},zingchart.getObject=function(e,i,t){var n,a;switch(t=t||"label"){case"shape":for(n=0,a=e.FE.length;n<a;n++)if(e.FE[n].H2===i||n===i)return e.FE[n].BE;break;case"label":for(n=0,a=e.BX.length;n<a;n++)if(e.BX[n].H2===i||n===i)return e.BX[n]}return null},zingchart.getInstance=function(e,i){switch(i){case"style":return new ZC.D0(e);case"shape":return new ZC.DW(e);case"box":return new ZC.HS(e);case"textbox":return new ZC.DS(e)}return null},zingchart.normalize=function(e){ZC._todash_(e)},zingchart.copy=function(e,i){ZC._cp_(e,i)},zingchart.formatDate=function(e,i,t,n){return ZC.AP.Y2(e,i,t,n)},zingchart.formatNumber=function(e,i){return ZC.AP.GF(e,i)},zingchart.fireEvent=function(e,i,t){ZC.AP.BZ(e,i,t)},zingchart.A8X=[],zingchart.extendAPI=function(e,i){zingchart.A8X.push({call:e,api:i})},zingchart.exec=function(e,i,t){return zingchart.getLoader(e)?zingchart.ACR(e,i,t):zingchart.exec_flash?zingchart.exec_flash(e,i,t):void 0},zingchart.ACR=function(e,i,t){var n,a,l;t=t||{},document.getElementById("zc-fullscreen")&&!t.skipfs&&(e="zc-fullscreen"),"string"==typeof t&&(t=JSON.parse(t));var o,r,s,A,C=zingchart.getLoader(e);if(null!==ZC._n_(t.preservezoom)&&(C.E.preservezoom=ZC._b_(t.preservezoom)),C)switch(i){case"goback":C.I7&&C.NY>0&&(ZC.AP.BZ("history_back",C,C.FH()),C.NY--,zingchart.exec(C.K,"setdata",{data:C.QQ[C.NY]}));break;case"goforward":C.I7&&C.NY<C.QQ.length-1&&(ZC.AP.BZ("history_forward",C,C.FH()),C.NY++,zingchart.exec(C.K,"setdata",{data:C.QQ[C.NY]}));break;case"setmode":if("undefined"==typeof C.E["mode-flags"]&&(C.E["mode-flags"]=C.KM.join(",")),""===t.mode&&"undefined"!=typeof C.E["mode-flags"])C.KM=C.E["mode-flags"].split(",");else{C.KM=[];var c=(""+t.mode).split(",");-1!==ZC.AV(c,"static")&&C.KM.push("skip_context_menu","skip_objects_tracking","skip_segment_tracking","skip_marker_tracking","skip_interactivity")}break;case"showmenu":ZC.DX[0]=ZC._n_(t.x)?t.x:ZC.DX[0],ZC.DX[1]=ZC._n_(t.y)?t.y:ZC.DX[1],t["from-api"]=!0,zingchart.YU(null,C.K,t);break;case"hidemenu":C.hideCM();break;case"destroy":case"zcdestroy":for(ZC.AP.BZ("beforedestroy",C,{id:e,loader:C}),delete zingchart.XR[e],a=0,l=C.AH.length;a<l;a++)C.AH[a].M8[0]=0,C.AH[a].BA&&(C.AH[a].BA.JA=!1,C.AH[a].unbind(!1,!0)),C.H9&&(C.H9.JA=!1);ZC.move=!1,C.A0G(),C.AA1(t,!0),zingchart.DEV.GC&&C.gc(),C.YQ&&window.clearInterval(C.YQ),C.YO&&window.clearInterval(C.YO),zingchart.IV[e]&&delete zingchart.IV[e],ZC.Q.EU([e+"-wrapper",e+"-top",e+"-text-ruler",e+"-dummy",e+"-progress"]),C.A13||delete zingchart.params[e],delete ZC.TS[e],delete ZC.cache.data["svg-rect"];for(var u in zingchart.pool.data)0===u.indexOf(e+"-")&&(delete zingchart.pool.data[u],zingchart.pool.size--);var p=ZC.AV(zingchart.HU,C);-1!==p&&zingchart.HU.splice(p,1),zingchart.HU.length||(zingchart.GUIDE_EV=null,delete zingchart.LD["zc.logo"]),C=null,ZC.AP.BZ("destroy",null,{id:e});break;case"getrender":return C.AC;case"clear":C.AA1(t);break;case"reload":C.A8R(t);break;case"load":C.ACU(t);break;case"enable":C.A3T();break;case"disable":C.A83(t.text);break;case"closemodal":ZC.Q.EU([C.K+"-modal",C.K+"-blocker"]);break;case"openmodal":if(!ZC.AK(C.K+"-modal"))return ZC.Q.HX({cls:"zc-abs zc-style zc-blocker",id:C.K+"-blocker",p:ZC.AK(C.K+"-top"),wh:C.I+"/"+C.F,opacity:.75}),ZC.Q.HX({cls:"zc-abs zc-style zc-modal",id:C.K+"-modal",p:ZC.AK(C.K+"-top"),tl:(C.F-t.height)/2+"/"+(C.I-t.width)/2,wh:t.width+"/"+t.height,opacity:1}),ZC.AK(C.K+"-modal");break;case"mapdata":C.ABW(t);break;case"print":C.A97();break;case"fullscreen":C.A5M();break;case"exitfullscreen":zingchart.exec("zc-fullscreen","destroy"),ZC.Q.EU("zc-fullscreen");break;case"resize":C.A27=!0;var Z=C.I,h=C.F,d=C.JJ.split("/"),f=!1,_=d[0],g=d[1];null!==ZC._n_(n=t.width)&&(_=n),null!==ZC._n_(n=t.height)&&(g=n),null!==ZC._n_(n=t.scale)&&(f=ZC._b_(n)),C.A13&&(zingchart.params[C.K].width=_,zingchart.params[C.K].height=g);var v=zingchart.wh(ZC.A4("#"+C.K),_,g);(t.layout||(Z!==v[0]||h!==v[1])&&v[0]>10&&v[1]>10)&&(C.I=v[0],C.F=v[1],null!==ZC._n_(n=t.layout)&&(C.o.layout=n),""===C.M9&&(C.E["from-api"]=!0,C.E.preservezoom=!0,C.resize(f),C.FV=_,C.MN=g,C.A27=!1));break;case"plothide":case"hideplot":(o=C.C9(t.graphid))&&o.A3P(t,"hide");break;case"showguide":case"hideguide":ZC.DX[0]=ZC._n_(t.x)?t.x:ZC.DX[0],ZC.DX[1]=ZC._n_(t.y)?t.y:ZC.DX[1],(o=C.C9(t.graphid))&&C.YY(o.K,"showguide"===i);break;case"showtooltip":case"hidetooltip":case"clicknode":if(o=C.C9(t.graphid)){var b=t.ev||{};(r=o.HV(t.plotindex,t.plotid))&&r.R.length&&!t.xy?(s=r.L,A=ZC._i_(t.nodeindex||"0"),b.targetid=o.K+"-plotset-plot-"+s+"-node-"+A,b.update=!0):b.targetid=o.K+"-xy-"+ZC._i_(t.y||"0")+"-"+ZC._i_(t.x||"0"),"clicknode"===i?(b.which=0,o.T5(b)):o.A.A8&&("showtooltip"===i?o.A.A8.onmouseover(b,t.data):o.A.A8.hide())}break;case"locktooltip":ZC.TTLOCK=!0;break;case"unlocktooltip":ZC.TTLOCK=!1;break;case"showhoverstate":if(o=C.C9(t.graphid)){r=o.HV(t.plotindex,t.plotid),s=ZC._i_(r?r.L:0),A=ZC._i_(t.nodeindex||"0");var m=o.AY.A6[s].FP(A);o.LN(),m.A3H()}break;case"plotshow":case"showplot":(o=C.C9(t.graphid))&&o.A3P(t,"show");break;case"togglesource":ZC.AK(C.K+"-viewsource")?ZC.Q.EU(C.K+"-viewsource"):C.A5L();break;case"togglebugreport":ZC.AK(C.K+"-bugreport")?ZC.Q.EU(C.K+"-bugreport"):C.A6I();break;case"toggleabout":ZC.AK(C.K+"-about")?ZC.Q.EU([C.K+"-about",C.K+"-about-mask"]):C.A9D();break;case"toggleplot":(o=C.C9(t.graphid))&&o.Q4(t);break;case"getcharttype":return(o=C.C9(t.graphid))?o.AF:null;case"showversion":case"getversion":return ZC.VERSION;case"get3dview":return(o=C.C9(t.graphid))?o.F0:null;case"set3dview":(o=C.C9(t.graphid))&&(null===ZC._n_(C.o.graphset[o.L]["3d-aspect"])&&(C.o.graphset[o.L]["3d-aspect"]={}),ZC._cp_(t,C.o.graphset[o.L]["3d-aspect"]),null===ZC._n_(o.o["3d-aspect"])&&(o.o["3d-aspect"]={}),ZC._cp_(t,o.o["3d-aspect"]),zingchart.SKIP.PARSE3D=!0,o.autoFit(),o.K3(!0,!0),zingchart.SKIP.PARSE3D=!1);break;case"getpage":return C.L4;case"setpage":var B=0;null!==ZC._n_(n=t.page)&&(B=ZC._i_(n)),C.L4=B,ZC.ZH(function(){C.clear(),C.parse(),C.paint()},!0);break;case"unbinddocument":ZC.A4(document).unbind(ZC.Q.C0("mousemove"),zingchart.MG).unbind(ZC.Q.C0("mousedown"),zingchart.MG).unbind(ZC.Q.C0("mouseup"),zingchart.MG).unbind("click",zingchart.SA).unbind("contextmenu",zingchart.YU),C.D5&&C.D5.unbind()}var E;for(zingchart.ABE&&null!==(E=zingchart.ABE(e,i,t))&&(n=E),zingchart.AB1&&null!==(E=zingchart.AB1(e,i,t))&&(n=E),zingchart.AB5&&null!==(E=zingchart.AB5(e,i,t))&&(n=E),zingchart.ABF&&null!==(E=zingchart.ABF(e,i,t))&&(n=E),zingchart.AAJ&&null!==(E=zingchart.AAJ(e,i,t))&&(n=E),zingchart.ABG&&null!==(E=zingchart.ABG(e,i,t))&&(n=E),a=0,l=zingchart.A8X.length;a<l;a++)i===zingchart.A8X[a].call&&null!==(E=zingchart.A8X[a].api.call(zingchart,e,t))&&(n=E);return n},zingchart.extendAPI("addmenuitem",function(e,i){var t=zingchart.getLoader(e);t.DF["context-menu"]=t.DF["context-menu"]||{},t.DF["context-menu"]["custom-items"]=t.DF["context-menu"]["custom-items"]||[];for(var n=i.id||"",a=t.DF["context-menu"]["custom-items"],l=!1,o=0;o<a.length;o++)if(a[o].id===n){l=!0;break}l||t.DF["context-menu"]["custom-items"].push(i)}),zingchart.ABE=function(e,i,t){var n;document.getElementById("zc-fullscreen")&&(e="zc-fullscreen"),"string"==typeof(t=t||{})&&(t=JSON.parse(t));var a,l,o,r,s,A,C,c,u,p,Z,h,d,f,_,g,v,b,m,B,E,K,F,D=zingchart.getLoader(e),X=!(null!==ZC._n_(t.update)&&!ZC._b_(t.update)),I=null!==ZC._n_(t.history)&&ZC._b_(t.history),x="undefined"!=typeof t.smart&&ZC._b_(t.smart);if(D){var y=["addplot","removeplot","modify","modifyplot","setnodevalue","addnode","removenode","setdata"];switch(-1===ZC.AV(y,i)&&((l=D.FH()).params=t,ZC.AP.BZ(i,D,l)),i){case"clearscroll":if(!(a=D.C9(t.graphid)))return null;a.I9&&a.I9.NI&&(a.I9.NI(),a.I9.unbind()),a.I6&&a.I6.NI&&(a.I6.NI(),a.I6.unbind());break;case"getbubblesize":return(a=D.C9(t.graphid))&&(o=a.HV(t.plotindex,t.plotid))?o.getSize(t.value||1):null;case"getscaleinfo":return(a=D.C9(t.graphid))&&(r=a.BN(t.name||""))?null!==ZC._n_(t.value)?r.B2?r.B2(t.value):null:null!==ZC._n_(t.coord)&&r.NA?r.NA(t.coord):null:null;case"getobjectinfo":if(!(a=D.C9(t.graphid)))return null;var w={id:"K",x:"iX",y:"iY",width:"I",height:"F",color:"C1",lineColor:"B9",lineWidth:"B0",borderColor:"BV",borderWidth:"AT",backgroundColor1:"A0",backgroundColor2:"AE"};switch(t.object){case"graph":l={};for(p in w)l[p]=a[w[p]];return ZC._cp_({type:a.AF},l),l;case"plotarea":l={};for(p in w)l[p]=a.P[w[p]];return l;case"scale":if(!(r=a.BN(t.name||"")))return null;l={};for(p in w)l[p]=r[w[p]];return ZC._cp_({type:r.AF,text:r.M?r.M.AR||"":"",datetime:null!==r.FD&&"date"===r.FD.o.type,step:r.E4,step_:r.SC,stepSize:r.A9,values:r.X,placement:r.B8,aperture:r.EG,zooming:r.GM,offsetStart:r.A5,offsetEnd:r.BW},l),r.M&&""!==r.M.AR&&(l.label={x:r.M.iX,y:r.M.iY,width:r.M.I,height:r.M.F,angle:r.M.AA}),"v"===r.AF?ZC._cp_({progression:r.CA,logBase:r.EH,minValue:r.B4,maxValue:r.BL,minValue_:r.FU,maxValue_:r.GY},l):"scale-r"===t.name?ZC._cp_({refAngle:r.DG},l):ZC._cp_({minValue:r.X[r.V],maxValue:r.X[r.A1],minValue_:r.X[r.DD],maxValue_:r.X[r.E1],minIndex:r.V,maxIndex:r.A1,minIndex_:r.DD,maxIndex_:r.E1},l),l;case"plot":if(!(o=a.HV(t.plotindex,t.plotid)))return null;l={};for(p in w)l[p]=o[w[p]];var Y=o.AM&&a.E["plot"+o.L+".visible"];return ZC._cp_({visible:Y,id:o.H2,index:o.L,type:o.AF,text:o.AR,values:o.X,scales:o.BM,stacked:o.CB,stackType:o.KQ,stack:o.DY,xdata:o.KB},l),o.TC&&ZC._cp_({marker:{visible:o.TC.AM,size:o.TC.AI,type:o.TC.DQ,backgroundColor1:o.TC.A0,backgroundColor2:o.TC.AE,borderColor:o.TC.BV,borderWidth:o.TC.AT}},l),l;case"node":if(o=a.HV(t.plotindex,t.plotid)){if(m=null!==ZC._n_(t.nodeindex)?ZC._i_(t.nodeindex):0,!o.R[m])return null;s=o.FP(m),(l={}).bounds=s.H.E[s.K+"-bounds"];for(p in w)-1!==ZC.AV(["x","y","width","height"],p)?l[p]=s[w[p]]:l[p]=s.N[w[p]];if(ZC._cp_({plotindex:o.L,index:s.L,size:s.AI,value:s.AD,keyvalue:s.BU,onviewport:s.JB},l),-1!==o.AF.indexOf("pie")&&ZC._cp_({angleStart:s.B3,angleEnd:s.BI,slice:s.A.PN,npv:100*s.AD/s.A.A.KH[s.L]},l),o.KB){var M={};for(p in o.KB)o.KB[p]instanceof Array?M[p]=o.KB[p][m]:M[p]=o.KB[p];l.xdata=M}return l}return null}break;case"getxyinfo":var H=[],L=t.x,P=t.y,N=ZC._tx_(D.K);L/=N[0],P/=N[1];for(var O=0;O<D.AH.length;O++){a=D.AH[O];for(var k=0;k<a.AY.A6.length;k++){o=a.AY.A6[k];var Q=a.BN(o.BT("k")[0]),R=a.BN(o.BT("v")[0]);if(Q&&R){if(Q.O9&&Q.O9){var z=Q.O9(Q.CQ?P:L),T=Q.O9(Q.CQ?P:L,null,!0);H.push({infotype:"key-scale",xydistance:ZC._a_(L-Q.I4(z)),graphid:a.K,plotidx:o.L,scalename:Q.BC,scaleidx:z,scalepos:T,scaletext:Q.BX[z]||"",scalevalue:Q.X[z],scalenumvalue:Q.NA(Q.CQ?P:L)})}if(R.NA){var G=R.NA(R.CQ?L:P,!0);H.push({infotype:"value-scale",xydistance:ZC._a_(R.CQ?L:P-R.B2(G)),graphid:a.K,plotidx:o.L,scalename:R.BC,scalevalue:G})}for(var S,J=ZC.MAX,V=null,U=0,W=o.R.length;U<W;U++)if(null!==(s=o.FP(U)))switch(a.AJ.layout){case"xy":case"yx":var j=!1;"vbar"===s.A.AF?(S=s.getNodeData("h")||s.F,ZC.DT(L,s.iX-s.I/2,s.iX+s.I/2)&&ZC.DT(P,s.iY,s.iY+S)&&(j=!0,J=1)):"hbar"===s.A.AF&&(S=s.getNodeData("w")||s.I,ZC.DT(L,s.iX,s.iX+S)&&ZC.DT(P,s.iY-s.F/2,s.iY+s.F/2)&&(j=!0,J=1)),((n=Math.sqrt((s.iX-L)*(s.iX-L)+(s.iY-P)*(s.iY-P)))<J||j)&&(V={infotype:"node",xydistance:J,graphid:a.K,plotidx:o.L,plotid:o.H2,nodeidx:s.L,nodevalue:s.AD,nodekeyvalue:null===s.BU?Q.X[s.L]:s.BU},j||(J=n));break;case"":var q=s.ADH();(n=Math.sqrt((q[0]-L)*(q[0]-L)+(q[1]-P)*(q[1]-P)))<J&&(V={infotype:"node",xydistance:J,graphid:a.K,plotidx:o.L,plotid:o.H2,nodeidx:s.L,nodevalue:s.AD,nodekeyvalue:null===s.BU?Q.X[s.L]:s.BU},J=n)}V&&H.push(V)}}}return H;case"update":t.objects?(a=D.C9(t.graphid))&&(a.OU(),a.QK()):null!==ZC._n_(t.graphid)&&(a=D.C9(t.graphid))?D.Q1(function(){a.K3(x,x)}):D.K3();break;case"setcharttype":(a=D.C9(t.graphid))&&(null!==ZC._n_(t["preserve-state"])&&ZC._b_(t["preserve-state"])?D.E["graph-state-"+a.L]=JSON.stringify(a.E):D.E["graph-state-"+a.L]=null,D.o.graphset[a.L].type=a.o.type=a.AF=t.type,X&&D.K3());break;case"addgraph":D.o.graphset.push(t.data||{}),X&&D.K3();break;case"addplot":if(zingchart.SKIP.CSV=!0,h={},d=t.plotdata?"plotdata":"data",null!==ZC._n_(t[d])&&("object"==typeof t[d]?ZC._cp_(t[d],h):h=JSON.parse(t[d])),ZC._todash_(h),a=D.C9(t.graphid)){var $=[];if(null===ZC._n_(a.o.series)&&(a.o.series=[]),Z=(null!==ZC._n_(t.plotindex)||null!==ZC._n_(t.plotid))&&(o=a.HV(t.plotindex,t.plotid))?o.L:a.o.series.length,null!==ZC._n_(a.IT)&&a.IT.splice(Z,0,!1),null!==ZC._n_(a.CH)){F={};for(E in a.CH)(K=ZC._i_(E.replace("p","")))<Z?F[E]=a.CH[E]:F["p"+(K+1)]=a.CH[E];F["p"+Z]={},a.CH=F}for(A=0,C=a.o.series.length;A<=C;A++)A===Z&&$.push(h),a.o.series[A]&&$.push(a.o.series[A]);ZC.AP.BZ("plot_add",D,{id:D.K,graphid:a.K,plotindex:Z,data:h}),D.o.graphset[a.L].series=a.o.series=$,D.E.json=ZC.GT(JSON.stringify(D.o)),a.LU("on-change"),X&&(a.E["from-api"]=!0,D.Q1(function(){a.K3(x,x)}))}break;case"removeplot":if(zingchart.SKIP.CSV=!0,(a=D.C9(t.graphid))&&(o=a.HV(t.plotindex,t.plotid))){if(null!==ZC._n_(a.IT)&&a.IT.splice(o.L,1),null!==ZC._n_(a.CH)){F={};for(E in a.CH)(K=ZC._i_(E.replace("p","")))<o.L?F[E]=a.CH[E]:F["p"+(K-1)]=a.CH[E];a.CH=F}a.o.series.splice(o.L,1),D.o.graphset[a.L].series=a.o.series,D.E.json=ZC.GT(JSON.stringify(D.o)),ZC.AP.BZ("plot_remove",D,{id:D.K,graphid:a.K,plotindex:o.L}),a.LU("on-change"),a.K3(x,x)}break;case"modify":if(zingchart.SKIP.CSV=!0,h={},null!==ZC._n_(t.data)&&("object"==typeof t.data?ZC._cp_(t.data,h):h=JSON.parse(t.data)),ZC._todash_(h),a=D.C9(t.graphid)){if(a.BA&&(a.BA.HY=!1,a.E["force-preview-parse"]=!0),null!==ZC._n_(t.object))switch(t.object){case"title":ZC._cp_(h,a.o.title);break;case"plotset":case"series":ZC._cp_(h,a.o.series);break;case"plotarea":ZC._cp_(h,a.o.plotarea);break;case"legend":ZC._cp_(h,a.o.legend);break;case"plot":ZC._cp_(h,a.o.plot);break;case"map":ZC._cp_(h,a.o.shapes[0])}else ZC._cp_(h,a.o);switch(t.object){case"title":D.o.graphset[a.L].title=a.o.title;break;case"plotset":case"series":D.o.graphset[a.L].series=a.o.series;break;case"plotarea":D.o.graphset[a.L].plotarea=a.o.plotarea;break;case"legend":D.o.graphset[a.L].legend=a.o.legend;break;case"plot":D.o.graphset[a.L].plot=a.o.plot;break;case"map":D.o.graphset[a.L].shapes[0]=a.o.shapes[0],D.XK(D.o),a.o.shapes=D.o.graphset[a.L].shapes;break;default:D.o.graphset[a.L]=a.o}D.E.json=ZC.GT(JSON.stringify(D.o)),ZC.AP.BZ("modify",D,{id:D.K,graphid:a.K,data:h,object:t.object}),a.LU("on-change"),X&&(a.E["from-api"]=!0,D.Q1(function(){a.K3(x,x)}))}break;case"modifyplot":zingchart.SKIP.CSV=!0,h={},d=t.plotdata?"plotdata":"data",null!==ZC._n_(t[d])&&("object"==typeof t[d]?ZC._cp_(t[d],h):h=JSON.parse(t[d])),ZC._todash_(h),(a=D.C9(t.graphid))&&(o=a.HV(t.plotindex,t.plotid))&&(null===ZC._n_(D.o.graphset[a.L].series)&&(D.o.graphset[a.L].series=[]),ZC._cp_(h,a.o.series[o.L]),D.o.graphset[a.L].series[o.L]=a.o.series[o.L],D.E.json=ZC.GT(JSON.stringify(D.o)),ZC.AP.BZ("plot_modify",D,{id:D.K,graphid:a.K,plotindex:o.L,data:h}),a.LU("on-change"),X&&(a.E["from-api"]=!0,D.Q1(function(){a.K3(x,x)})));break;case"setnodevalue":zingchart.SKIP.CSV=!0,(a=D.C9(t.graphid))&&(o=a.HV(t.plotindex,t.plotid))&&(m=0,null!==ZC._n_(t.nodeindex)&&(m=ZC._i_(t.nodeindex)),n=0,null!==ZC._n_(t.value)&&(n=t.value),ZC.AP.BZ("node_set",D,{id:D.K,graphid:a.K,plotindex:o.L,nodeindex:m,key:m,value:n,text:n}),D.o.graphset[a.L].series[o.L].values[m]=a.o.series[o.L].values[m]=n,D.E.json=ZC.GT(JSON.stringify(D.o)),a.LU("on-change"),X&&(a.E["from-api"]=!0,a.K3(x,x)));break;case"setscalevalues":if(zingchart.SKIP.CSV=!0,a=D.C9(t.graphid)){for(f=t.scale||"scale-x",_=0,g=a.BM.length;_<g;_++)f===a.BM[_].BC&&null!==ZC._n_(a.o[f])&&(a.o[f].values=t.values,D.o.graphset[a.L][f]=D.o.graphset[a.L][f]||{},D.o.graphset[a.L][f].values=t.values);D.E.json=ZC.GT(JSON.stringify(D.o)),a.LU("on-change"),X&&(a.E["from-api"]=!0,a.K3(x,x))}break;case"addscalevalue":if(zingchart.SKIP.CSV=!0,a=D.C9(t.graphid)){for(f=t.scale||"scale-x",_=0,g=a.BM.length;_<g;_++)if(f===a.BM[_].BC&&null!==ZC._n_(a.o[f])&&null!==ZC._n_(a.o[f].values)){for(m=null===ZC._n_(t.nodeindex)?a.o[f].values.length:ZC._i_(t.nodeindex),(b=a.o[f].values).push(null),A=b.length-1;A>m;A--)b[A]=b[A-1];b[m]=t.value||"",D.o.graphset[a.L][f].values=b}D.E.json=ZC.GT(JSON.stringify(D.o)),a.LU("on-change"),X&&(a.E["from-api"]=!0,a.K3(x,x))}break;case"removescalevalue":if(zingchart.SKIP.CSV=!0,a=D.C9(t.graphid)){for(f=t.scale||"scale-x",_=0,g=a.BM.length;_<g;_++)f===a.BM[_].BC&&null!==ZC._n_(a.o[f])&&null!==ZC._n_(a.o[f].values)&&(m=null===ZC._n_(t.nodeindex)?a.o[f].values.length-1:ZC._i_(t.nodeindex),(b=a.o[f].values).splice(m,1),D.o.graphset[a.L][f].values=b);D.E.json=ZC.GT(JSON.stringify(D.o)),a.LU("on-change"),X&&(a.E["from-api"]=!0,a.K3(x,x))}break;case"addnode":zingchart.SKIP.CSV=!0,a=D.C9(t.graphid);var ee=t.value instanceof Array;if(a&&(o=a.HV(t.plotindex,t.plotid))){v=a.o.series[o.L].values,m=null===ZC._n_(t.nodeindex)?v.length:t.nodeindex,v.push(null);var ie=v.length;for(m=ZC.BQ(0,ZC.CY(m,ie)),A=ie-1;A>m;A--)v[A]=v[A-1];if(v[m]=t.value,!ee)for(_=0,g=a.BM.length;_<g;_++)if(f=a.BM[_].BC,"k"===a.BM[_].AF&&null!==ZC._n_(t[f+"-value"])&&null!==ZC._n_(a.o[f])&&null!==ZC._n_(a.o[f].values)){for((b=a.o[f].values).push(null),A=b.length-1;A>m;A--)b[A]=b[A-1];b[m]=t[f+"-value"],D.o.graphset[a.L][f].values=b}ZC.AP.BZ("node_add",D,{id:D.K,graphid:a.K,plotindex:o.L,nodeindex:m,key:m,value:t.value,text:t.value}),D.o.graphset[a.L].series[o.L].values=a.o.series[o.L].values,D.E.json=ZC.GT(JSON.stringify(D.o)),a.LU("on-change"),X&&(a.E["from-api"]=!0,a.K3(x,x))}break;case"removenode":if(zingchart.SKIP.CSV=!0,(a=D.C9(t.graphid))&&(o=a.HV(t.plotindex,t.plotid))){v=a.o.series[o.L].values,m=null===ZC._n_(t.nodeindex)?o.R.length-1:ZC._i_(t.nodeindex);var te=!0;if(null!==ZC._n_(t.nodekeyvalue))for(te=!1,_=0,g=o.R.length;_<g;_++){if(null===o.R[_]&&_===t.nodekeyvalue){te=!0,m=_;break}if(o.R[_]&&null!==ZC._n_(o.R[_].BU)&&o.R[_].BU===t.nodekeyvalue){te=!0,m=_;break}}if(te&&ZC.DT(m,0,o.R.length-1)){for(v.splice(m,1),_=0,g=a.BM.length;_<g;_++)f=a.BM[_].BC,"k"===a.BM[_].AF&&null!==ZC._n_(t[f])&&ZC._b_(t[f])&&null!==ZC._n_(a.o[f])&&null!==ZC._n_(a.o[f].values)&&((b=a.o[f].values).splice(m,1),D.o.graphset[a.L][f].values=b);(te||o.R[m])&&(ZC.AP.BZ("node_remove",D,{id:D.K,graphid:a.K,plotindex:o.L,nodeindex:m,key:m,value:o.R[m]?o.R[m].AD:null,text:o.R[m]?o.R[m].AD:null}),D.o.graphset[a.L].series[o.L].values=a.o.series[o.L].values,D.E.json=ZC.GT(JSON.stringify(D.o)),a.LU("on-change"),X&&(a.E["from-api"]=!0,a.K3(x,x)))}}break;case"setdata":if(h={},null!==ZC._n_(t.data))if("object"==typeof t.data)zingchart.DEV.COPYDATA?h=JSON.parse(JSON.stringify(t.data)):ZC._cp_(t.data,h);else try{h=JSON.parse(t.data)}catch(de){return D.NP(de,"JSON parser"),!1}ZC._todash_(h),null===ZC._n_(t.preservezoom)&&(D.E.preservezoom=!1),a=null,null!==ZC._n_(t.graphid)&&(a=D.C9(t.graphid)),ZC.AP.BZ("setdata",D,{id:D.K,graphid:a?a.K:null,data:h});var ne,ae,le=["x","y","width","height"];if(a){for(ne=0;ne<le.length;ne++)delete D.E["graph-"+a.L+"-"+le[ne]];D.o.graphset[a.L]=a.o=h;var oe=!1;if(h.widgets)oe=!0;else if(h.shapes)for(A=0;A<h.shapes.length;A++)"zingchart.maps"===h.shapes[A].type&&(oe=!0);oe&&D.XK(D.o),D.E.json=ZC.GT(JSON.stringify(D.o)),X&&(a.E["from-api"]=!0,I&&D.NY++,D.Q1(function(){D.parse(a.K),D.AH[a.L].paint()}))}else{for(ne=0;ne<le.length;ne++)for(ae=0;ae<D.AH.length;ae++)delete D.E["graph-"+ae+"-"+le[ne]];D.o=h,D.E.json=ZC.GT(JSON.stringify(D.o)),D.XK(D.o),X&&(I&&D.NY++,D.K3())}break;case"getseriesdata":return(a=D.C9(t.graphid))?null!==ZC._n_(t.plotindex)||null!==ZC._n_(t.plotid)?(o=a.HV(t.plotindex,t.plotid,0))?a.o.series[o.L]:null:a.o.series:null;case"setseriesdata":case"appendseriesdata":if(zingchart.SKIP.CSV=!0,a=D.C9(t.graphid)){if(null!==ZC._n_(t.plotindex)||null!==ZC._n_(t.plotid)?(o=a.HV(t.plotindex,t.plotid,0),h="setseriesdata"===i?{}:a.o.series&&a.o.series[o.L]?a.o.series[o.L]:{}):h="setseriesdata"===i?[]:a.o.series||[],null!==ZC._n_(t.data)&&("object"==typeof t.data?ZC._cp_(t.data,h):ZC._cp_(JSON.parse(t.data),h)),ZC._todash_(h),null!==ZC._n_(t.plotindex)||null!==ZC._n_(t.plotid))o=a.HV(t.plotindex,t.plotid,0),D.o.graphset[a.L].series[o.L]=a.o.series[o.L]=h,h.hasOwnProperty("visible")&&(a.E["plot"+o.L+".visible"]=h.visible);else for(D.o.graphset[a.L].series=a.o.series=h,A=0;A<h.length;A++)h[A].hasOwnProperty("visible")&&(a.E["plot"+A+".visible"]=h[A].visible);D.E.json=ZC.GT(JSON.stringify(D.o)),a.LU("on-change"),X&&D.Q1(function(){a.K3(x,x)})}break;case"getseriesvalues":if(a=D.C9(t.graphid)){if(null!==ZC._n_(t.plotindex)||null!==ZC._n_(t.plotid))return(o=a.HV(t.plotindex,t.plotid,0))?a.o.series[o.L].values||[]:[];for(B=[],A=0,C=a.AY.A6.length;A<C;A++)B.push(a.o.series[A].values||[]);return B}return null;case"setseriesvalues":case"appendseriesvalues":zingchart.SKIP.CSV=!0,B=[],null!==ZC._n_(t.values)&&(B="object"==typeof t.values?t.values:JSON.parse(t.values));var re=!1;if(a=D.C9(t.graphid)){if(null===ZC._n_(t.plotindex)&&null===ZC._n_(t.plotid)||(B=[B],re=!0),re||"setseriesvalues"!==i){for(o=a.HV(t.plotindex,t.plotid,0),A=0,C=B.length;A<C;A++)if(a.AY.A6[o.L+A])if("setseriesvalues"===i)re&&(D.o.graphset[a.L].series[o.L+A].values=a.o.series[o.L+A].values=B[A]);else{var se=D.o.graphset[a.L].series[o.L+A].values,Ae=B[A].length>0&&null!==ZC._n_(B[A][0])&&B[A][0].length>1,Ce=!0;if(null!==ZC._n_(n=t.ignoreduplicates)&&(Ce=ZC._b_(n)),Ae){var ce=se.length;for(c=0,u=B[A].length;c<u;c++){for(var ue=!1,pe=ce-1;pe>=0;pe--){if(B[A][c][0]>se[pe][0]){se.push(B[A][c]),ue=!0;break}if(B[A][c][0]===se[pe][0]){ue=!0;break}}ue&&Ce||se.push(B[A][c])}}else for(c=0,u=B[A].length;c<u;c++)se.push(B[A][c]);t["max-values"]&&ZC._i_(t["max-values"])<se.length&&(se=se.slice(-t["max-values"])),D.o.graphset[a.L].series[o.L+A].values=a.o.series[o.L+A].values=se}}else{for(_=0;_<B.length;_++)D.o.graphset[a.L].series[_]=D.o.graphset[a.L].series[_]||{},a.o.series[_]=a.o.series[_]||{},D.o.graphset[a.L].series[_].values=a.o.series[_].values=B[_];if(a.o.series.length>B.length)for(_=B.length;_<a.o.series.length;_++)delete D.o.graphset[a.L].series[_],delete a.o.series[_]}a.LU("on-change"),D.E.json=ZC.GT(JSON.stringify(D.o)),X&&a.K3(x,x)}break;case"togglelegend":if((a=D.C9(t.graphid))&&a.BF){var Ze=!0;"undefined"==typeof a.BF.o.visible||a.BF.o.visible||(Ze=!1),a.BF.o.visible=!Ze,a.BF.clear(!1),a.BF.parse(),a.BF.paint()}break;case"legendminimize":case"legendmaximize":(a=D.C9(t.graphid))&&a.BF&&("legendminimize"===i?(ZC.AP.BZ("legend_minimize",D,a.I3()),ZC.AP.BZ("legend_hide",D,a.I3())):(ZC.AP.BZ("legend_maximize",D,a.I3()),ZC.AP.BZ("legend_show",D,a.I3())),a.BF.N7="legendminimize"===i,a.BF.VW(),a.BF.clear(!1),a.BF.parse(),a.BF.paint());break;case"legendscroll":(a=D.C9(t.graphid))&&a.BF&&(o=a.HV(t.plotindex,t.plotid))&&(a.BF.scrollTo(ZC._i_(o.L)),a.BF.VW(),a.BF.clear(!0),a.BF.YM=!0,a.BF.parse(),a.BF.paint());break;case"toggledimension":(a=D.C9(t.graphid))&&D.A51(a.K);break;case"getdata":return h=JSON.parse(D.E.json),ZC._todash_(h,!0),h;case"getoriginaljson":return h=JSON.parse(D.E.source),ZC._todash_(h,!0),h;case"getgraphlength":return D.AH.length;case"getplotlength":return(a=D.C9(t.graphid))?a.AY.A6.length:0;case"getscales":if(a=D.C9(t.graphid)){var he=[];for(A=0;A<a.BM.length;A++)he.push(a.BM[A].BC);return he}return[];case"getnodelength":return(a=D.C9(t.graphid))&&(o=a.HV(t.plotindex,t.plotid))?o.R.length:null;case"getnodevalue":return(a=D.C9(t.graphid))&&(o=a.HV(t.plotindex,t.plotid))&&null!==ZC._n_(t.nodeindex)&&(s=o.R[ZC._i_(t.nodeindex)])?o.ED?[s.BU,s.AD]:s.AD:null;case"getplotvalues":if((a=D.C9(t.graphid))&&(o=a.HV(t.plotindex,t.plotid))){for(B=[],A=0,C=o.R.length;A<C;A++)o.R[A]?o.ED?B.push([o.R[A].BU,o.R[A].AD]):B.push(o.R[A].AD):B.push(null);return B}return null}}return null},ZC.ACO=ZC.C8.C7({$i:function(){var e=this;e.O8=null,e.o={},e.I0=null,e.J5=null,e.E={},e.E7=[],e.HT=null,e.N2=""},GZ:function(e,i,t,n,a){var l=this;if(e.HT){a=a||l.N2;var o=e.HT.call(l,n,a);t&&o&&(o[t+"-state"]?o=o[t+"-state"]:o[t+"State"]&&(o=o[t+"State"]));var r,s,A=l.getPMap(),C={},c={};for(var u in o)r=ZC.EC(u),s=ZC.U7(u),"backgroundColor"===r?C.A0=C.AE=ZC.AP.G5(o[u]):"borderRadius"===r?C.F5=C.FQ=C.FA=C.F2=o[u]:"padding"===u?C.FJ=C.FK=C.FR=C.EP=o[u]:A[r]?C[A[r]]=o[u]:C[r]=o[u],c[s]=o[u];i.o||ZC._cp_(o,C),ZC._cp_(C,i),i.o&&(ZC._cp_(c,i.o),i.KV())}},parse:function(){var e,i,t,n,a=this;"dashed"!==zingchart.SYNTAX&&ZC._todash_(a.o);var l="";if("undefined"!=typeof a.H&&(l=a.H.AC),ZC.Z8(a.o,"html5"),""!==l&&ZC.Z8(a.o,l),zingchart.DEV.MEDIARULES&&a.o["media-rules"]&&"undefined"!=typeof a.H)for(i=0;i<a.o["media-rules"].length;i++)t=a.o["media-rules"][i],n=!0,null!==ZC._n_(t["min-width"])&&ZC._i_(t["min-width"])>a.H.I&&(n=!1),null!==ZC._n_(t["max-width"])&&ZC._i_(t["max-width"])<a.H.I&&(n=!1),null!==ZC._n_(t["min-height"])&&ZC._i_(t["min-height"])>a.H.F&&(n=!1),null!==ZC._n_(t["max-height"])&&ZC._i_(t["max-height"])<a.H.F&&(n=!1),n&&ZC._cp_(t,a.o);for(a.o.rules&&(a.E7=a.o.rules),i=0;i<a.E7.length;i++)if("*"===a.E7[i].rule&&a.E7[i].js){a.o["js-rule"]=a.E7[i].js,a.E7.splice(i,1);break}if((e=a.o["js-rule"])&&("javascript:"===e.substring(0,11)||e.indexOf("(")<e.indexOf(")")))try{a.N2="";var o=e.replace("javascript:",""),r=e.indexOf("("),s=e.indexOf(")");-1!==r&&-1!==s&&(a.N2=o.substr(r+1,s-r-1),o=o.substr(0,r)),a.HT=ZC.evalFn(o,window)}catch(C){}if("undefined"!=typeof a.H&&null!==a.H.QP)for(var A in a.H.QP)a.H.QP.hasOwnProperty(A)&&null===ZC._n_(a.o[A])&&(a.o[A]=a.H.QP[A])},getPMap:function(){return{}},addPMap:function(e,i,t){for(var n=i.split(","),a=t.split(","),l=0,o=a.length;l<o;l++)e[n[l]]=a[l]},getData:function(){return this.o},setData:function(e){this.o=e},getAttributes:function(){return this.E},getAttribute:function(e){return this.E[e]},setAttribute:function(e,i){this.E[e]=i},get:function(e){var i=this.getPMap();return i[e]?this[i[e]]:null},set:function(e,i){var t=this.getPMap();t[e]&&(this[t[e]]=i)},append:function(e,i,t){null===i&&(i=!0);var n=this;e&&(n.I0||(n.I0={},ZC._cp_(n.o,n.I0,!0,t)),n.J5||(n.J5={}),ZC._cp_(e,n.J5,!0,t),ZC._cp_(e,n.o,!0,t)),"undefined"!=typeof n.AD0&&n.AD0()&&e&&ZC._cp_(e,n.o)},AD0:function(){},assign_a:function(e){for(var i=0,t=e.length;i<t;i++)this.o.hasOwnProperty(e[i][0])&&this.Z5(e[i][0],e[i][1],e[i][2],e[i][3],e[i][4])},Z5:function(e,i,t,n,a){var l,o=this;if(null!==(l=o.o[e])&&void 0!==l){if(t)switch(-1!==t.indexOf("p")&&(l=ZC._p_(l),t=t.replace("p","")),-1!==t.indexOf("a")&&(l=ZC._a_(l),t=t.replace("a","")),t){case"i":l=ZC._i_(l);break;case"f":l=ZC._f_(l);break;case"b":l=ZC._b_(l);break;case"c":l=ZC.AP.YV(l,o),(l=ZC.AP.G5(l,o))instanceof Array&&("color"===e||"font-color"===e?(o.o["text-alpha"]=l[1],o.UX=l[1],o.E["text-alpha"]=l[1]):"border-color"===e?(o.o["border-alpha"]=l[1],o.NQ=l[1],o.E["b-alpha"]=l[1]):("line-color"===e&&(o.E["l-alpha"]=l[1]),null===ZC._n_(o.o.alpha)&&(o.C5=l[1])),l=l[0])}null!==ZC._n_(n)&&null!==ZC._n_(a)&&(l=ZC._l_(l,n,a)),o[i]=l}},DE:function(){for(var e=this,i=!1,t=0,n=e.E7.length;t<n;t++){var a=!1;try{a=new Function("return ("+e.JE(e.E7[t].rule)+")")()}catch(l){a=!1}a&&(i=!0,e.append(e.E7[t]))}return i},ACG:function(e){for(var i=this,t="",n=0,a=e.length;n<a;n++){var l=!1;try{l=new Function("return ("+i.JE(e[n].rule)+")")()}catch(o){l=!1}l&&(t+="<"+e[n].rule+">")}return""!==t?[t,ZC.XL.md5(t)]:null},JE:function(){return!0},copy:function(e){var i=this;ZC._cp_(e.o,i.o),e.I0&&(i.I0=i.I0||{},ZC._cp_(e.I0,i.I0)),e.J5&&(i.J5=i.J5||{},ZC._cp_(e.J5,i.J5)),ZC._cp_(e.E,i.E),ZC._cp_(e.E7,i.E7)}}),ZC.D0=ZC.ACO.C7({$i:function(e){this.b(e);var i=this;e&&e.H&&(i.H=e.H),i.K="",i.DI=null,i.AM=!0,i.A0="-1",i.AE="-1",i.GQ="",i.HJ="",i.VC=!0,i.D9="",i.LZ="repeat",i.T4="50% 50%",i.WE="",i.KL=1,i.NE="linear",i.N8=90,i.W4=0,i.W2=0,i.B0=0,i.B9="#000",i.G9="",i.EX=0,i.G6=0,i.AT=0,i.BV="#000",i.C5=1,i.NQ=1,i.SW="butt",i.ZT="round",i.M4=!1,i.OE=45,i.JP=2,i.SU=.75,i.RQ="#999",i.P1=0,i.CZ=!0,i.MZ=!1,i.L1=!1,i.A1T=!1,i.OG=null,i.BG=""},getPMap:function(){var e=this.b();return this.addPMap(e,"visible,backgroundColor1,backgroundColor2,gradientColors,gradientStops,backgroundImage,backgroundRepeat,backgroundPosition,backgroundFit,backgroundScale,fillType,fillAngle,fillOffsetX,fillOffsetY,lineWidth,lineColor,lineStyle,lineSegmentSize,lineGapSize,borderWidth,borderColor,borderAlpha,alpha,lineCap,shadow,shadowAngle,shadowDistance,shadowAlpha,shadowColor,shadowBlur,class,border","AM,A0,AE,GQ,HJ,D9,LZ,T4,WE,KL,NE,N8,W4,W2,B0,B9,G9,EX,G6,AT,BV,NQ,C5,SW,M4,OE,JP,SU,RQ,P1,DI,BG"),e},copy:function(e){this.b(e);for(var i=this,t="AM,A0,AE,GQ,HJ,D9,VC,LZ,T4,WE,KL,NE,N8,W4,W2,B0,B9,G9,EX,G6,AT,BV,NQ,C5,SW,M4,OE,JP,SU,RQ,P1,CZ,L1,DI,H,BG".split(","),n=0,a=t.length;n<a;n++)"undefined"!=typeof e[t[n]]&&(i[t[n]]=e[t[n]])},AD0:function(){var e,i,t=this,n=!1;if((t.o["class"]||t.o.cls||t.o.id)&&null!==t.H&&null!==t.H.N){if(e=t.o["class"]||t.o.cls)for(var a=e.split(/(\s+)/),l=0,o=a.length;l<o;l++)(i=t.H.N["."+a[l]])&&(n=!0,ZC._cp_(i,t.o));(e=t.o.id)&&(i=t.H.N["#"+e])&&(n=!0,ZC._cp_(i,t.o))}return null!==t.O8&&(i=t.H.N[t.O8])&&(n=!0,ZC._cp_(i,t.o)),n},KV:function(e){var i,t=this;switch(null===ZC._n_(e)&&(e=t.B0),t.G9){case"dotted":t.EX=ZC.BQ(1,.75*e),t.G6=1.75*e;break;case"dashed":t.EX=4*e,t.G6=3*e;break;case"dashdot":t.EX=4*e,t.G6=2*e;break;default:t.EX=0,t.G6=0}null!==(i=ZC._n_(t.o["line-segment-size"]))&&(t.EX=parseInt(i,10)),null!==(i=ZC._n_(t.o["line-gap-size"]))&&(t.G6=parseInt(i,10))},parse:function(){var e,i,t,n,a,l,o,r,s;this.b();var A=this;if(null!==(e=ZC._n_(A.o.override))&&!A.A1T){var C=-1,c=-1;"undefined"!=typeof A.E.plotidx&&(C=ZC._i_(A.E.plotidx)),"undefined"!=typeof A.E.nodeidx&&(c=ZC._i_(A.E.nodeidx));var u,p,Z;for(o=0,r=e.length;o<r;o++){if(u=-1,p=-1,e[o].hook){if(null!==(i=ZC._n_(e[o].hook["node-index"]))){if(p=0,Z=[],"object"==typeof i)Z=i;else if("string"==typeof i){if(-1!==i.indexOf(","))Z=i.split(",");else if(-1!==i.indexOf("-"))for(t=i.split("-"),n=ZC._i_(t[0]);n<=ZC._i_(t[1]);n++)Z.push(n)}else Z=[i];-1!==ZC.AV(Z,c)&&(p=1)}if(null!==(i=e[o].hook["plot-index"])&&void 0!==i){if(u=0,Z=[],"object"==typeof i)Z=i;else if("string"==typeof i){if(-1!==i.indexOf(","))Z=i.split(",");else if(-1!==i.indexOf("-"))for(t=i.split("-"),n=ZC._i_(t[0]);n<ZC._i_(t[1]);n++)Z.push(n)}else Z=[i];-1!==ZC.AV(Z,C)&&(u=1)}}0!==u&&0!==p&&A.append(e[o])}}if(null!==(e=A.OG)&&A.append(e),e=A.o["background-color"]){if(e=ZC.AP.YV(e,this),"rgb("===String(e).substring(0,4))for(a=new RegExp("rgb\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)");l=a.exec(e);)e=e.replace(l[0],ZC.AP.G5(l[0]));if("rgba("===String(e).substring(0,5))for(a=new RegExp("rgba\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\,\\s*([0-9.]+)\\)");l=a.exec(e);){var h=ZC.AP.G5(l[0],A);e=e.replace(l[0],h[0]),A.o.alpha=h[1],A.C5=h[1],A.E["bg-alpha"]=h[1],null===ZC._n_(A.E["b-alpha"])&&(A.E["b-alpha"]=1),null===ZC._n_(A.E["l-alpha"])&&(A.E["l-alpha"]=1)}var d=ZC.GT(String(e)).split(/\s+|;|,/);A.A0=ZC.AP.G5(d[0]),A.AE=1===d.length?A.A0:ZC.AP.G5(d[1])}if(!(null===ZC._n_(A.o["border-width"])&&null===ZC._n_(A.o["border-color"])&&null===ZC._n_(A.o["line-style"])||null===ZC._n_(A.o["border-top"])&&null===ZC._n_(A.o["border-right"])&&null===ZC._n_(A.o["border-bottom"])&&null===ZC._n_(A.o["border-left"])&&null===ZC._n_(A.o.border))){var f=["top","right","bottom","left"],_={top:[0,"solid","#000"],right:[0,"solid","#000"],bottom:[0,"solid","#000"],left:[0,"solid","#000"]};if(A.I0=A.I0||{},e=A.I0.border)for(s=e.split(/\s/),o=0;o<4;o++)_[f[o]]=[ZC._i_(s[0]||"0"),ZC.GT(s[1]||"solid"),ZC.AP.G5(s[2]||"#000000")];if(null!==ZC._n_(A.I0["border-width"]))for(o=0;o<4;o++)_[f[o]][0]=A.I0["border-width"];if(null!==ZC._n_(A.I0["line-style"]))for(o=0;o<4;o++)_[f[o]][1]=A.I0["line-style"];if(null!==ZC._n_(A.I0["border-color"]))for(o=0;o<4;o++)_[f[o]][2]=A.I0["border-color"];for(o=0;o<4;o++)(e=A.I0["border-"+f[o]])&&(s=e.split(/\s/),_[f[o]]=[ZC._i_(s[0]||"0"),ZC.GT(s[1]||"solid"),ZC.AP.G5(s[2]||"#000000")]);if(A.J5=A.J5||{},e=A.J5.border)for(s=e.split(/\s/),o=0;o<4;o++)_[f[o]]=[ZC._i_(s[0]||"0"),ZC.GT(s[1]||"solid"),ZC.AP.G5(s[2]||"#000000")];if(null!==ZC._n_(A.J5["border-width"]))for(o=0;o<4;o++)_[f[o]][0]=A.J5["border-width"];if(null!==ZC._n_(A.J5["line-style"]))for(o=0;o<4;o++)_[f[o]][1]=A.J5["line-style"];if(null!==ZC._n_(A.J5["border-color"]))for(o=0;o<4;o++)_[f[o]][2]=A.J5["border-color"];for(o=0;o<4;o++)(e=A.J5["border-"+f[o]])&&(s=e.split(/\s/),_[f[o]]=[ZC._i_(s[0]||"0"),ZC.GT(s[1]||"solid"),ZC.AP.G5(s[2]||"#000000")]);for(o=0;o<4;o++)null===ZC._n_(A.o["border-"+f[o]])&&(A.o["border-"+f[o]]=_[f[o]].join(" "))}A.assign_a([["visible","AM","b"],["background-color-1","A0","c"],["background-color-2","AE","c"],["gradient-colors","GQ"],["gradient-stops","HJ"],["background-clip","VC","b"],["background-image","D9"],["background-repeat","LZ"],["background-position","T4"],["background-fit","WE"],["background-scale","KL","f"],["fill-type","NE"],["fill-angle","N8","i"],["fill-offset-x","W4","f"],["fill-offset-y","W2","f"],["line-width","B0","i"],["line-color","B9","c"],["line-style","G9",""],["class","DI"],["cls","DI"],["border","BG"]]),"none"===A.NE&&(A.AE=A.A0,A.NE="linear"),""!==A.BG&&(s=A.BG.split(/\s/),A.AT=ZC._i_(s[0]||"0"),A.G9=ZC.GT(s[1]||"solid"),A.BV=ZC.AP.G5(s[2]||"#000000")),A.GQ=ZC.AP.YV(A.GQ,this),A.KV(),A.assign_a([["line-segment-size","EX","i"],["line-gap-size","G6","i"],["border-width","AT","i"],["border-color","BV","c"],["alpha","C5","f",0,1],["shadow","M4","b"],["shadow-angle","OE","i",0,360],["shadow-distance","JP","i"],["shadow-alpha","SU","f",0,1],["shadow-color","RQ","c"],["shadow-blur","P1","i"]]),A.NQ=A.C5,A.assign_a([["border-alpha","NQ","f",0,1]])}}),ZC.CS={contour:function(e,i,t){var n,a,l;if(e&&t&&0!==t.length){if(!i.E["fast-vector-path"])for(n=0,a=t.length;n<a;n++)t[n]&&(t[n][0]=parseFloat(Number(t[n][0]).toFixed(2)),t[n][1]=parseFloat(Number(t[n][1]).toFixed(2)));var o=!1,r=t.length;for(n=0;n<r;n++)null!==ZC._n_(t[n])&&(l=[t[n][0],t[n][1]],null!==ZC._n_(t[n][2])&&l.push(t[n][2],t[n][3]),null!==ZC._n_(t[n][4])&&l.push(t[n][4],t[n][5]),i.MZ&&(l[0]=Math.round(l[0]),l[1]=Math.round(l[1]),4===l.length&&(l[2]=Math.round(l[2]),l[3]=Math.round(l[3]))),i.CZ&&i.B0%2==1&&(l[0]-=.5,l[1]-=.5,4===l.length&&(l[2]-=.5,l[3]-=.5))),0===n?e.moveTo(l[0],l[1]):t[n]?(o&&(e.moveTo(l[0],l[1]),o=!1),2===l.length?e.lineTo(l[0],l[1]):4===l.length?e.quadraticCurveTo(l[0],l[1],l[2],l[3]):6===l.length&&e.arc(l[0],l[1],l[2],ZC.SZ(l[3]),ZC.SZ(l[4]),l[5])):o=!0}},setup:function(e,i){var t=i.H.AC;if(1!==i.C5&&i.L1&&(null===ZC._n_(i.o["border-color"])&&(i.BV=i.A0),null===ZC._n_(i.o["border-width"])))switch(t){case"canvas":i.AT=.2;break;case"svg":i.AT=.1;break;case"vml":i.AT=.2,i.E.A8F=i.C5/10}},paint:function(e,i,t,n,a,l){if(null===ZC._n_(a)&&(a=2),null===ZC._n_(n)&&(n=!1),null===ZC._n_(l)&&(l=!1),e&&t&&0!==t.length&&i){!l&&t.length>2&&null!==t[0]&&null!==t[t.length-1]&&t[0].join(",")===t[t.length-1].join(",")&&(i.SW="round");var o,r,s,A,C,c,u=i.H.AC;if("canvas"!==u||0!==i.B0&&"-1"!==i.B9){if(i.M4&&!n){i.C6=i.C6||i.Z;var p,Z=ZC.Q._sh_(t,i);"undefined"!=typeof i.A58?p=i.A58:((p=new ZC.DW(i)).copy(i),p.K=i.K+"-sh",p.M4=!1,p.B0+=p.P1,p.B9=p.RQ),p.C5=i.C5*p.SU,"undefined"==typeof i.ADB&&(i.A58=p),p.CZ=!1,o=i.C6?ZC.Q.E9(i.C6,u):e,ZC.CS.setup(o,p),ZC.CS.paint(o,p,Z,!1,1,l)}var h=ZC._i_(i.EX||"0"),d=ZC._i_(i.G6||"0");"solid"===i.G9&&(h=d=0);var f=t.length;"undefined"==typeof i.AA&&(i.AA=0),"canvas"===u&&(e.lineJoin=i.ZT,e.lineCap=i.SW,e.strokeStyle=ZC.AP.A2M(ZC.AP.G5(i.B9),n?i.NQ:i.C5),e.lineWidth=i.B0,e.beginPath());var _=!1;if(-1!==ZC.AV(["svg","vml"],u))r=l?[]:ZC.Q.A2O(t,u,i,n);else{var g=!1;"dashdot"!==i.G9&&(g=e.setLineDash)&&e.setLineDash(0===h||0===d?[]:[h,d]);var v=0,b=[ZC.MAX,ZC.MAX,-ZC.MAX,-ZC.MAX];for(c=0;c<f;c++)if(null!==t[c]){if(null!==(s=ZC.objmove?t[c]:ZC.Q._txp_(t[c],u,i,n))&&!isNaN(s[0])&&!isNaN(s[1])&&isFinite(s[0])&&isFinite(s[1]))if(f<=6&&n&&(b[0]=ZC.CY(b[0],s[0]),b[1]=ZC.CY(b[1],s[1]),b[2]=ZC.BQ(b[2],s[0]),b[3]=ZC.BQ(b[3],s[1])),0===c)2===s.length?e.moveTo(s[0],s[1]):6===s.length&&e.arc(s[0],s[1],s[2],ZC.SZ(s[3]),ZC.SZ(s[4]),s[5]);else if(_&&(e.moveTo(s[0],s[1]),_=!1),g||0===h||0===d||4===s.length||6===s.length||7===s.length)2===s.length?e.lineTo(s[0],s[1]):4===s.length?e.quadraticCurveTo(s[0],s[1],s[2],s[3]):6===s.length?e.arc(s[0],s[1],s[2],ZC.SZ(s[3]),ZC.SZ(s[4]),s[5]):7===s.length&&e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);else if(null!==t[c-1]){var m=ZC.Q._txp_(t[c-1],u,i,n),B=m[4===m.length?2:0],E=m[4===m.length?3:1],K=s[0],F=s[1],D=h+d,X=K-B,I=F-E,x=Math.sqrt(X*X+I*I)+v;if(x>h){v=0;var y;y="dashdot"===i.G9?Math.floor(ZC._a_(x/((D+i.B0+d)/2))):Math.floor(ZC._a_(x/D));var w=Math.atan2(I,X),Y=Math.cos(w),M=Math.sin(w),H=B,L=E,P=h;for(A=0;A<y;A++)"dashdot"===i.G9&&(D=A%2?i.B0+d:h+d,P=A%2?i.B0:h),X=Y*D,I=M*D,e.moveTo(H,L),e.lineTo(H+Y*P,L+M*P),H+=X,L+=I;e.moveTo(H,L),(x=Math.sqrt((K-H)*(K-H)+(F-L)*(F-L)))>h?e.lineTo(H+Y*h,L+M*h):x>0&&e.lineTo(H+Y*x,L+M*x),e.moveTo(K,F)}else v=x}}else _=!0;i.H&&f<=6&&n&&(i.H.E[i.K+"-bounds"]=b)}switch(u){case"canvas":e.globalCompositeOperation=i.A0M,e.stroke();break;case"svg":case"vml":if(null===ZC._n_(i.o["top-state"])&&i.H.O3&&(!n||i.E.areanode)){if(C=i.E.areanode?i.A0+"-"+i.AE+"-"+i.D9+"-"+i.B0+"-"+i.G9+"-"+i.C5+"-"+i.BJ+"-"+i.BH:i.B9+"-"+i.B0+"-"+i.G9+"-"+i.C5+"-"+i.BJ+"-"+i.BH,null===ZC._n_(i.H.NX[a])){i.H.NX[a]={uid:C,ctx:e,path:r,style:i,filled:n};break}if(i.H.NX[a].uid===C&&i.H.NX[a].path.length<2e3){A=i.H.NX[a].path,r&&r[0]&&(A.length>0&&A[A.length-1].replace(/[A-Z]+/,"")===r[0].replace(/[A-Z]+/,"")&&(r[0]=""),i.H.NX[a].path=i.H.NX[a].path.concat(r));break}"svg"===u?ZC.CS.W6(i.H.NX[a].ctx,i.H.NX[a].style,i.H.NX[a].path.join(" "),i.H.NX[a].filled):ZC.CS.W5(i.H.NX[a].ctx,i.H.NX[a].style,i.H.NX[a].path.join(" "),i.H.NX[a].filled),i.H.NX[a]={uid:C,ctx:e,path:r,style:i,filled:n};break}"svg"===u?ZC.CS.W6(e,i,r.join(" "),n,l):ZC.CS.W5(e,i,r.join(" "),n)}if(null!==ZC._n_(i.o["top-state"])&&!i.Y3&&!i.E["skip-top"]&&!i.VV){var N=new ZC.HS(i.A);N.copy(i),N.VV=!0,N.M4=!1,N.Z=i.Z,N.append(i.o["top-state"]),N.K=i.K+"-top",N.parse(),"svg"===u?ZC.CS.W6(e,N,r.join(" "),n,l):"vml"===u?ZC.CS.W5(e,N,r.join(" "),n):ZC.CS.paint(e,N,t,n,a,l)}}}},smooth:function(e,i,t){var n,a,l,o;ZC._n_(i)&&(i=!1),t=t||"h";var r=[],s=[];for(n=0,a=e.length;n<a;n++)e[n]&&("h"===t?(s.push(e[n][0]),r.push(e[n][1])):(s.push(e[n][1]),r.push(e[n][0])),0===n&&(s.push(s[0]),r.push(r[0])));for(s.push(s[s.length-1]),r.push(r[r.length-1]),e=[],l=1,o=r.length;l<o-1;l++){var A=[r[l-1],r[l],r[l+1],r[l+2]],C=ZC._a_(s[l+1]-s[l]),c=1/(C/A.length),u=ZC.AO.XZ(i,A,C,c);for(n=0,a=u.length;n<a;n++)null!==ZC._n_(u[n][0])&&null!==ZC._n_(u[n][1])?"h"===t?e.push([s[l]+u[n][0]*C,u[n][1]]):e.push([u[n][1],s[l]+u[n][0]*C]):e.push(null)}return e},_append_:function(e,i,t){i.H&&i.H.FY?(null===ZC._n_(i.H.FY[e.id])&&(i.H.FY[e.id]=document.createDocumentFragment()),i.H.FY[e.id].appendChild(t)):e.appendChild(t)},W6:function(e,i,t,n,a){if(""!==t||a){var l,o,r,s,A,C,c;ZC.cache.data["svg-rect"]||(ZC.cache.data["svg-rect"]=ZC.Q.F4("rect","http://www.w3.org/2000/svg")),l=a?ZC.cache.data["svg-rect"].cloneNode(!0):ZC.Q.F4("path","http://www.w3.org/2000/svg");var u={};if(i.DI&&""!==i.DI&&(u["class"]=i.DI),a||(u.d=t),a){i.I<0&&(i.iX-=i.I,i.I=-i.I),i.F<0&&(i.iY+=i.F,i.F=-i.F);var p=0,Z=0,h=1;i.CZ&&(h=0,p=Z=i.B0/2,0===i.iX&&(p=0),0===i.iY&&(Z=0)),0===h||i.I<=3||i.F<=3?(o=Math.floor(i.iX)+p,r=Math.floor(i.iY)+Z,s=Math.ceil(i.I)-2*p,A=Math.ceil(i.F)-2*p,C=i.F5,c=i.F5):(o=parseFloat(i.iX.toFixed(h))+p,r=parseFloat(i.iY.toFixed(h))+Z,s=parseFloat(i.I.toFixed(h))-2*p,A=parseFloat(i.F.toFixed(h))-2*Z,C=i.F5,c=i.F5),u.x=o,u.y=r,u.width=ZC.BQ(0,s),u.height=ZC.BQ(0,A),u.rx=C,u.ry=c,i.H&&(i.H.E[i.K+"-bounds"]=[u.x,u.y,u.x+u.width,u.y+u.height])}var d="";"undefined"==typeof i.K||""===i.K?"undefined"!=typeof i.H&&(d=i.H.GRAPHID+"-path-"+ZC.SEQ,ZC.SEQ++):d=i.K+"-path";var f="";if("undefined"!=typeof i.BJ&&"undefined"!=typeof i.BH&&(0===i.BJ&&0===i.BH||(f+="translate("+i.BJ+" "+i.BH+")")),"undefined"!=typeof i.AA&&0!==i.AA){var _=i.AA;"undefined"!=typeof i.E.cx&&(_+=","+(ZC._x_(i.E.cx)-.5)),"undefined"!=typeof i.E.cy&&(_+=","+(ZC._x_(i.E.cy)-.5)),f+=" rotate("+_+")"}n&&-1!==i.E.fill?(u.fill=i.E.fill,u["fill-opacity"]=i.C5):u.fill="none",u["stroke-linecap"]=i.SW,u["stroke-linejoin"]=i.ZT,i.B0>0&&(u.stroke=i.B9,u["stroke-width"]=i.B0,u["stroke-opacity"]=n?i.NQ:i.C5,"solid"===i.G9||0===i.EX&&0===i.G6||("dashdot"===i.G9?u["stroke-dasharray"]=[i.EX,i.G6,i.B0,i.G6].join(" "):u["stroke-dasharray"]=i.EX+","+i.G6)),l.id=d,""!==f&&(u.transform=f),i.o["fast-line"]&&i.B0>0?(l.setAttribute("stroke",u.stroke),l.setAttribute("stroke-width",u["stroke-width"]),l.setAttribute("stroke-opacity",u["stroke-opacity"]),l.setAttribute("d",t)):ZC.Q.G2(l,u),ZC.CS._append_(e,i,l);var g;if((!i.E.border||"all"===i.E.border)&&"undefined"!=typeof i.E.imgfill)if("string"==typeof i.E.imgfill)ZC.AK(d+"-imgfill")||(g=a?ZC.Q.F4("rect","http://www.w3.org/2000/svg"):ZC.Q.F4("path","http://www.w3.org/2000/svg"),ZC.Q.G2(g,{id:d+"-imgfill",transform:f,fill:i.E.imgfill,"fill-opacity":i.C5}),a?ZC.Q.G2(g,{x:o,y:r,width:ZC.BQ(0,s),height:ZC.BQ(0,A),rx:C,ry:c}):ZC.Q.G2(g,{d:t}),ZC.CS._append_(e,i,g));else if(!ZC.AK(d+"-imgfill")){var v=i.E.imgfill,b=ZC.Q.F4("image","http://www.w3.org/2000/svg");b.setAttributeNS?"zc."===i.D9.substring(0,3)?b.setAttributeNS("http://www.w3.org/1999/xlink","href",ZC.IMAGES[i.D9]):b.setAttributeNS("http://www.w3.org/1999/xlink","href",i.D9):"zc."===i.D9.substring(0,3)?b.setAttribute("src",ZC.IMAGES[i.D9]):b.setAttribute("src",i.D9),null!==ZC._n_(i.E["clip-path"])&&ZC.Q.G2(b,{"clip-path":"url(#"+i.E["clip-path"]+")"}),ZC.Q.G2(b,{id:d+"-imgfill",x:v[1],y:v[2],"fill-opacity":i.C5,width:i.E["bg-image-width"],height:i.E["bg-image-height"],preserveAspectRatio:"none"}),ZC.CS._append_(e,i,b)}}},W5:function(e,i,t,n){var a;n&&(t+=" x e");var l,o,r,s,A,C="";"undefined"==typeof i.K||""===i.K?"undefined"!=typeof i.H&&(C=i.H.GRAPHID+"-path-"+ZC.SEQ,ZC.SEQ++):C=i.K+"-path";var c=ZC.Q.F4("zcv:shape");c.style.position="absolute",c.style.rotation=i.AA,c.id=C;var u=ZC.Q.F4("zcv:path");if(u.v=t,u.setAttribute("VMLv",t),c.appendChild(u),0===i.B0)c.stroked=!1;else{var p=ZC.Q.F4("zcv:stroke");if(r=i.C5,"undefined"!=typeof i.E.A8F&&(r=i.E.A8F),"undefined"!=typeof i.E.stroke)l=i.E.stroke.weight,o=i.E.stroke.color,r=i.E.stroke.opacity,s=i.E.stroke.dashstyle;else{switch(s="solid",i.G9){case"solid":s="solid";break;case"dotted":s="dot";break;case"dashed":s="dash";break;default:s=i.G9}"solid"!==s&&"0 0"!=(a=ZC.CY(6,i.EX*i.B0)+" "+ZC.CY(8,i.G6*i.B0))&&(s=a),l=i.B0,o=i.B9}ZC.Q.G2(p,{weight:l+"px",color:o,opacity:r,miterlimit:10,endcap:"flat",joinstyle:"round",dashstyle:s}),c.appendChild(p)}n&&"undefined"!=typeof i.E.fill&&-1!==i.E.fill?(c.filled=!0,c.appendChild(i.E.fill)):c.filled=!1,ZC.Q.G2(c,{coordorigin:"0 0",coordsize:i.AA%360==0?"100 100":i.H.I+" "+i.H.F});var Z=0,h=0;if(i.AA%360!=0&&"undefined"!=typeof i.E.cx&&"undefined"!=typeof i.E.cy){var d=i.H.I/2-i.E.cx,f=i.H.F/2-i.E.cy,_=0===f?0:ZC.TO(Math.atan(d/f));i.E.cy>i.H.F/2&&(_+=180);var g=Math.sqrt(d*d+f*f);Z=d-g*ZC.EO(_-i.AA),h=f-g*ZC.EF(_-i.AA)}var v=0-Z;null!==ZC._n_(i.BJ)&&(v+=i.BJ);var b=0-h;if(null!==ZC._n_(i.BH)&&(b+=i.BH),c.style.left=v+"px",c.style.top=b+"px",e.appendChild(c),i.AA%360==0?(c.style.width="10px",c.style.height="10px"):(c.style.width=i.H.I+"px",c.style.height=i.H.F+"px"),("all"===i.E.border||"undefined"!=typeof i.E.imgfill)&&"undefined"!=typeof i.E.imgfill){var m=i.E.imgfill;1===m.length?((c=ZC.Q.F4("zcv:shape")).style.position="absolute",c.style.rotation=i.AA,(u=ZC.Q.F4("zcv:path")).v=t,c.appendChild(u),c.appendChild(m[0]),c.stroked=!1,ZC.Q.G2(c,{id:C+"-imgfill",filled:!0,coordorigin:"0 0",coordsize:i.AA%360==0?"100 100":i.H.I+" "+i.H.F}),c.style.left=v+"px",c.style.top=b+"px",e.appendChild(c),i.AA%360==0?(c.style.width="10px",c.style.height="10px"):(c.style.width=i.H.I+"px",c.style.height=i.H.F+"px")):3===m.length&&((A=ZC.Q.F4("img")).id=C+"-img","zc."===i.D9.substring(0,3)?A.src=ZC.IMAGES[i.D9]:A.src=i.D9,A.style.position="absolute",A.style.left=m[1]+"px",A.style.top=m[2]+"px",A.style.width=i.E["bg-image-width"]+"px",A.style.height=i.E["bg-image-height"]+"px",e.appendChild(A))}}},ZC.DW=ZC.D0.C7({$i:function(e){this.b(e);var i=this;i.A=e,i.Z=null,i.C6=null,i.H2="",i.iX=-1,i.iY=-1,i.DQ="poly",i.D=[],i.D1=[0,0,0,0],i.AA=0,i.AI=0,i.KT=0,i.BJ=0,i.BH=0,i.A9O=0,i.DR=0,i.B3=0,i.BI=360,i.CN=0,i.TL=!1,i.ADA=!1,i.A50=0,i.AAK="",i.O3=!1,i.A9P=1,i.JN=1,i.E8=null,i.FC=null,i.IR="auto",i.K5=!1,i.A0M="source-over",i.QJ=!1},getPMap:function(){var e=this.b();return this.addPMap(e,"objectId,x,y,points,bounds,pieAngleStart,pieAngleEnd,pieSlice,url,target,offsetX,offsetY,offsetR,size,size2,angle,shape,flat,cursor","H2,iX,iY,D,D1,B3,BI,CN,E8,FC,BJ,BH,DR,AI,KT,AA,DQ,K5,IR"),e},build:function(){},copy:function(e){this.b(e);var i,t,n=this,a="BJ,BH,DR,AI,KT,AA,DQ,K5,IR".split(",");for(i=0,t=a.length;i<t;i++)"undefined"!=typeof e[a[i]]&&(n[a[i]]=e[a[i]]);if(e.D&&e.D.length>0)for(n.D=[],i=0,t=e.D.length;i<t;i++)n.D.push(e.D[i])},ll_:function(e,i){var t=this;-1!==(""+e).indexOf("lat")&&(i="y"),-1!==(""+e).indexOf("lon")&&(i="x"),e=ZC._f_((""+e).replace("lat","").replace("lon",""));var n=zingchart.maps.maps[t.A50];return n&&(e=zingchart.maps.lonlat2xy(n._INFO_.x,n._INFO_.y,n._INFO_.width,n._INFO_.height,"x"===i?[e,0]:[0,e],n._INFO_.bbox,{map:t.A50,item:t.AAK,zoom:n._INFO_.zoom,offsetX:n._INFO_.offsetX,offsetY:n._INFO_.offsetY},!0)),e=ZC._i_("x"===i?e[0]:e[1])},kv_:function(e,i){var t,n=this;-1!==(""+e).indexOf("val")&&(i="y"),-1!==(""+e).indexOf("key")&&(i="x"),e=ZC._f_((""+e).replace("key","").replace("val",""));var a=n.H||zingchart.HU[0];if(a){var l=n.A||a.AH[0];l&&("x"===i?null!==(t=l.BT("k")[0])&&(e=ZC._i_(t.B2(e))):null!==(t=l.BT("v")[0])&&(e=ZC._i_(t.B2(e))))}return ZC._i_(e)},xy_:function(e,i,t){var n=this;i=i||"x";var a=""+e;if(-1!==a.indexOf("lat")||-1!==a.indexOf("lon"))return n.ll_(e,i);if(-1!==a.indexOf("val")||-1!==a.indexOf("key"))return n.kv_(e,i);if(""+ZC._f_(e)!==a)return-1!==(e+="").indexOf("%")?n.xy_(parseFloat(e.replace("%",""))/100,i,!0):-1!==e.indexOf("px")?n.xy_(parseFloat(e.replace("px","")),i):n.xy_(parseFloat(e),i);var l="undefined"!=typeof n.E["p-x"]?n.E["p-x"]:n.A.iX,o="undefined"!=typeof n.E["p-y"]?n.E["p-y"]:n.A.iY,r="undefined"!=typeof n.E["p-width"]?n.E["p-width"]:n.A.I,s="undefined"!=typeof n.E["p-height"]?n.E["p-height"]:n.A.F;return(e>=1||e<0||zingchart.DEV.IGNORESUBUNIT)&&!t?"x"===i?l+parseFloat(e):o+parseFloat(e):e>=0&&e<1||t?"x"===i?(r=r||1,Math.round(l+r*e)):(s=s||1,Math.round(o+s*e)):void 0},locate:function(e){var i,t=this;if(t.TL)return-1!==(""+t.o.x).indexOf("lon")?t.iX=t.ll_(t.o.x,"x"):t.Z5("x","iX"),-1!==(""+t.o.y).indexOf("lat")?t.iY=t.ll_(t.o.y,"y"):t.Z5("y","iY"),void t.A0S();1===e?(null!==(i=ZC._n_(t.o.x))&&(t.iX=t.xy_(i,"x")),null!==(i=ZC._n_(t.o.y))&&(t.iY=t.xy_(i,"y")),-1===t.iX&&(t.iX=t.A.iX),-1===t.iY&&(t.iY=t.A.iY)):2===e&&(t.A0S(),t.I=t.D1[2]-t.D1[0],t.F=t.D1[3]-t.D1[1])},A0S:function(){var e,i=this,t=ZC.MAX,n=ZC.MAX,a=-ZC.MAX,l=-ZC.MAX;switch(i.DQ){case"custom":t=0,n=0,a=0,l=0;break;case"circle":case"arc":case"pie":t=i.iX-i.AI,n=i.iY-i.AI,a=i.iX+i.AI,l=i.iY+i.AI;break;default:for(var o=0,r=i.D.length;o<r;o++)null!==(e=i.D[o])&&(t=Math.min(t,e[0]),n=Math.min(n,e[1]),a=Math.max(a,e[0]),l=Math.max(l,e[1]))}i.D1=[t,n,a,l]},FB:function(){var e,i=this;if("pie"===i.DQ){var t=1,n=[],a=i.B3+i.AA,l=i.BI+i.AA,o=i.AI+Math.floor(i.AT/2),r=i.CN-Math.floor(i.AT/2);for(o>50&&(t=2),o>100&&(t=4),0===r?a%360!=l%360&&n.push([i.iX,i.iY]):n.push(ZC.AO.BK(i.iX,i.iY,r,a),ZC.AO.BK(i.iX,i.iY,(o+r)/2,a-.25*i.AT),ZC.AO.BK(i.iX,i.iY,o,a)),e=a;e<=l;e+=t)n.push(ZC.AO.BK(i.iX,i.iY,o,e));if(n.push(ZC.AO.BK(i.iX,i.iY,o,l)),n.push(ZC.AO.BK(i.iX,i.iY,(o+r)/2,l+.25*i.AT)),0===r)a%360!=l%360&&n.push([i.iX,i.iY]);else{for(n.push(ZC.AO.BK(i.iX,i.iY,r,l)),e=l;e>=a;e-=t)n.push(ZC.AO.BK(i.iX,i.iY,r,e));n.push(ZC.AO.BK(i.iX,i.iY,r,a))}return n.push([n[0][0],n[0][1]]),ZC.AO.PM(n,Math.min(5,o/5),[i.BJ,i.BH])}if(0===i.AA||"rectangle"!==i.DQ&&"rect"!==i.DQ)return ZC.AO.PM(i.D,Math.min(5,i.AI/5),[i.BJ,i.BH]);var s,A,C,c,u,p,Z,h,d=[];for(C=ZC._i_((i.D1[0]+i.D1[2])/2),c=ZC._i_((i.D1[1]+i.D1[3])/2),s=0,A=i.D.length;s<A;s++)null!==i.D[s]&&(u=i.D[s][0]-C,p=i.D[s][1]-c,Z=u*ZC.EF(i.AA)-p*ZC.EO(i.AA),h=u*ZC.EO(i.AA)+p*ZC.EF(i.AA),d[s]=[Z+C,h+c]);return ZC.AO.PM(d,Math.min(5,i.AI/5),[i.BJ,i.BH])},A4V:function(){var e,i,t,n,a,l,o,r,s,A=this,C=ZC.ie67?ZC.MAPTX:0;switch(A.DQ){case"line":if(t=[].concat(A.D),0!==A.AA)for(n=(A.D1[0]+A.D1[2])/2,a=(A.D1[1]+A.D1[3])/2,e=0,i=t.length;e<i;e++)null!==t[e]&&(l=t[e][0]-n,o=t[e][1]-a,r=l*ZC.EF(A.AA)-o*ZC.EO(A.AA),s=l*ZC.EO(A.AA)+o*ZC.EF(A.AA),t[e]=[r+n,s+a]);var c=["poly"];for(e=0,i=t.length;e<i-1;e++)null!==t[e]&&null!==t[e+1]&&c.push(ZC.AO.PM(ZC.AO.YW([t[e],t[e+1]]),4,[A.BJ,A.BH]));return c;case"cross":case"plus":return["circle",ZC._i_(A.iX+C+A.BJ)+","+ZC._i_(A.iY+C+A.BH)+","+ZC._i_(A.AI)];case"circle":case"arc":return["circle",ZC._i_(A.iX+C+A.BJ)+","+ZC._i_(A.iY+C+A.BH)+","+ZC._i_(A.AI+2)];case"pie":return["poly",A.FB()];default:var u,p=["poly"];for(t=[],e=0,i=A.D.length;e<i;e++)if(null!==A.D[e])if(6===A.D[e].length)for(var Z=A.D[e][3];Z<A.D[e][4];Z+=1)t.push(ZC.AO.BK(A.D[e][0],A.D[e][1],A.D[e][2],Z));else if(4===A.D[e].length&&t[e-1]){var h={x:t[t.length-1][0],y:t[t.length-1][1]},d={x:A.D[e][2],y:A.D[e][3]},f={x:A.D[e][0],y:A.D[e][1]};for(u=0;u<=1;u+=.1)t.push([(1-u)*(1-u)*h.x+2*u*(1-u)*f.x+u*u*d.x,(1-u)*(1-u)*h.y+2*u*(1-u)*f.y+u*u*d.y])}else if(7===A.D[e].length&&t[e-1]){var _={x:t[t.length-1][0],y:t[t.length-1][1]},g={x:A.D[e][0],y:A.D[e][1]},v={x:A.D[e][2],y:A.D[e][3]},b={x:A.D[e][4],y:A.D[e][5]};for(u=0;u<=1;u+=.1){var m=(1-u)*(1-u)*(1-u),B=3*u*(1-u)*(1-u),E=3*u*u*(1-u),K=u*u*u;t.push([m*_.x+B*g.x+E*v.x+K*b.x,m*_.y+B*g.y+E*v.y+K*b.y])}}else t.push(A.D[e]);else t.length>-1&&p.push(ZC.AO.PM(t,Math.min(5,A.AI/5),[A.BJ,A.BH])),t=[];if(0!==A.AA)for(n=ZC._i_((A.D1[0]+A.D1[2])/2),a=ZC._i_((A.D1[1]+A.D1[3])/2),e=0,i=t.length;e<i;e++)null!==t[e]&&(l=t[e][0]-n,o=t[e][1]-a,r=l*ZC.EF(A.AA)-o*ZC.EO(A.AA),s=l*ZC.EO(A.AA)+o*ZC.EF(A.AA),t[e]=[r+n,s+a]);return t.length>-1&&p.push(ZC.AO.PM(t,Math.min(5,A.AI/5),[A.BJ,A.BH])),p}},parse:function(e){var i,t,n,a,l,o,r;null===ZC._n_(e)&&(e=!1),this.o.tween||e||this.b();var s=this;if(!s.o.tween&&!e){s.assign_a([["map","A50"]]),"string"==typeof s.o.item&&s.assign_a([["item","AAK"]]),0!==s.A50&&(null===ZC._n_(s.o["map-item"])||s.o["map-item"])&&(s.o["map-item"]=!0,s.o["map-skip-z-sort"]=!0);var A=["offset-x","offset-y"];for(t=0;t<2;t++){var C=A[t],c="offset-x"===C?"lon":"lat";if(null!==(i=s.o[C])&&void 0!==i&&-1!==(i=""+i).indexOf(c)){i=ZC._f_(i.replace(c,""));var u=zingchart.maps.maps[s.A50];u&&(i=zingchart.maps.translate(C.replace("offset-"),i,s.A.I,s.A.F,u._INFO_.bbox),s.o[C]=i)}}for(s.assign_a([["url","E8"],["target","FC"],["cursor","IR"],["id","H2"],["angle","AA","i"],["static","K5","b"],["flat","K5","b"],["angle-start","B3","f"],["angle-end","BI","f"],["slice","CN","i"],["size","AI","f"],["size-2","KT","f"],["fast-vector-path","QJ","b"],["type","DQ"],["points","D"],["offset-x","BJ"],["offset-y","BH"],["offset-z","A9O","i"],["offset-r","DR","i"],["z-sort","A9P","i"],["z-index","JN","f"],["composite","A0M"]]),s.BJ=ZC.IG(s.BJ,!0),s.BH=ZC.IG(s.BH,!0),s.BJ>-1&&s.BJ<1&&"undefined"!=typeof s.E["p-width"]&&(s.BJ*=s.E["p-width"]),s.BH>-1&&s.BH<1&&"undefined"!=typeof s.E["p-height"]&&(s.BH*=s.E["p-height"]),s.AI=ZC.BQ(1,s.AI),s.KT=ZC.BQ(1,s.KT),null!==s.o["z-sort"]&&"undefined"!=typeof s.o["z-sort"]||(s.A9P=s.JN),"rectangle"!==s.DQ&&"rect"!==s.DQ||s.assign_a([["width","AI","f"],["height","KT","f"]]),s.A4L?(s.D=JSON.parse(JSON.stringify(s.F8)),s.A4L=!1):s.F8=JSON.parse(JSON.stringify(s.D)),t=0,n=s.D.length;t<n;t++)if(null!==s.D[t])for(var p=0;p<s.D[t].length;p++)-1===(""+s.D[t][p]).indexOf("lat")&&-1===(""+s.D[t][p]).indexOf("lon")||(s.A4L=!0,s.D[t][p]=s.ll_(s.D[t][p],p%2==0?"x":"y")),-1===(""+s.D[t][p]).indexOf("key")&&-1===(""+s.D[t][p]).indexOf("val")||(s.A4L=!0,s.D[t][p]=s.kv_(s.D[t][p],p%2==0?"x":"y"))}if(s.o.tween=null,s.AA=s.AA%360,s.locate(1),"bar"!==s.DQ){var Z=s.AI;switch(s.DQ){case"custom":break;case"triangle":Z=s.AI;var h=.1*s.AI;s.D=[[s.iX-Z,s.iY+Z-h],[s.iX,s.iY-Z-h],[s.iX+Z,s.iY+Z-h],[s.iX-Z,s.iY+Z-h]];break;case"square":Z=ZC._i_(.9*s.AI),s.D=[[s.iX-Z,s.iY-Z],[s.iX-Z,s.iY+Z],[s.iX+Z,s.iY+Z],[s.iX+Z,s.iY-Z],[s.iX-Z,s.iY-Z]];break;case"diamond":Z=ZC._i_(1.2*s.AI),s.D=[[s.iX-Z,s.iY],[s.iX,s.iY+Z],[s.iX+Z,s.iY],[s.iX,s.iY-Z],[s.iX-Z,s.iY]];break;case"trapezoid":s.D=[[s.iX-Z/2,s.iY+s.KT],[s.iX+Z/2,s.iY+s.KT],[s.iX+Z,s.iY-s.KT],[s.iX-Z,s.iY-s.KT],[s.iX-Z/2,s.iY+s.KT]];break;case"rectangle":case"rect":s.D=[[s.iX-Z/2,s.iY-s.KT/2],[s.iX+Z/2,s.iY-s.KT/2],[s.iX+Z/2,s.iY+s.KT/2],[s.iX-Z/2,s.iY+s.KT/2],[s.iX-Z/2,s.iY-s.KT/2]];break;case"parallelogram":s.D=[[s.iX-Z/2,s.iY-s.KT/2],[s.iX+3*Z/2,s.iY-s.KT/2],[s.iX+Z,s.iY+s.KT/2],[s.iX-Z,s.iY+s.KT/2],[s.iX-Z/2,s.iY-s.KT/2]];break;case"plus":Z=s.AI,s.D=[[s.iX,s.iY-Z],[s.iX,s.iY+Z],null,[s.iX-Z,s.iY],[s.iX+Z,s.iY]];break;case"cross":Z=s.AI,s.D=[[s.iX-Z,s.iY-Z],[s.iX+Z,s.iY+Z],null,[s.iX-Z,s.iY+Z],[s.iX+Z,s.iY-Z]];break;case"ic_line":Z=s.AI/4,s.D=[[s.iX-2*Z,s.iY+Z],[s.iX-Z,s.iY],[s.iX,s.iY+Z],[s.iX+Z,s.iY-Z],[s.iX+2*Z,s.iY]];break;case"ic_area":Z=s.AI/4,s.D=[[s.iX-2*Z,s.iY+2*Z],[s.iX-2*Z,s.iY+Z],[s.iX-Z,s.iY],[s.iX,s.iY+Z],[s.iX+Z,s.iY-Z],[s.iX+2*Z,s.iY],[s.iX+2*Z,s.iY+2*Z],[s.iX-2*Z,s.iY+2*Z]];break;case"ic_bars":s.CZ=!1,Z=s.AI/4,s.D=[[s.iX-2*Z,s.iY+2*Z],[s.iX-2*Z,s.iY-Z],[s.iX-Z,s.iY-Z],[s.iX-Z,s.iY+2*Z],[s.iX-2*Z,s.iY+2*Z],[s.iX-2*Z,s.iY+2*Z-Z],null,[s.iX-Z/2,s.iY+2*Z],[s.iX-Z/2,s.iY],[s.iX+Z/2,s.iY],[s.iX+Z/2,s.iY+2*Z],[s.iX-Z/2,s.iY+2*Z],[s.iX-Z/2,s.iY+2*Z-Z],null,[s.iX+2*Z,s.iY+2*Z],[s.iX+2*Z,s.iY-2*Z],[s.iX+Z,s.iY-2*Z],[s.iX+Z,s.iY+2*Z],[s.iX+2*Z,s.iY+2*Z],[s.iX+2*Z,s.iY+2*Z-Z]];break;case"arrow":Z=2*s.AI;var d=s.AA;s.AA=0;var f=ZC.AO.BK(s.iX,s.iY,Z,d-35),_=ZC.AO.BK(s.iX,s.iY,Z,d+35);s.D=[[s.iX,s.iY],f,null,[s.iX,s.iY],_];break;case"star3":case"star4":case"star5":case"star6":case"star7":case"star8":case"star9":for(s.D=[],Z=2*s.AI,l=360/(a=ZC._i_(s.DQ.replace("star",""))),o=a%2==0?0:-90,r=Z/(a>4?2:7-a),t=0+o;t<360+o;t+=l)s.D.push(ZC.AO.BK(s.iX,s.iY,.75*Z,t),ZC.AO.BK(s.iX,s.iY,.75*r,t+l/2));s.D.push([s.D[0][0],s.D[0][1]]);break;case"rpoly3":case"rpoly4":case"rpoly5":case"rpoly6":case"rpoly7":case"rpoly8":case"rpoly9":for(s.D=[],Z=s.AI,l=360/(a=ZC._i_(s.DQ.replace("rpoly",""))),o=a%2==0?0:-90,null!==ZC._n_(s.o["angle-offset"])&&(o=ZC._i_(s.o["angle-offset"])),t=0+o;t<360+o;t+=l)s.D.push(ZC.AO.BK(s.iX,s.iY,Z,t));s.D.push([s.D[0][0],s.D[0][1]]);break;case"gear3":case"gear4":case"gear5":case"gear6":case"gear7":case"gear8":case"gear9":for(s.D=[],Z=2*s.AI,l=360/(2*(a=ZC._i_(s.DQ.replace("gear","")))),r=.75*Z,t=0+(o=a%2==0?0:-90);t<360+o;t+=2*l){var g=t+l/2;s.D.push(ZC.AO.BK(s.iX,s.iY,.75*Z,g),ZC.AO.BK(s.iX,s.iY,.75*Z,g+l),ZC.AO.BK(s.iX,s.iY,.75*r,g+l+0*l),ZC.AO.BK(s.iX,s.iY,.75*r,g+2*l-0*l))}s.D.push([s.D[0][0],s.D[0][1]]);break;case"hamburger":Z*=2;var v=s.iX,b=s.iY-10;s.D=s.D.concat([[v-Z/2,b-s.KT/2],[v+Z/2,b-s.KT/2],[v+Z/2,b+s.KT/2],[v-Z/2,b+s.KT/2],[v-Z/2,b-s.KT/2],null]),b+=5,s.D=s.D.concat([[v-Z/2,b-s.KT/2],[v+Z/2,b-s.KT/2],[v+Z/2,b+s.KT/2],[v-Z/2,b+s.KT/2],[v-Z/2,b-s.KT/2],null]),b+=5,s.D=s.D.concat([[v-Z/2,b-s.KT/2],[v+Z/2,b-s.KT/2],[v+Z/2,b+s.KT/2],[v-Z/2,b+s.KT/2],[v-Z/2,b-s.KT/2],null]);break;case"ellipse":for(s.CZ=!1,s.D=[],t=0;t<=360;t+=5)s.D.push([s.iX+s.AI*ZC.EF(t),s.iY+s.KT*ZC.EO(t)]);s.D.push([s.D[0][0],s.D[0][1]]);break;case"arc":s.CZ=!1,s.D=[ZC.AO.BK(s.iX,s.iY,s.AI,s.B3),[s.iX,s.iY,s.AI,s.B3,s.BI,0]];break;case"pie":for(var m=(s.o["pie-transform"]||"").split(/=|,/);s.B3<0||s.BI<0;)s.B3+=360,s.BI+=360;s.CZ=!1;var B=!1;-1!==ZC.AV(["svg","vml"],s.H.AC)&&s.B3%360==s.BI%360&&(s.B3+=.05,s.BI-=.05,B=!0);var E,K,F,D,X,I=s.iX,x=s.iY,y=ZC._x_(s.B3,2),w=ZC._x_(s.BI,2),Y=ZC._x_((y+w)/2,2),M=Z,H=s.CN,L=0===H&&y%360!=w%360&&!B;switch(s.D=[],"circle"!==m[0]&&(0===H?y%360==w%360||B||s.D.push([I,x]):s.D.push(ZC.AO.BK(I,x,H,y))),m[0]){case"flat":case"fold":s.D.push(ZC.AO.BK(I,x,M,y),ZC.AO.BK(I,x,M-("fold"===m[0]?ZC._i_(m[1]):0),w)),L||s.D.push(ZC.AO.BK(I,x,H,w));break;case"callout":s.D.push(ZC.AO.BK(I,x,M,y),[I,x,M,y,w,0]),L||(E=1.5*ZC._i_(m[1])*360/(2*Math.PI*M),s.D.push(ZC.AO.BK(I,x,M,w),ZC.AO.BK(I,x,H,w),[I,x,H,w,Y+E,1],ZC.AO.BK(I,x,H-ZC._i_(m[1]),Y),ZC.AO.BK(I,x,H,Y-E),[I,x,H,Y-E,y,1]));break;case"flow":E=ZC._i_(m[1]),D=ZC.AO.BK(I,x,(H+M)/2,y),99===E||-99===E?s.D.push([D[0],D[1],(M-H)/2,y+180,y,99===E?1:0]):s.D.push(ZC.AO.BK(I,x,(H+M)/2,y+E)),s.D.push(ZC.AO.BK(I,x,M,y),[I,x,M,y,w,0]),X=ZC.AO.BK(I,x,(H+M)/2,w),L?99===E||-99===E?s.D.push(ZC.AO.BK(I,x,M,w),[X[0],X[1],(M-H)/2,w,w+180,99===E?0:1]):s.D.push(ZC.AO.BK(I,x,(H+M)/2,w+E)):(99===E||-99===E?s.D.push([X[0],X[1],(M-H)/2,w,w+180,99===E?0:1]):s.D.push(ZC.AO.BK(I,x,(H+M)/2,w+E)),s.D.push(ZC.AO.BK(I,x,H,w),[I,x,H,w,y,1]));break;case"circle":var P=ZC._f_(m[1]||"1"),N=(5+ZC._a_(w-y)%360*50/360)*P;F=w%360==y%360||B?[I,x]:ZC.AO.BK(I,x,(M+H)/2,(y+w)/2),s.D.push(ZC.AO.BK(F[0],F[1],N,0),[F[0],F[1],N,0,360,0]);break;case"bite":E=ZC._i_(m[1]),K=ZC._i_(2*M*ZC.EO(E/2)),F=ZC.AO.BK(I,x,M,y),s.D.push(ZC.AO.BK(I,x,M-K,y),[F[0],F[1],K,y+180,y+90+(90-(180-E)/2),1],[I,x,M,y+E,w,0]),L||s.D.push(ZC.AO.BK(I,x,H,w),[I,x,H,w,y,1]);break;case"droplet":for(var O=M,k=1,Q=0;M*k+Q>=O;)k=ZC._x_(k-.02,2),K=ZC._i_(M*k/ZC.EF((w-y)/2)),Q=ZC._i_(M*k*Math.tan(ZC.SZ((w-y)/2)));F=ZC.AO.BK(I,x,K,Y),s.D.push(ZC.AO.BK(I,x,M*k,y),[F[0],F[1],Q,Y-(360-(180-(w-y)))/2,Y+(360-(180-(w-y)))/2,0]),L||s.D.push(ZC.AO.BK(I,x,H,w),[I,x,H,w,y,1]);break;default:s.D.push(ZC.AO.BK(I,x,M,y),[I,x,M,y,w,0]),0===H?y%360==w%360||B||s.D.push([I,x]):s.D.push(ZC.AO.BK(I,x,M,w),ZC.AO.BK(I,x,H,w),[I,x,H,w,y,1])}s.D.push([s.D[0][0],s.D[0][1]])}}s.locate(2)},paint:function(){var e=this;if("none"!==e.DQ&&("custom"===e.DQ||"circle"===e.DQ||"arc"===e.DQ||0!==e.D.length)){var i,t,n={x:"iX",y:"iY",width:"I",height:"F",size:"AI"};if(e.o["bottom-state"]&&!e.Y3&&!e.VV&&!e.bIsBottom){var a=new ZC.DW(e.A);a.copy(e),a.bIsBottom=!0,a.M4=!1,a.Z=e.Z,a.append({x:e.iX-e.A.iX,y:e.iY-e.A.iY}),a.append(e.o["bottom-state"]),a.K=e.K+"-bottom",a.parse(),t=!1;for(i in n)null===ZC._n_(a.o[i])||-1===(""+a.o[i]).indexOf("+")&&-1===(""+a.o[i]).indexOf("-")||(a.o[i]=a[n[i]]=e[n[i]]+ZC._i_(a.o[i]),t=!0);t&&a.parse(),a.paint()}var l=e.H.AC;switch(e.M4&&e.C6&&e.A9U(),l){case"canvas":e.A1D();break;case"svg":e.W6();break;case"vml":e.W5()}if(e.o["top-state"]&&!e.Y3&&!e.VV&&!e.bIsBottom){var o=new ZC.DW(e.A);o.copy(e),o.VV=!0,o.M4=!1,o.Z=e.Z,o.append({x:e.iX-e.A.iX,y:e.iY-e.A.iY}),o.append(e.o["top-state"]),o.K=e.K+"-top",o.parse(),t=!1;for(i in n)null===ZC._n_(o.o[i])||-1===(""+o.o[i]).indexOf("+")&&-1===(""+o.o[i]).indexOf("-")||(o.o[i]=o[n[i]]=e[n[i]]+ZC._i_(o.o[i]),t=!0);t&&o.parse(),o.paint()}}},A9U:function(){var e,i=this,t=new ZC.DW(i.A);t.K=i.K+"-sh",t.copy(i),t.O3=i.O3,t.Z=i.C6,t.M4=!1,t.Y3=!0,t.A0=t.AE=t.RQ,t.GQ=t.HJ="",t.D9="",t.G9="solid",t.BV=t.RQ,t.B0=0,t.C5=t.SU*i.C5,t.K=i.K+"-sh";var n=(i.JP-i.P1)*ZC.EF(i.OE)+i.P1,a=(i.JP-i.P1)*ZC.EO(i.OE)+i.P1;if(t.iX=i.iX+parseInt(n,10),t.iY=i.iY+parseInt(a,10),t.AI=i.AI+i.P1,i.D.length>0){e=[];for(var l=0,o=i.D.length;l<o;l++)if(null!==i.D[l]){for(var r=[],s=0;s<i.D[l].length;s++)r[s]=i.D[l][s];r[0]=i.D[l][0]+parseInt(n,10),r[1]=i.D[l][1]+parseInt(a,10),e.push(r)}else e.push(null)}t.D1=[i.D1[0]+n,i.D1[1]+a,i.D1[2]+n,i.D1[3]+a],t.D=e,t.paint()},A1N:function(){var e=this;return{lc:"-1"===e.B9?"rgba(255,255,255,0)":1===e.C5?e.B9:ZC.AP.A2M(ZC.AP.G5(e.B9),e.C5),bc:"-1"===e.BV?"rgba(255,255,255,0)":1===e.NQ?e.BV:ZC.AP.A2M(ZC.AP.G5(e.BV),e.NQ),bgc1:"-1"===e.A0?"rgba(255,255,255,0)":1===e.C5?e.A0:ZC.AP.A2M(ZC.AP.G5(e.A0),e.C5),bgc2:"-1"===e.AE?"rgba(255,255,255,0)":1===e.C5?e.AE:ZC.AP.A2M(ZC.AP.G5(e.AE),e.C5)}},Y6:function(e){var i,t,n,a=this;switch(a.DQ){case"circle":case"arc":case"pie":i=a.iX,t=a.iY,n=a.AI;break;default:i=a.D1[0]+(a.D1[2]-a.D1[0])/2,t=a.D1[1]+(a.D1[3]-a.D1[1])/2,n=ZC._a_(ZC.EF(a.N8)*(a.D1[2]-a.D1[0])/2+ZC.EO(a.N8)*(a.D1[3]-a.D1[1])/2)}ZC.P4(i)||(i=0),ZC.P4(t)||(t=0),ZC.P4(n)||(n=0);var l=a.W4,o=a.W2;if(ZC._a_(l)<=1&&(l=l*(a.D1[2]-a.D1[0])/2),ZC._a_(o)<=1&&(o=o*(a.D1[3]-a.D1[1])/2),i+=l,t+=o,"radial"===e)return{cx:i,cy:t,r:ZC._a_(n)};if("linear"===e){var r=n*ZC.EF(a.N8),s=n*ZC.EO(a.N8),A=i-r,C=t-s,c=i+r,u=t+s;return ZC._i_(C)===ZC._i_(u)&&ZC._a_(c-A)<5&&(u+=1),ZC._i_(A)===ZC._i_(c)&&ZC._a_(u-C)<5&&(c+=1),{x1:A,y1:C,x2:c,y2:u}}},RA:function(){var e,i=this;ZC.cache.data[i.D9]?e=ZC.cache.data[i.D9]:((e=new Image).src=i.D9,ZC.cache.data[i.D9]=e),1!==i.KL&&(e._width_?(e.width=e._width_,e.height=e._height_):(e._width_=e.width,e._height_=e.height));var t,n;switch(t=e.width*i.KL,n=e.height*i.KL,i.WE){case"x":t=i.I;break;case"y":n=i.F;break;case"xy":case"both":t=i.I,n=i.F}var a,l,o,r,s=i.T4.split(" "),A=s[0]||"",C=0,c=0;switch(A){case"":case"left":a=0,C=0;break;case"center":a=(i.I-t)/2,C=.5;break;case"right":a=i.I-t,C=1;break;default:-1!==A.indexOf("%")?(C=ZC._i_(A.replace(/[^0-9\-]/g,""))/100,a=(i.I-t)*C):(C=ZC._i_(A.replace(/[^0-9\-]/g,""))/i.I,a=ZC._i_(A.replace(/[^0-9\-]/g,"")))}o=a/i.I,"undefined"!=typeof i.KP?a+=i.iX+i.BJ:a+=i.D1[0]+i.BJ;var u=s[1]||"";switch(u){case"":case"top":l=0,c=0;break;case"middle":l=(i.F-n)/2,c=.5;break;case"bottom":l=i.F-n,c=1;break;default:-1!==u.indexOf("%")?(c=ZC._i_(u.replace(/[^0-9\-]/g,""))/100,l=(i.F-n)*c):(c=ZC._i_(u.replace(/[^0-9\-]/g,""))/i.F,l=ZC._i_(u.replace(/[^0-9\-]/g,"")))}if(r=l/i.F,"undefined"!=typeof i.KP?l+=i.iY+i.BH:l+=i.D1[1]+i.BH,"pie"===i.DQ){var p=i.AA+i.B3+(i.BI-i.B3)*C,Z=ZC.AO.BK(i.iX,i.iY,i.CN+(i.AI-i.CN)*c,p);a=Z[0]-e.width/2,l=Z[1]-e.height/2}return i.E["bg-image-width"]=t,i.E["bg-image-height"]=n,{image:e,x:ZC._i_(a)+.5,y:ZC._i_(l)+.5,cx:ZC._f_(o),cy:ZC._f_(r),hPos:C,vPos:c}},ZB:function(e){for(var i=this,t=i.GQ.split(/\s+|;/),n=i.HJ.split(/\s+|;/),a=0,l=t.length;a<l;a++){var o=ZC.AP.G5(t[a],i);"object"!=typeof o&&(o=[o,i.C5]);var r=ZC.AP.A2M(o[0],o[1]),s=ZC._f_(n[a]||"1");ZC.DT(s,0,1)||(s=1),e.addColorStop(s,r)}},A1D:function(){var e,i,t,n,a,l,o,r,s=this,A=s.Z.getContext("2d");A.save(),"poly"===s.DQ||"line"===s.DQ?(i=s.D1[0]+(s.D1[2]-s.D1[0])/2,t=s.D1[1]+(s.D1[3]-s.D1[1])/2):(i=s.iX,t=s.iY);var C=s.A1N(),c=C.lc,u=C.bc,p=C.bgc1,Z=C.bgc2;if(p!==Z||""!==s.GQ&&""!==s.HJ){var h=s.Y6(s.NE);"radial"===s.NE?n=A.createRadialGradient(h.cx,h.cy,1,h.cx,h.cy,h.r):"linear"===s.NE&&(n=A.createLinearGradient(h.x1,h.y1,h.x2,h.y2)),""!==s.GQ&&""!==s.HJ?s.ZB(n):(n.addColorStop(0,p),n.addColorStop(1,Z)),A.fillStyle=n}else""!==s.D9&&-1!==ZC.AV(["repeat","true",!0],s.LZ)&&"-1"===s.A0&&"-1"===s.AE&&(p="rgba(255,255,255,0)"),A.fillStyle=p;switch(s.DQ){case"custom":if((e=s.o.url)&&(ZC.cache.data[e]?a=ZC.cache.data[e]:((a=new Image).src=e,ZC.cache.data[e]=a),a.width=s.o.width?s.o.width:a.width,a.height=s.o.height?s.o.height:a.height,A.drawImage(a,s.iX-a.width/2+s.BJ,s.iY-a.height/2+s.BH,a.width,a.height),0===p.indexOf("#")&&7===p.length)){for(var d=parseInt(p.substring(1,3),16),f=parseInt(p.substring(3,5),16),_=parseInt(p.substring(5,7),16),g=A.getImageData(s.iX-a.width/2+s.BJ,s.iY-a.height/2+s.BH,a.width,a.height),v=0;v<g.data.length;v+=4)g.data[v]=d|g.data[v],g.data[v+1]=f|g.data[v+1],g.data[v+2]=_|g.data[v+2];A.putImageData(g,s.iX-a.width/2+s.BJ,s.iY-a.height/2+s.BH)}break;case"plus":case"cross":case"line":case"ic_line":case"arc":A.strokeStyle=c,A.lineWidth=s.B0;break;default:A.strokeStyle=u,A.lineWidth=s.AT}0!==s.AA&&(A.translate(i,t),isNaN(s.AA)||A.rotate(ZC.SZ(s.AA)),A.translate(-i,-t));var b=-1===ZC.AV(["cross","plus","arc","line","ic_line"],s.DQ);switch(isNaN(s.BJ)||isNaN(s.BH)||0===s.BJ&&0===s.BH||!b&&"arc"!==s.DQ||A.translate(s.BJ,s.BH),A.beginPath(),s.DQ){case"circle":case"arc":A.setLineDash&&"circle"===s.DQ&&(s.KV(s.AT),A.setLineDash(0===s.EX||0===s.G6?[]:[s.EX,s.G6])),A.arc(s.iX,s.iY,s.AI,ZC.SZ(s.B3),ZC.SZ(s.BI),!1);break;case"line":break;default:-1!==ZC.AV(["square","plus"],s.DQ)&&(s.MZ=!0),ZC.CS.contour(A,s,s.D),-1!==ZC.AV(["square","plus"],s.DQ)&&(s.MZ=!1)}if(A.globalCompositeOperation=s.A0M,b)if(""!==s.D9&&-1===ZC.AV(ZC.IMG404,s.D9)){A.fill(),A.save(),A.clip();var m;m=A.globalAlpha,A.globalAlpha=s.C5;var B=s.RA();switch(a=B.image,s.LZ){case"repeat":case!0:case"true":l=s.D1[0]-(a.width-(s.D1[2]-s.D1[0]))/2,o=s.D1[1]-(a.height-(s.D1[3]-s.D1[1]))/2,A.translate(l,o),r=A.createPattern(a,"repeat"),A.fillStyle=r,A.fill(),A.translate(-l,-o);break;case"no-repeat":case!1:case"false":A.drawImage(a,B.x-s.BJ,B.y-s.BH,s.E["bg-image-width"],s.E["bg-image-height"])}A.globalAlpha=m,A.restore()}else A.fill();switch(A.closePath(),A.beginPath(),s.DQ){case"circle":case"arc":A.arc(s.iX,s.iY,s.AI,ZC.SZ(s.B3),ZC.SZ(s.BI),!1),("circle"===s.DQ&&s.AT>0||"arc"===s.DQ&&s.B0>0)&&A.stroke(),A.closePath();break;case"plus":case"cross":case"line":case"ic_line":s.B0>0&&(ZC.CS.setup(A,s),s.o.spline?(s.CZ=!1,s.QJ=!0,ZC.CS.paint(A,s,ZC.CS.smooth(s.D,!1,s.o.direction||"h"))):ZC.CS.paint(A,s,s.D));break;default:if(s.AT>0){var E=s.B9,K=s.B0;s.B9=s.BV,s.B0=s.AT,s.KV(),ZC.CS.setup(A,s),ZC.CS.paint(A,s,s.D,!0),s.B9=E,s.B0=K,s.KV()}A.closePath()}A.restore()},A28:function(e){var i=this,t=e.info,n=t.image,a=!0;switch(i.LZ){default:a=!0;break;case"no-repeat":case"false":case!1:a=!1}var l=i.D9;0===n.src.indexOf("data:")&&(l=n.src),n.width*=i.KL,n.height*=i.KL;var o=""===i.K?"pattern-"+ZC.SEQ++:i.K+"-pattern";ZC.Q.EU(o);var r=ZC.Q.F4("image","http://www.w3.org/2000/svg");r.setAttributeNS?r.setAttributeNS("http://www.w3.org/1999/xlink","href",l):r.setAttribute("src",l),ZC.Q.G2(r,{id:o+"-image",preserveAspectRatio:"none",width:i.E["bg-image-width"],height:i.E["bg-image-height"]});var s=n.width,A=n.height;if(!a){s=A=1;var C,c;i.I>0&&i.F>0?(C=i.I,c=i.F):(C=i.D1[2]-i.D1[0],c=i.D1[3]-i.D1[1]);var u=ZC._i_(C*t.cx),p=ZC._i_(c*t.cy);if("pie"===i.DQ){s=i.H?i.H.I:i.A.I,A=i.H?i.H.F:i.A.F;var Z=i.AA+i.B3+(i.BI-i.B3)*t.hPos,h=ZC.AO.BK(i.iX,i.iY,i.CN+(i.AI-i.CN)*t.vPos,Z);u=h[0]-n.width/2,p=h[1]-n.height/2}i.E["pattern-image-id"]=o+"-image",i.E["pattern-tx"]=u,i.E["pattern-ty"]=p,ZC.Q.G2(r,{transform:"translate("+u+","+p+")"})}var d=ZC.Q.F4("pattern","http://www.w3.org/2000/svg");ZC.Q.G2(d,{x:a?e.x:0,y:a?e.y:0,width:s,height:A,id:o,patternUnits:a||"pie"===i.DQ?"userSpaceOnUse":"objectBoundingBox"}),i.H.K7.childNodes[0].appendChild(d),d.appendChild(r),i.E.imgfill="url(#"+o+")"},WP:function(e){null!==e&&void 0!==e||(e=!1);var i,t,n=this;if(n.A0!==n.AE||""!==n.GQ&&""!==n.HJ){var a=""===n.K?"gradient-"+ZC.SEQ++:n.K+"-gradient";(n.TL||e&&!ZC.AK(a))&&(e=!1),ZC.A4.browser.msie&&9===ZC._i_(ZC.A4.browser.version)&&(e=!1),ZC.AK(a)&&!e&&ZC.Q.EU(a);var l=n.Y6(n.NE);if("radial"===n.NE?(i=e?ZC.AK(a):ZC.Q.F4("radialGradient","http://www.w3.org/2000/svg"),ZC.Q.G2(i,{cx:ZC._i_(l.cx),cy:ZC._i_(l.cy),r:ZC._i_(l.r),fx:ZC._i_(l.cx),fy:ZC._i_(l.cy)})):"linear"===n.NE&&(i=e?ZC.AK(a):ZC.Q.F4("linearGradient","http://www.w3.org/2000/svg"),ZC.Q.G2(i,{x1:ZC._i_(l.x1),x2:ZC._i_(l.x2),y1:ZC._i_(l.y1),y2:ZC._i_(l.y2)})),!e){if(ZC.Q.G2(i,{id:a,gradientUnits:"userSpaceOnUse"}),n.H.K7.childNodes[0].appendChild(i),""!==n.GQ&&""!==n.HJ)for(var o=n.GQ.split(/\s+|;/),r=n.HJ.split(/\s+|;/),s=0,A=o.length;s<A;s++){var C=ZC.AP.G5(o[s],n);"object"!=typeof C&&(C=[C,n.C5]),o[s]=C[0];var c=r[s]||1;ZC.DT(c,0,1)||(c=1);var u=C[1];t=o[s],"-1"===o[s]&&(u=0,t="rgb(255,255,255)");var p=ZC.Q.F4("stop","http://www.w3.org/2000/svg");ZC.Q.G2(p,{offset:c,"stop-color":t,"stop-opacity":u}),i.appendChild(p)}else{var Z=1,h=n.A0;"-1"===n.A0&&(Z=0,h="rgb(255,255,255)");var d=ZC.Q.F4("stop","http://www.w3.org/2000/svg");ZC.Q.G2(d,{offset:0,"stop-color":h,"stop-opacity":Z});var f=1,_=n.AE;"-1"===n.AE&&(f=0,_="rgb(255,255,255)");var g=ZC.Q.F4("stop","http://www.w3.org/2000/svg");ZC.Q.G2(g,{offset:1,"stop-color":_,"stop-opacity":f}),i.appendChild(d),i.appendChild(g)}n.E.fill="url(#"+a+")"}}else"-1"!==n.A0&&(n.E.fill=n.A0)},A3L:function(){var e=this;if("object"==typeof e.E.imgfill&&"undefined"!=typeof e.H&&e.H){var i=e.A4V()[1].split(",");if("circle"===e.DQ)e.H.K7.appendChild(ZC.Q.XA({id:e.K+"_image-clip",cx:i[0],cy:i[1],r:i[2]})),e.E["clip-path"]=e.K+"_image-clip";else if(i.length>6){for(var t="",n=0,a=i.length;n<a;n+=2)t+=ZC._i_(i[n])+ZC._i_(e.BJ)+","+(ZC._i_(i[n+1])+ZC._i_(e.BH))+" ";e.H.K7.appendChild(ZC.Q.XA({id:e.K+"_image-clip",path:t})),e.E["clip-path"]=e.K+"_image-clip"}}},W6:function(){var e,i,t,n,a,l,o=this,r=o.Z;if("poly"===o.DQ||"line"===o.DQ?(i=o.D1[0]+(o.D1[2]-o.D1[0])/2,t=o.D1[1]+(o.D1[3]-o.D1[1])/2):(i=o.iX,t=o.iY),o.E.cx=i,o.E.cy=t,o.E.fill=-1,""!==o.D9){var s=o.RA();o.A28({info:s,x:i-s.image.width/2,y:t-s.image.height/2})}switch(o.VC&&o.A3L(),o.WP(),o.DQ){case"custom":if(e=o.o.url){var A,C=!1;ZC.cache.data[e]?n=ZC.cache.data[e]:((n=new Image).src=e,ZC.cache.data[e]=n),(C=e.indexOf(".svg")>0&&e.indexOf("#")>=0)?(A=ZC.Q.F4("svg","http://www.w3.org/2000/svg"),ZC.Q.G2(A,{viewBox:"0 0 8 8",fill:o.E.fill}),l=ZC.Q.F4("use","http://www.w3.org/2000/svg")):l=ZC.Q.F4("image","http://www.w3.org/2000/svg"),l.setAttributeNS?l.setAttributeNS("http://www.w3.org/1999/xlink","href",e):l.setAttribute("src",e);var c=o.o.width?o.o.width:n.width,u=o.o.height?o.o.height:n.height;n.width=c,n.height=u,C?ZC.Q.G2(A,{id:o.K+"-image",x:o.iX-n.width/2+o.BJ,y:o.iY-n.height/2+o.BH,width:n.width,height:n.height}):ZC.Q.G2(l,{id:o.K+"-image",x:o.iX-n.width/2+o.BJ,y:o.iY-n.height/2+o.BH,width:n.width,height:n.height}),C?(A.appendChild(l),r.appendChild(A)):r.appendChild(l)}break;case"circle":if(!ZC.AK(o.K+"-circle")&&(a=ZC.Q.F4("circle","http://www.w3.org/2000/svg"),-1!==o.E.fill?ZC.Q.G2(a,{fill:o.E.fill,"fill-opacity":o.C5}):ZC.Q.G2(a,{fill:"none"}),o.DI&&""!==o.DI&&ZC.Q.G2(a,{"class":o.DI}),ZC.Q.G2(a,{id:o.K+"-circle",cx:o.iX+o.BJ,cy:o.iY+o.BH,r:o.AI}),o.AT>0&&(ZC.Q.G2(a,{stroke:o.BV,"stroke-width":o.AT,"stroke-opacity":o.NQ}),o.KV(o.AT),"solid"===o.G9||0===o.EX&&0===o.G6||ZC.Q.G2(a,{"stroke-dasharray":"dashdot"===o.G9?[o.EX,o.G6,o.B0,o.G6].join(" "):[o.EX,o.G6].join(",")})),o.H&&o.H.FY?(o.H.FY[r.id]||(o.H.FY[r.id]=document.createDocumentFragment()),o.H.FY[r.id].appendChild(a)):r.appendChild(a),"undefined"!=typeof o.E.imgfill))if("string"==typeof o.E.imgfill)a=ZC.Q.F4("circle","http://www.w3.org/2000/svg"),ZC.Q.G2(a,{id:o.K+"-imgfill",fill:o.E.imgfill,"fill-opacity":o.C5,cx:o.iX+o.BJ,cy:o.iY+o.BH,r:o.AI,"stroke-width":0}),o.H&&o.H.FY?o.H.FY[r.id].appendChild(a):r.appendChild(a);else{var p=o.E.imgfill;(l=ZC.Q.F4("image","http://www.w3.org/2000/svg")).setAttributeNS&&l.setAttributeNS("http://www.w3.org/1999/xlink","href",o.D9),o.E["clip-path"]&&ZC.Q.G2(l,{"clip-path":"url(#"+o.E["clip-path"]+(ZC.A4.browser.webkit?"-shape":"")+")"}),ZC.Q.G2(l,{id:o.K+"-imgfill",x:p[1],y:p[2],width:p[0].width,height:p[0].height}),r.appendChild(l)}break;case"plus":case"cross":case"line":case"ic_line":case"arc":o.B0>0&&(ZC.CS.setup(r,o),o.o.spline?(o.CZ=!1,o.QJ=!0,ZC.CS.paint(r,o,ZC.CS.smooth(o.D,!1,o.o.direction||"h"))):ZC.CS.paint(r,o,o.D));break;default:var Z=o.B9,h=o.B0;o.B9=o.BV,o.B0=o.AT,o.KV(),ZC.CS.setup(r,o),ZC.CS.paint(r,o,o.D,!0,0),o.B9=Z,o.B0=h,o.KV()}},WQ:function(e,i){null!==i&&void 0!==i||(i=!1);var t,n=this;if(n.A0!==n.AE||""!==n.GQ&&""!==n.HJ){var a=""===n.K?"gradient-"+ZC.SEQ++:n.K+"-gradient";if(i&&!ZC.AK(a)&&(i=!1),ZC.AK(a)&&!i&&ZC.A4(a).remove(),t=i?ZC.AK(a):ZC.Q.F4("zcv:fill"),i&&(e=ZC.A4("#"+a).attr("focusposition")),""!==n.GQ&&""!==n.HJ){for(var l=n.GQ.split(/\s+|;/),o=n.HJ.split(/\s+|;/),r="",s="",A="",C=0,c=l.length;C<c;C++){l[C]=ZC.AP.G5(l[C]);var u="-1"===l[C]?"rgb(255,255,255)":l[C],p=o[C]||1;ZC.DT(p,0,1)||(p=1);var Z=ZC._i_(100*p);0===C?r=u:C===c-1?s=u:A+=Z+"% "+ZC.AP.G5(u)+","}""!==A&&(A=A.substring(0,A.length-1)),"radial"===n.NE?ZC.Q.G2(t,{id:a,type:"gradientradial",focusposition:e,color:r,color2:s,colors:A}):"linear"===n.NE&&ZC.Q.G2(t,{id:a,type:"gradient",method:"sigma",angle:270-n.N8-n.AA,color:r,color2:s,colors:A})}else{var h=n.A0;"-1"===n.A0&&(h="rgb(255,255,255)");var d=n.AE;"-1"===n.AE&&(d="rgb(255,255,255)"),"radial"===n.NE?ZC.Q.G2(t,{id:a,type:"gradientradial",focusposition:e,color:d,color2:h}):"linear"===n.NE&&ZC.Q.G2(t,{id:a,type:"gradient",method:"sigma",angle:270-n.N8-n.AA,color:h,color2:d})}var f="undefined"!=typeof n.E.opacity2?n.E.opacity2:n.C5;ZC.Q.G2(t,{opacity:n.C5,"o:opacity2":f}),n.E.fill=t}else t=ZC.Q.F4("zcv:fill"),"-1"!==n.A0&&(ZC.Q.G2(t,{type:"solid",color:n.A0,opacity:n.C5}),n.E.fill=t)},W5:function(){var e,i,t,n,a,l,o=this,r=o.Z;"poly"===o.DQ||"line"===o.DQ?(i=o.D1[0]+(o.D1[2]-o.D1[0])/2,t=o.D1[1]+(o.D1[3]-o.D1[1])/2):(i=o.iX,t=o.iY),o.E.cx=i,o.E.cy=t,o.E.fill=-1;var s=-1===ZC.AV(["cross","plus","arc","line","ic_line"],o.DQ),A=ZC.Q.F4("zcv:fill");if(""!==o.D9){var C=o.RA();switch(n=C.image,o.LZ){default:A.type="tile",A.src=o.D9,ZC.Q.G2(A,{position:C.cx+","+C.cy,opacity:o.C5,"o:opacity2":o.C5}),o.E.imgfill=[A];break;case"no-repeat":case"false":case!1:o.E.imgfill=[n,C.x,C.y]}}o.WQ("0,0");var c=ZC.Q.F4("zcv:stroke");switch(o.DQ){case"custom":(e=o.o.url)&&(ZC.cache.data[e]?n=ZC.cache.data[e]:((n=new Image).src=e,ZC.cache.data[e]=n),(l=ZC.Q.F4("img")).id=o.K+"-img",l.src=e,l.style.position="absolute",1!==o.KL&&(l.width*=o.KL,l.height*=o.KL,l.style.width=l.width+"px",l.style.height=l.height+"px"),l.style.left=o.iX-n.width/2+o.BJ+"px",l.style.top=o.iY-n.height/2+o.BH+"px",r.appendChild(l));break;case"plus":case"cross":case"line":case"ic_line":case"arc":c.weight=o.B0+"px",c.color=o.B9;break;default:c.weight=o.AT+"px",c.color=o.BV}switch(c.opacity=o.NQ,o.G9){case"solid":c.dashstyle="solid";break;case"dotted":c.dashstyle="dot";break;case"dashed":c.dashstyle="dash"}switch(-1===ZC.AV(["plus","cross","line","ic_line"],o.DQ)&&(o.E.stroke=c),o.DQ){case"circle":case"arc":if(!ZC.AK(o.K+"-circle")&&(a=ZC.Q.F4("circle"===o.DQ?"zcv:oval":"zcv:arc"),a.id=o.K+"-circle",a.style.position="absolute",-1!==o.E.fill&&s?a.appendChild(o.E.fill):a.filled=!1,o.AT>0||o.B0>0?a.appendChild(c):a.stroked=!1,a.style.left=o.iX+o.BJ-o.AI+"px",a.style.top=o.iY+o.BH-o.AI+"px",a.style.width=2*o.AI+"px",a.style.height=2*o.AI+"px","arc"===o.DQ&&ZC.Q.G2(a,{startangle:o.BI+90,endangle:o.B3+90}),r.appendChild(a),s&&"undefined"!=typeof o.E.imgfill)){var u=o.E.imgfill;1===u.length?((a=ZC.Q.F4("zcv:oval")).id=o.K+"-imgfill",a.style.position="absolute",r.appendChild(a),a.appendChild(u[0]),a.style.left=o.iX+o.BJ-o.AI+"px",a.style.top=o.iY+o.BH-o.AI+"px",a.style.width=2*o.AI+"px",a.style.height=2*o.AI+"px",a.stroked=!1,"arc"===o.DQ&&ZC.Q.G2(a,{startangle:o.BI+90,endangle:o.B3+90})):3===u.length&&((l=ZC.Q.F4("img")).id=o.K+"-img",l.src=o.D9,l.style.position="absolute",l.style.left=u[1]+"px",l.style.top=u[2]+"px",1!==o.KL&&(l.width*=o.KL,l.height*=o.KL,l.style.width=l.width+"px",l.style.height=l.height+"px"),r.appendChild(l))}break;case"plus":case"cross":case"line":case"ic_line":o.B0>0&&(ZC.CS.setup(r,o),o.o.spline?(o.CZ=!1,o.QJ=!0,ZC.CS.paint(r,o,ZC.CS.smooth(o.D,!1,o.o.direction||"h"))):ZC.CS.paint(r,o,o.D));break;default:var p=o.B9,Z=o.B0;o.B9=o.BV,o.B0=o.AT,o.KV(),ZC.CS.setup(r,o),ZC.CS.paint(r,o,o.D,!0,0),o.B9=p,o.B0=Z,o.KV()}}}),ZC.HS=ZC.DW.C7({$i:function(e){this.b(e);var i=this;i.DQ="box",i.I=0,i.F=0,i.A8C="",i.E5=-1,i.E6=-1,i.DP=-1,i.DV=-1,i.F5=0,i.FQ=0,i.F2=0,i.FA=0,i.A75=!1,i.KP=!1,i.ES="bottom",i.EV=0,i.M1=0,i.H6=8,i.G3=8,i.XD=[1,1],i.DM=null,i.OF=null,i.PR=!1,i.MZ=!0,i.PQ="",i.OC="",i.NL="",i.P6="",i.WG="tl",i.F9=!1},getPMap:function(){var e=this.b();return this.addPMap(e,"width,height,borderRadiusTopLeft,borderRadiusTopRight,borderRadiusBottomRight,borderRadiusBottomLeft,callout,calloutType,calloutPosition,calloutHook,calloutWidth,calloutHeight,calloutOffset,calloutExtension,position,borderTop,borderRight,borderBottom,borderLeft,rectShortcut","I,F,F5,FQ,F2,FA,KP,ES,DM,H6,G3,EV,M1,A8C,PQ,OC,NL,P6,F9"),e},build:function(){},wh_:function(e,i,t){var n=this;if(i=i||"w",ZC._f_(e)+""!=e+"")return-1!==(e+="").indexOf("%")?n.wh_(ZC._f_(e.replace("%",""))/100,i,!0):-1!==e.indexOf("px")?n.wh_(ZC._f_(e.replace("px","")),i):n.wh_(ZC._f_(e),i);var a="undefined"!=typeof n.E["p-width"]?n.E["p-width"]:n.A.I,l="undefined"!=typeof n.E["p-height"]?n.E["p-height"]:n.A.F;return(e=ZC._a_(e))>1&&!t?ZC._i_(e):e<=1||t?"w"===i?ZC._i_(a*e):ZC._i_(l*e):void 0},m_:function(e,i,t,n,a){var l,o,r=this;if(t=t||0,n=n||0,i=i||"all",a=a||"n","all"===i){var s=String(e).split(/\s+|;|,/);return 1===s.length?[r.m_(s[0],"tb",t,n,a),r.m_(s[0],"lr",t,n,a),r.m_(s[0],"tb",t,n,a),r.m_(s[0],"lr",t,n,a)]:2===s.length?[r.m_(s[0],"tb",t,n,a),r.m_(s[1],"lr",t,n,a),r.m_(s[0],"tb",t,n,a),r.m_(s[1],"lr",t,n,a)]:3===s.length?[r.m_(s[0],"tb",t,n,a),r.m_(s[1],"lr",t,n,a),r.m_(s[2],"tb",t,n,a),r.m_(s[1],"lr",t,n,a)]:[r.m_(s[0],"tb",t,n,a),r.m_(s[1],"lr",t,n,a),r.m_(s[2],"tb",t,n,a),r.m_(s[3],"lr",t,n,a)]}return e+""=="auto"?-2:e+""=="dynamic"&&"y"===a?"dynamic":ZC._f_(e)+""!=e+""?-1!==(e+="").indexOf("%")?r.m_(ZC._f_(e.replace("%",""))/100,i):-1!==e.indexOf("px")?r.m_(ZC._f_(e.replace("px","")),i):r.m_(ZC._f_(e),i):((r.A||"undefined"!=typeof r.E["p-width"])&&(l="undefined"!=typeof r.E["p-width"]?r.E["p-width"]:r.A.I),(r.A||"undefined"!=typeof r.E["p-height"])&&(o="undefined"!=typeof r.E["p-height"]?r.E["p-height"]:r.A.F),(e=ZC._a_(e))>=1?ZC._i_(e):e<1?"lr"===i?ZC._i_((r.A?l:t)*e):ZC._i_((r.A?o:n)*e):void 0)},copy:function(e){this.b(e);for(var i=this,t="I,F,E5,DP,DV,E6,F5,FQ,F2,FA,KP,ES,DM,XD,H6,G3,EV,M1,A8C,PQ,OC,NL,P6,F9".split(","),n=0,a=t.length;n<a;n++)"undefined"!=typeof e[t[n]]&&(i[t[n]]=e[t[n]])},locate:function(e){var i,t,n,a,l,o=this;if(2!==(e=e||1))if(o.TL)o.assign_a([["x","iX"],["y","iY"],["width","I"],["height","F"]]);else{var r="undefined"!=typeof o.E["p-x"]?o.E["p-x"]:o.A.iX,s="undefined"!=typeof o.E["p-y"]?o.E["p-y"]:o.A.iY,A="undefined"!=typeof o.E["p-width"]?o.E["p-width"]:o.A.I,C="undefined"!=typeof o.E["p-height"]?o.E["p-height"]:o.A.F;if(!o.PR){var c=0,u=0,p=0,Z=0;if(null!==ZC._n_(o.o.margin)){var h=""+o.o.margin;if(-1!==h.indexOf("dynamic")){var d=o.m_(h,"all",0,0,"y");"dynamic"===d[0]&&(o.E["d-margin-top"]=o.E["d-margin"]=!0),"dynamic"===d[1]&&(o.E["d-margin-right"]=o.E["d-margin"]=!0),"dynamic"===d[2]&&(o.E["d-margin-bottom"]=o.E["d-margin"]=!0),"dynamic"===d[3]&&(o.E["d-margin-left"]=o.E["d-margin"]=!0),o.o.margin=h.replace(/dynamic/g,"20")}}"dynamic"===o.o.margin&&(o.E["d-margin"]=o.E["d-margin-top"]=o.E["d-margin-right"]=o.E["d-margin-bottom"]=o.E["d-margin-left"]=!0,o.o.margin=null),"undefined"==typeof o.E["force-margins"]||null!==ZC._n_(o.o["adjust-layout"])&&ZC._b_(o.o["adjust-layout"])||(null!==ZC._n_(o.o["margin-top"])&&null===ZC._n_(o.o["margin-bottom"])&&(o.o["margin-bottom"]="auto"),null!==ZC._n_(o.o["margin-bottom"])&&null===ZC._n_(o.o["margin-top"])&&(o.o["margin-top"]="auto"),null!==ZC._n_(o.o["margin-left"])&&null===ZC._n_(o.o["margin-right"])&&(o.o["margin-right"]="auto"),null!==ZC._n_(o.o["margin-right"])&&null===ZC._n_(o.o["margin-left"])&&(o.o["margin-left"]="auto"));for(var f=["margin-top","margin-right","margin-bottom","margin-left"],_=0,g=f.length;_<g;_++)"dynamic"===o.o[f[_]]&&(o.E["d-"+f[_]]=o.E["d-margin"]=!0,o.o[f[_]]=null);null!==(i=ZC._n_(o.o.margin))&&(t=o.m_(i,"all"),null===ZC._n_(o.o["margin-top"])&&(c=t[0]),null===ZC._n_(o.o["margin-right"])&&(u=t[1]),null===ZC._n_(o.o["margin-bottom"])&&(p=t[2]),null===ZC._n_(o.o["margin-left"])&&(Z=t[3])),null!==(i=ZC._n_(o.o["margin-top"]))&&(c=t=o.m_(i,"tb")),null!==(i=ZC._n_(o.o["margin-right"]))&&(u=t=o.m_(i,"lr")),null!==(i=ZC._n_(o.o["margin-bottom"]))&&(p=t=o.m_(i,"tb")),null!==(i=ZC._n_(o.o["margin-left"]))&&(Z=t=o.m_(i,"lr"));var v=[c,u,p,Z];null!==ZC._n_(o.o.x)&&(o.iX=o.xy_(o.o.x,"x")),null!==ZC._n_(o.o.y)&&(o.iY=o.xy_(o.o.y,"y"));var b;if(null!==(i=ZC._n_(o.o.width))){var m=ZC._p_(i);b=-1!==(""+i).indexOf("%"),o.I=m>1&&!b?ZC._i_(m):-2===Z&&-2===u?ZC._i_(A*m):-2===Z&&-2!==u?ZC._i_((A-u)*m):-2!==Z&&-2===u?ZC._i_((A-Z)*m):ZC._i_((A-Z-u)*m),-1!==o.iX?(o.DV=o.iX-r,o.E6=r+A-o.DV-o.I):-2===Z&&-2===u?(o.DV=o.E6=(A-o.I)/2,o.iX=r+o.DV):-2===Z&&-2!==u?(o.E6=u,o.DV=A-o.E6-o.I,o.iX=r+o.DV):(o.DV=Z,o.iX=r+o.DV,o instanceof ZC.DS?o.E6=u:o.E6=A-o.DV-o.I)}else-1!==o.iX?(o.DV=o.iX-r,o.E6=-2===u?0:u,o.I=A-o.DV-o.E6):-2===Z&&-2===u?(o.DV=o.E6=0,o.iX=r+o.DV,o.I=A-o.DV-o.E6):-2===Z&&-2!==u?(o.E6=u,o.DV=0,o.iX=r+o.DV,o.I=A-o.DV-o.E6):-2!==Z&&-2===u?(o.DV=Z,o instanceof ZC.DS?o.E6=u:o.E6=0,o.iX=r+o.DV,o.I=A-o.DV-o.E6):(o.DV=Z,o.E6=u,o.iX=r+o.DV,o.I=A-o.DV-o.E6);if(null!==(i=ZC._n_(o.o.height))){var B=ZC._p_(i);b=-1!==(""+i).indexOf("%"),o.F=B>1&&!b?ZC._i_(B):-2===c&&-2===p?ZC._i_(C*B):-2===c&&-2!==p?ZC._i_((C-p)*B):-2!==c&&-2===p?ZC._i_((C-c)*B):ZC._i_((C-c-p)*B),-1!==o.iY?(o.E5=o.iY-s,o.DP=s+C-o.E5-o.F):-2===c&&-2===p?(o.E5=o.DP=(C-o.F)/2,o.iY=s+o.E5):-2===c&&-2!==p?(o.DP=p,o.E5=C-o.DP-o.F,o.iY=s+o.E5):(o.E5=c,o.iY=s+o.E5,o instanceof ZC.DS?o.DP=p:o.DP=C-o.E5-o.F)}else-1!==o.iY?(o.E5=o.iY-s,o.DP=-2===p?0:p,o.F=C-o.E5-o.DP):-2===c&&-2===c?(o.E5=o.E5=0,o.iY=s+o.E5,o.F=C-o.E5-o.DP):-2===c&&-2!==p?(o.DP=p,o.E5=0,o.iY=s+o.E5,o.F=C-o.E5-o.DP):-2===c&&-2!==p?(o.E5=c,o instanceof ZC.DS?o.DP=p:o.DP=0,o.iY=s+o.E5,o.F=C-o.E5-o.DP):(o.E5=c,o.DP=p,o.iY=s+o.E5,o.F=C-o.E5-o.DP);if(null!==(i=ZC._n_(o.o.position))){if(o.A&&"undefined"!=typeof o.A.iX&&"undefined"!=typeof o.A.iY&&"undefined"!=typeof o.A.I&&"undefined"!=typeof o.A.F){switch(n=0,a=0,(l=String(i).split(/\s+/))[0]){case"left":n=0;break;case"right":n=1;break;case"center":n=.5;break;default:(n=ZC.IG(l[0]))>1&&(n/=o.A.I)}switch(l[1]){case"top":a=0;break;case"bottom":a=1;break;case"middle":a=.5;break;default:(a=ZC.IG(l[1]))>1&&(a/=o.A.F)}}o.E["position-info"]=[n,a],o.iX=o.A.iX+ZC._i_(n*(o.A.I-o.I-v[1]-v[3]))+v[3],o.iY=o.A.iY+ZC._i_(a*(o.A.F-o.F-v[0]-v[2]))+v[0]}o.D1=[o.iX,o.iY,o.iX+o.I,o.iY+o.F]}}},parse:function(){this.b();var e,i=this;if(!i.o.tween){if(i.assign_a([["anchor","WG"],["rect-shortcut","F9","b"],["center-ref","A75","b"],["callout","KP","b"],["callout-type","ACM"],["callout-position","ES"],["callout-hook","DM"],["callout-ratio","XD"],["callout-width","H6","i"],["callout-height","G3","i"],["callout-offset","EV","i"],["callout-extension","M1","i"],["border-top","PQ"],["border-right","OC"],["border-bottom","NL"],["border-left","P6"]]),null!==(e=ZC._n_(i.o["border-radius"]))){var t=String(e).split(/\s+|;|,/);2===t.length?(i.F5=i.FQ=ZC._i_(t[0]),i.F2=i.FA=ZC._i_(t[1])):4===t.length?(i.F5=ZC._i_(t[0]),i.FQ=ZC._i_(t[1]),i.F2=ZC._i_(t[2]),i.FA=ZC._i_(t[3])):i.F5=i.FQ=i.F2=i.FA=ZC._i_(t[0])}null!==ZC._n_(i.o["callout-tip"])&&(i.OF=new ZC.DW(i.A)),i.assign_a([["border-radius-top-left","F5","i"],["border-radius-top-right","FQ","i"],["border-radius-bottom-right","F2","i"],["border-radius-bottom-left","FA","i"]])}},WK:function(e){var i=e.split(/\s/);return i[0]=ZC._i_(i[0]),i[2]=ZC.AP.G5(i[2]),i},paint:function(){var e=this;if(null!==e.DM&&!(e.DM instanceof Array)&&"zcgraph"===e.A.O4){var i=e.A.UV(e.DM);e.DM=[i[0],i[1]],e.DM[0]-=e.BJ,e.DM[1]-=e.BH}if(e.A75&&(e.iX-=e.I/2,e.iY-=e.F/2),"-1"!==e.BV&&0!==e.AT||e.PQ+e.OC+e.NL+e.P6!==""||"-1"!==e.A0||"-1"!==e.AE||""!==e.D9||""!==e.GQ||""!==e.HJ){var t=e.H.AC;e.M4&&e.C6&&e.A9U();var n,a={x:"iX",y:"iY",width:"I",height:"F"};if(e.o["bottom-state"]&&!e.Y3&&!e.bIsBottom&&!e.VV){var l=new ZC.HS(e.A);l.copy(e),l.bIsBottom=!0,l.M4=!1,l.Z=e.Z,l.WG=e.WG,l.append({x:e.iX-e.A.iX,y:e.iY-e.A.iY,width:e.I,height:e.F}),l.append(e.o["bottom-state"]),l.K=e.K+"-bottom",l.parse(),l.setAnchor(),!1;for(n in a)null===ZC._n_(l.o[n])||-1===(""+l.o[n]).indexOf("+")&&-1===(""+l.o[n]).indexOf("-")||(l[a[n]]=e[a[n]]+ZC._i_(l.o[n]),!0);l.paint()}if(e.PQ+e.OC+e.NL+e.P6===""){switch(t){case"canvas":e.A1D();break;case"svg":e.W6();break;case"vml":e.W5()}if(e.KP&&e.OF){var o,r;if(e.DM&&2===e.DM.length?(o=e.DM[0],r=e.DM[1]):e.E.cp&&(o=e.E.cp[0],r=e.E.cp[1]),e.OF.Z=e.OF.C6=e.Z,e.OF.copy(e),e.OF.append(e.o["callout-tip"]),e.OF.K=e.K+"-callout-tip",e.OF.o.x=o,e.OF.o.y=r,e.E.cm){var s=e.E.cm[0],A=e.E.cm[1],C=Math.atan2(ZC._i_(A)-ZC._i_(r),ZC._i_(s)-ZC._i_(o));isNaN(C)&&(C=0),null===ZC._n_(e.OF.o.angle)&&(e.OF.o.angle=ZC.TO(C))}e.OF.parse(),e.OF.paint()}}else{var c=e.AT,u=e.BV,p=e.G9;switch(e.AT=0,t){case"canvas":e.A1D();break;case"svg":e.W6();break;case"vml":e.W5()}e.AT=c;var Z=e.A0,h=e.AE;e.A0=e.AE="-1";for(var d,f=["top","right","bottom","left"],_=["PQ","OC","NL","P6"],g=0;g<f.length;g++)if(""!==(d=e[_[g]])&&"none"!==d){var v=e.WK(d);switch(e.AT=v[0],e.G9=v[1],e.BV=v[2],t){case"canvas":e.A1D(f[g]);break;case"svg":e.W6(f[g]);break;case"vml":e.W5(f[g])}e.AT=c,e.BV=u,e.G9=p}e.A0=Z,e.AE=h}if(e.o["top-state"]&&!e.Y3&&!e.VV&&!e.bIsBottom){var b=new ZC.HS(e.A);b.copy(e),b.VV=!0,b.M4=!1,b.Z=e.Z,b.WG=e.WG,b.append({x:e.iX-e.A.iX,y:e.iY-e.A.iY,width:e.I,height:e.F}),b.append(e.o["top-state"]),b.K=e.K+"-top",b.parse(),b.setAnchor(),!1;for(n in a)null===ZC._n_(b.o[n])||-1===(""+b.o[n]).indexOf("+")&&-1===(""+b.o[n]).indexOf("-")||(b[a[n]]=e[a[n]]+ZC._i_(b.o[n]),!0);b.paint()}}},setAnchor:function(){var e=this;switch(e.WG){case"tl":break;case"tr":e.iX-=e.I;break;case"bl":e.iY-=e.F;break;case"br":e.iX-=e.I,e.iY-=e.F;break;case"c":e.iX-=e.I/2,e.iY-=e.F/2;break;case"t":e.iX-=e.I/2;break;case"r":e.iX-=e.I,e.iY-=e.F/2;break;case"b":e.iX-=e.I/2,e.iY-=e.F;break;case"l":e.iY-=e.F/2}},A9U:function(){var e=this,i=new ZC.HS(e.A);i.K=e.K+"-sh",i.copy(e),i.Z=e.C6,i.M4=!1,i.Y3=!0,i.PQ=i.OC=i.NL=i.P6="",i.A0=i.AE=i.RQ,i.GQ=i.HJ="",i.D9="",i.G9="solid",i.BV=i.RQ,i.B0=0;var t=e.JP*ZC.EF(e.OE),n=e.JP*ZC.EO(e.OE);i.I=e.I+("vml"===e.H.AC?0:.5)-ZC.EF(e.OE)*e.P1/2,i.F=e.F+("vml"===e.H.AC?0:.5)-ZC.EO(e.OE)*e.P1/2,i.NQ=i.C5=i.SU*e.C5,i.K=e.K+"-sh",i.iX=e.iX+ZC._i_(t),i.iY=e.iY+ZC._i_(n),i.paint()},Y6:function(e){var i,t=this,n=t.iX,a=t.iY,l=n+t.I/2,o=a+t.F/2,r=t.W4,s=t.W2;if(ZC._a_(r)<=1&&(r=r*t.I/2),ZC._a_(s)<=1&&(s=s*t.F/2),l+=r,o+=s,"radial"===e){var A=ZC._i_((t.I+t.F)/2),C=ZC.CY(t.I,t.F);return i=C<A/4?(C+A)/2:C,{cx:l,cy:o,r:ZC._a_(i)}}if("linear"===e){var c=(i=t.I>=t.F?ZC._a_(ZC.EO(t.N8))>.5?t.F/2:t.I/2:ZC._a_(ZC.EF(t.N8))>.5?t.I/2:t.F/2)*ZC.EF(t.N8),u=i*ZC.EO(t.N8);return{x1:l-c,y1:o-u,x2:l+c,y2:o+u}}},VI:function(e){var i,t=this;void 0===e&&(e="all");var n,a,l=t.iX,o=t.iY;t.D=[],n=a=t.AT/2;var r=1;switch(t.H.AC){case"vml":r=2,t.AT%2==1&&(n=ZC._i_((t.AT-1)/2),a=ZC._i_((t.AT+1)/2))}var s=null,A=ZC._x_(l+n,2),C=ZC._x_(l-a,2),c=ZC._x_(o+n,2),u=ZC._x_(o-a,2),p=t.DM&&2===t.DM.length,Z=ZC._i_(t.EV*(t.I-t.H6)/100),h=ZC._i_(t.EV*(t.F-t.G3)/100),d=0!==t.F5||0!==t.FQ||0!==t.F2||0!==t.FA,f=t.XD[0],_=t.XD[1];switch(t.ES){case"top":t.E.cm=[t.iX+t.I/2+Z,t.iY];break;case"bottom":t.E.cm=[t.iX+t.I/2+Z,t.iY+t.F];break;case"left":t.E.cm=[t.iX,t.iY+t.F/2+h];break;case"right":t.E.cm=[t.iX+t.I,t.iY+t.F/2+h]}if(d){var g,v=ZC.CY(t.I/2,t.F/2);"top"!==e&&"all"!==e||(0!==t.F5?(g=t.I/2>=t.F5&&t.F/2>=t.F5?ZC._a_(t.F5):v,t.D.push([A,c+g]),t.F5>0&&t.D.push([A,c,A+r*g,c]),t.D.push([A+g,c])):t.D.push([A,c]),t.KP&&"top"===t.ES&&(t.D.push([A+t.I/2-f*t.H6/2-t.AT/2+Z,c]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[A+t.I/2-t.AT/2+Z,c-t.G3],t.D.push(s)),t.M1>0&&(i=t.D[t.D.length-1],t.D.push([i[0],i[1]-t.M1*(t.G3>0?1:-1)]),t.D.push([i[0],i[1]])),t.D.push([A+t.I/2-t.AT/2+_*t.H6/2+Z,c])),"top"===e&&(0!==t.FQ?(g=t.I/2>=t.FQ&&t.F/2>=t.FQ?ZC._a_(t.FQ):v,t.D.push([C+t.I-g,c])):t.D.push([C+t.I,c]))),"right"!==e&&"all"!==e||(0!==t.FQ?(g=t.I/2>=t.FQ&&t.F/2>=t.FQ?ZC._a_(t.FQ):v,t.D.push([C+t.I-g,c]),t.FQ>0?t.D.push([C+t.I,c,C+t.I,c+r*g]):t.D.push([C+t.I,c+g])):t.D.push([C+t.I,c]),t.KP&&"right"===t.ES&&(t.D.push([C+t.I,c+t.F/2-f*t.G3/2-t.AT/2+h]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[C+t.I+t.H6,c+t.F/2-t.AT/2+h],t.D.push(s)),t.D.push([C+t.I,c+t.F/2+_*t.G3/2-t.AT/2+h])),"right"===e&&(0!==t.F2?(g=t.I/2>=t.F2&&t.F/2>=t.F2?ZC._a_(t.F2):v,t.D.push([C+t.I,u+t.F-g])):t.D.push([C+t.I,u+t.F]))),"bottom"!==e&&"all"!==e||(0!==t.F2?(g=t.I/2>=t.F2&&t.F/2>=t.F2?ZC._a_(t.F2):v,t.D.push([C+t.I,u+t.F-g]),t.F2>0?t.D.push([C+t.I,u+t.F,C+t.I-r*g,u+t.F]):t.D.push([C+t.I-g,u+t.F])):t.D.push([C+t.I,u+t.F]),t.KP&&"bottom"===t.ES&&(t.D.push([C+t.I/2+f*t.H6/2+t.AT/2+Z,u+t.F]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[C+t.I/2+t.AT/2+Z,u+t.F+t.G3],t.D.push(s)),t.M1>0&&(i=t.D[t.D.length-1],t.D.push([i[0],i[1]+t.M1*(t.G3>0?1:-1)]),t.D.push([i[0],i[1]])),t.D.push([C+t.I/2-_*t.H6/2+t.AT/2+Z,u+t.F])),"bottom"===e&&(0!==t.FA?(g=t.I/2>=t.FA&&t.F/2>=t.FA?ZC._a_(t.FA):v,t.D.push([A+g,u+t.F])):t.D.push([A,u+t.F]))),"left"!==e&&"all"!==e||(0!==t.FA?(g=t.I/2>=t.FA&&t.F/2>=t.FA?ZC._a_(t.FA):v,t.D.push([A+g,u+t.F]),t.FA>0?t.D.push([A,u+t.F,A,u+t.F-r*g]):t.D.push([A,u+t.F-g])):t.D.push([A,u+t.F]),t.KP&&"left"===t.ES&&(t.D.push([A,u+t.F/2+f*t.G3/2+t.AT/2+h]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[A-t.H6,u+t.F/2+t.AT/2+h],t.D.push(s)),t.D.push([A,u+t.F/2-_*t.G3/2+t.AT/2+h])),0!==t.F5?(g=t.I/2>=t.F5&&t.F/2>=t.F5?ZC._a_(t.F5):v,t.D.push([A,c+g])):(t.D.push([A,c]),t.D.push([A+.1,c])))}else"top"!==e&&"all"!==e||(t.D.push([A,c]),t.KP&&"top"===t.ES&&(t.D.push([A+t.I/2-f*t.H6/2-t.AT/2+Z,c]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[A+t.I/2-t.AT/2+Z,c-t.G3],t.D.push(s)),t.M1>0&&(i=t.D[t.D.length-1],t.D.push([i[0],i[1]-t.M1*(t.G3>0?1:-1)]),t.D.push([i[0],i[1]])),t.D.push([A+t.I/2+_*t.H6/2-t.AT/2+Z,c])),"top"===e&&t.D.push([C+t.I,c])),"right"!==e&&"all"!==e||(t.D.push([C+t.I,c]),t.KP&&"right"===t.ES&&(t.D.push([C+t.I,c+t.F/2-t.AT/2-f*t.G3/2+h]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[C+t.I+t.H6,c+t.F/2-t.AT/2+h],t.D.push(s)),t.D.push([C+t.I,c+t.F/2-t.AT/2+_*t.G3/2+h])),"right"===e&&t.D.push([C+t.I,u+t.F])),"bottom"!==e&&"all"!==e||(t.D.push([C+t.I,u+t.F]),t.KP&&"bottom"===t.ES&&(t.D.push([C+t.I/2+f*t.H6/2+t.AT/2+Z,u+t.F]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[C+t.I/2+t.AT/2+Z,u+t.F+t.G3],t.D.push(s)),t.M1>0&&(i=t.D[t.D.length-1],t.D.push([i[0],i[1]+t.M1*(t.G3>0?1:-1)]),t.D.push([i[0],i[1]])),t.D.push([C+t.I/2-_*t.H6/2+t.AT/2+Z,u+t.F])),"bottom"===e&&t.D.push([A,u+t.F])),"left"!==e&&"all"!==e||(t.D.push([A,u+t.F]),t.KP&&"left"===t.ES&&(t.D.push([A,u+t.F/2+t.AT/2+f*t.G3/2+h]),p?t.D.push([t.DM[0],t.DM[1]]):(s=[A-t.H6,u+t.F/2+t.AT/2+h],t.D.push(s)),t.D.push([A,u+t.F/2+t.AT/2-_*t.G3/2+h])),t.D.push([A,c]),t.D.push([A+.1,c]));s&&(t.E.cp=s)},A1D:function(e){e=e||"all";var i,t,n,a=this,l=a.Z.getContext("2d");l.save(),l.globalCompositeOperation=a.A0M;var o=a.iX,r=a.iY,s=a.A1N(),A=s.bc,C=s.bgc1,c=s.bgc2;if("all"===e)if(C!==c||""!==a.GQ&&""!==a.HJ){var u=a.Y6(a.NE);"radial"===a.NE?i=l.createRadialGradient(u.cx,u.cy,1,u.cx,u.cy,u.r):"linear"===a.NE&&(u.x1=isNaN(u.x1)?0:u.x1,u.x2=isNaN(u.x2)?0:u.x2,u.y1=isNaN(u.y1)?0:u.y1,u.y2=isNaN(u.y2)?0:u.y2,i=l.createLinearGradient(u.x1,u.y1,u.x2,u.y2)),""!==a.GQ&&""!==a.HJ?a.ZB(i):(i.addColorStop(0,C),i.addColorStop(1,c)),l.fillStyle=i}else""!==a.D9&&-1!==ZC.AV(["repeat","true",!0],a.LZ)&&"-1"===a.A0&&"-1"===a.AE&&(C="rgba(255,255,255,0)"),l.fillStyle=C;l.strokeStyle=A,l.lineWidth=a.AT,l.translate(a.BJ,a.BH),0!==a.AA&&(l.translate(o+a.I/2,r+a.F/2),l.rotate(ZC.SZ(a.AA)),l.translate(-(o+a.I/2),-(r+a.F/2))),l.beginPath(),a.VI(e);var p=a.F5+a.FQ+a.F2+a.FA!==0;n=a.B0,a.B0=a.AT;var Z=a.G9;if(a.G9="",a.KV(),ZC.CS.contour(l,a,a.D),a.B0=n,a.G9=Z,a.KV(),"all"===e)if(""!==a.D9&&-1===ZC.AV(ZC.IMG404,a.D9)){l.fill(),l.save(),l.clip();var h=l.globalAlpha;l.globalAlpha=a.C5;var d=a.RA(),f=d.image;switch(a.LZ){default:l.translate(a.iX,a.iY),t=l.createPattern(f,"repeat"),l.fillStyle=t,l.fill(),l.translate(-d.x,-d.y);break;case"no-repeat":case"false":case!1:l.drawImage(f,d.x-a.BJ,d.y-a.BH,a.E["bg-image-width"],a.E["bg-image-height"])}l.globalAlpha=h,l.restore()}else l.fill();if(a.AT>0){var _=a.B9;n=a.B0,a.B9=a.BV,a.B0=a.AT,a.KV(),ZC.CS.setup(l,a),a.SW=p?"round":"square",a.EX+a.G6>0&&(a.SW="butt"),a.ZT=p?"round":"miter",a.E["skip-top"]=!0,a.E.border=e,ZC.CS.paint(l,a,a.D,!0),a.B9=_,a.B0=n,a.KV()}l.closePath(),l.restore()},W6:function(e){e=e||"all";var i=this,t=i.Z;i.E.fill=-1;var n=!1;if("all"===e){if(""!==i.D9&&-1===ZC.AV(ZC.IMG404,i.D9)){var a=i.RA();i.A28({info:a,x:i.iX,y:i.iY}),n=!0}i.WP()}if(i.VI(e),n&&"repeat"!==i.LZ&&(i.A0S(),i.KP)){var l=0,o=0;i.D1[1]<i.iY&&(o=i.D1[3]-i.D1[1]-i.F),i.D1[0]<i.iX&&(l=i.D1[2]-i.D1[0]-i.I),null===ZC._n_(i.E["pattern-tx"])?i.E["pattern-tx"]=l:i.E["pattern-tx"]+=l,null===ZC._n_(i.E["pattern-ty"])?i.E["pattern-ty"]=o:i.E["pattern-ty"]+=o,ZC.Q.G2(ZC.AK(i.E["pattern-image-id"]),{transform:"translate("+i.E["pattern-tx"]+","+i.E["pattern-ty"]+")"})}var r=i.F5+i.FQ+i.F2+i.FA!==0;i.E.cx=i.iX+i.I/2,i.E.cy=i.iY+i.F/2,i.VC&&i.A3L();var s=i.B9,A=i.B0;i.B9=i.BV,i.B0=i.AT,i.KV(),ZC.CS.setup(t,i),i.SW=r?"round":"square",i.EX+i.G6>0&&(i.SW="butt"),i.ZT=r?"round":"miter";var C=!1;ZC.A4.browser.msie||!i.F9||i.KP||""!==i.PQ||""!==i.OC||""!==i.NL||""!==i.P6||0!==i.F5||0!==i.FQ||0!==i.F2||0!==i.FA||(C=!0),i.E["skip-top"]=!0,i.E.border=e,ZC.CS.paint(t,i,i.D,!0,null,C),i.B9=s,i.B0=A,i.KV()},W5:function(e){e=e||"all";var i=this,t=i.Z;if("all"===e){var n=ZC.Q.F4("zcv:fill");if(""!==i.D9&&-1===ZC.AV(ZC.IMG404,i.D9)){var a=i.RA(),l=a.image;switch(i.LZ){default:n.type="tile",n.src=i.D9,ZC.Q.G2(n,{position:a.cx+","+a.cy,opacity:i.C5,"o:opacity2":i.C5}),i.E.imgfill=[n];break;case"no-repeat":case"false":case!1:i.E.imgfill=[l,a.x,a.y]}}i.WQ("0.5,0.5")}var o=ZC.Q.F4("zcv:stroke");switch(o.weight=i.AT+"px",o.color=i.BV,o.opacity=i.C5,i.G9){case"solid":o.dashstyle="solid";break;case"dotted":o.dashstyle="dot";break;case"dashed":o.dashstyle="dash"}i.E.stroke=o,i.VI(e);var r=i.F5+i.FQ+i.F2+i.FA!==0;i.E.cx=i.iX+i.I/2,i.E.cy=i.iY+i.F/2;var s=i.B9,A=i.B0;i.B9=i.BV,i.B0=i.AT,i.KV(),ZC.CS.setup(t,i),i.SW=r?"round":"square",i.EX+i.G6>0&&(i.SW="butt"),i.ZT=r?"round":"miter",i.E.border=e,ZC.CS.paint(t,i,i.D,"all"===e),i.B9=s,i.B0=A,i.KV()}}),ZC.QU=ZC.DW.C7({$i:function(e){this.b(e);var i=this;i.WI=null,i.BE=null,i.M=null,i.SL=null,i.A8=null,i.K5=!1,i.O3=!1,i.KW=!1,i.A5R=!1},parse:function(){var e,i=this;i.BE=zingchart.pool.getInstance("box"===i.WI.type?"HS":"DW",i.A,i.K+"-shape",i.WI.tween),i.BE.append(i.WI),i.BE.iX=i.iX,i.BE.iY=i.iY,i.BE.K=i.K+"-gshape",i.BE.O3=i.O3,i.A5R||null===ZC._n_(e=i.BE.o.points)||(i.BE.o.points=ZC.AP.A4Q(e,i.A.iX,i.A.iY),i.A5R=!0),i.BE.parse(),null!==ZC._n_(e=i.BE.o.label)&&null!==ZC._n_(e.text)&&""!==e.text&&("undefined"==typeof e.visible||ZC._b_(e.visible))&&(i.M=zingchart.pool.getInstance("DS",i,i.A.K+"-shape-label-"+i.H2,ZC.objmove),ZC.objmove||i.M.append(e)),null!==ZC._n_(e=i.BE.o["static"])&&(i.K5=ZC._b_(e)),null!==ZC._n_(e=i.BE.o.flat)&&(i.K5=ZC._b_(e)),null!==ZC._n_(e=i.BE.o.dynamic)&&(i.KW=ZC._b_(e)),null!==ZC._n_(e=i.BE.o.connector)&&(i.SL=new ZC.DW(i),i.SL.append(e),i.SL.parse())},paint:function(){var e,i=this;if(i.BE.Z=i.Z,i.BE.C6=i.C6,i.BE.locate(2),i.BE.VV=!1,"box"===i.BE.o.type&&(i.iX-=i.BE.I/2,i.iY-=i.BE.F/2,i.BE.iX-=i.BE.I/2,i.BE.iY-=i.BE.F/2),i.BE.paint(),i.M){if(i.M.Z=i.M.C6=i.Z,i.M.IJ=ZC.AK(i.A.A.K+"-text"),i.M.K=i.A.K+"-shape-label-"+i.H2,i.M.GJ=i.A.K+"-shape-label zc-shape-label",i.M.o.anchor=i.M.o.anchor||"c",!i.WI["map-item"])switch(i.DQ){default:i.M.x=i.iX,i.M.y=i.iY;break;case"line":case"poly":case"rect":case"rectangle":i.M.o.x=ZC._i_((i.BE.D1[0]+i.BE.D1[2])/2),i.M.o.y=ZC._i_((i.BE.D1[1]+i.BE.D1[3])/2)}if(ZC.objmove||i.M.parse(),i.M.iX=i.M.iX+i.BE.BJ,i.M.iY=i.M.iY+i.BE.BH,i.M.AM){if(i.SL&&i.SL.D.length>0){if(!ZC.AK(i.A.K+"-objects-front")){var t=i.A.A.I+"/"+i.A.A.F;ZC.Q.JW({cls:"zc-abs",wh:t,id:i.A.K+"-objects-front",p:ZC.AK(i.A.A.K+"-objects-front")},i.A.A.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:i.A.K+"-objects-front-c",p:ZC.AK(i.A.K+"-objects-front"),wh:t},i.A.A.AC)}var n=i.SL.D,a=i.SL.o.anchor||"",l=n[n.length-1];switch(a){case"l":i.M.iX=l[0]+i.BE.BJ,i.M.iY=l[1]-i.M.F/2+i.BE.BH;break;case"r":i.M.iX=l[0]-i.M.I+i.BE.BJ,i.M.iY=l[1]-i.M.F/2+i.BE.BH;break;case"t":i.M.iX=l[0]-i.M.I/2+i.BE.BJ,i.M.iY=l[1]+i.BE.BH;break;case"b":i.M.iX=l[0]-i.M.I/2+i.BE.BJ,i.M.iY=l[1]-i.M.F+i.BE.BH;break;default:i.M.iX=l[0]-i.M.I/2+i.BE.BJ,i.M.iY=l[1]-i.M.F/2+i.BE.BH}e=ZC.Q.E9(ZC.AK(i.A.K+"-objects-front-c"),i.A.H.AC),ZC.CS.setup(e,i.SL),ZC.CS.paint(e,i.SL,n)}if(i.M.VV=!1,i.WI["map-item"]&&(i.M.GJ=i.A.K+"-mapshape-label zc-mapshape-label",i.M.iX<i.A.iX||i.M.iX+i.M.I>i.A.iX+i.A.I||i.M.iY<i.A.iY||i.M.iY+i.M.F>i.A.iY+i.A.F))return;i.M.paint(),i.E["print-canvas"]?i.M.EL(ZC.AK(i.E["print-canvas"])):i.M.EL()}}}}),ZC.DS=ZC.HS.C7({$i:function(e){this.b(e);var i=this;i.IJ=null,i.GJ="",i.AR=null,i.OB="center",i.JU="middle",i.DK=zingchart.FONTSIZE,i.GD=zingchart.FONTFAMILY,i.C1="#000",i.A90=!1,i.N1=!1,i.QM=!1,i.K4="none",i.sFontWeight="normal",i.Y1=0,i.FJ=2,i.FK=2,i.FR=2,i.EP=2,i.A8D=!1,i.A21=!1,i.FF=-1,i.KK=0,i.NH=0,i.OJ=ZC.MAX,i.bRTL=!1,i.A17=!0,i.WJ=zingchart.FASTWIDTH,i.A5X=1.65,i.UX=1,i.VM=!1,i.A8=null,i.V2=!1,i.A4K=!1},getPMap:function(){var e=this.b();return this.addPMap(e,"textAlign,verticalAlign,fontSize,fontFamily,color,bold,fontWeight,italic,underline,textDecoration,paddingTop,paddingRight,paddingBottom,paddingLeft,text","OB,JU,DK,GD,C1,A90,sFontWeight,N1,QM,K4,FJ,FK,FR,EP,AR"),e},copy:function(e){this.b(e);for(var i=this,t="OB,JU,DK,GD,C1,A90,sFontWeight,N1,K4,QM,FJ,FK,FR,EP,AR".split(","),n=0,a=t.length;n<a;n++)"undefined"!=typeof e[t[n]]&&(i[t[n]]=e[t[n]])},KE:function(e){return e},isBold:function(e){return"bold"===e||"bolder"===e||"500"===e||"600"===e||"700"===e||"800"===e||"900"===e},cwidth:function(e){var i=this;if(i.WJ)return e.replace(/(<([^>]+)>)/gi,"").length*i.DK/(i.A5X*(i.isBold(i.sFontWeight)?.87:1)*(i.N1?.95:1));var t="";return"undefined"!=typeof i.o["html-mode"]&&ZC._b_(i.o["html-mode"])&&(t="[HTMLMODE]"),ZC.Q.A3Y(this.H.K,t+e,this.GD,this.DK,this.sFontWeight,this.FF)},parse:function(){this.I=this.F=this.NH=this.KK=0,this.b();var e,i,t,n,a,l=this;if(!l.o.tween){if(l.Z5("text","AR"),null!==ZC._n_(l.AR)&&(l.AR=""+l.AR,l.AR=l.KE(l.AR),l.AR=l.AR.replace(/\n/g,"<br>").replace(/\\n/g,"<br>"),"svg"===l.H.AC&&(l.AR=l.AR.replace(/&nbsp;/g," "))),l.assign_a([["overlap","A17","b"],["fast-width","WJ","b"],["max-width","OJ","i"],["line-height","FF","i"],["width-ratio","A5X","f"],["wrap-text","A21","b"],["clip-text","A8D","b"],["bold","A90","b"],["italic","N1","b"],["underline","QM","b"],["text-decoration","K4"],["rtl","bRTL","b"],["text-align","OB"],["align","OB"],["vertical-align","JU"],["font-size","DK","f"],["max-chars","Y1","i"],["font-family","GD"],["font-angle","AA","i"],["color","C1","c"],["font-color","C1","c"],["text-alpha","UX","f",0,1],["lock-rotation","V2","b"]]),l.DK=ZC.BQ(1,l.DK),null===ZC._n_(l.o["text-alpha"])&&(l.UX=l.C5),l.A90&&(l.sFontWeight="bold"),null!==(e=ZC._n_(l.o["font-weight"]))&&(l.sFontWeight=e),null===ZC._n_(l.o["text-decoration"])&&(l.K4=l.QM?"underline":"none"),null!==(e=ZC._n_(l.o["font-style"]))&&(l.N1="italic"===e||"oblique"===e),null!==(e=ZC._n_(l.o.padding))){var o=String(e).split(/\s+|;|,/);i=1===o.length?[ZC._i_(o[0]),ZC._i_(o[0]),ZC._i_(o[0]),ZC._i_(o[0])]:2===o.length?[ZC._i_(o[0]),ZC._i_(o[1]),ZC._i_(o[0]),ZC._i_(o[1])]:3===o.length?[ZC._i_(o[0]),ZC._i_(o[1]),ZC._i_(o[2]),ZC._i_(o[0])]:[ZC._i_(o[0]),ZC._i_(o[1]),ZC._i_(o[2]),ZC._i_(o[3])],l.FJ=i[0],l.FK=i[1],l.FR=i[2],l.EP=i[3]}if(l.assign_a([["padding-top","FJ","i"],["padding-right","FK","i"],["padding-bottom","FR","i"],["padding-left","EP","i"]]),l.AR){l.Y1>0&&l.AR.length>l.Y1&&(l.AR=l.AR.substring(0,l.Y1)+"...");var r=l.AR.split(/<br>|<br\/>|<br \/>|\n/),s="";"undefined"!=typeof l.o["html-mode"]&&ZC._b_(l.o["html-mode"])&&(r=[l.AR],s="[HTMLMODE]");r.length;for(l.KK=ZC.Q.A3Y(this.H.K,s+l.AR,this.GD,this.DK,this.sFontWeight,this.FF,!0)+l.FJ+l.FR,t=0,n=r.length;t<n;t++)l.NH=ZC.BQ(l.NH,l.cwidth(r[t])+l.EP+l.FK)}else l.AR="",l.NH=ZC._i_(1.25*l.DK),l.KK=-1===l.FF?ZC._i_(1.25*l.DK):l.FF;if((null===ZC._n_(l.o.width)||isNaN(l.I)||0===l.I)&&(l.I=l.NH),(null===ZC._n_(l.o.height)||isNaN(l.F)||0===l.F)&&(l.F=l.KK),l.I=ZC.CY(l.I,l.OJ),l.A21&&l.NH>l.I&&!l.E.wrapped&&l.I>2*l.DK){var A,C="",c=0,u=l.AR.replace(/<br>/gi," [##] ").split(/\s|<br>/),p=[];for(t=0,n=u.length;t<n;t++)if((A=l.cwidth(u[t]))>.9*l.I){var Z=Math.ceil(A/l.I*.9),h=Math.ceil(u[t].length/Z);for(a=0;a<Z;a++)p.push(u[t].substr(a*h,h))}else p.push(u[t]);for(t=0,n=p.length;t<n;t++)""!==p[t]&&("[##]"===p[t]?(C+="<br>",c=0):(c+=A=1+l.cwidth(p[t]+" "))>.9*l.I?(t>0&&(C+="<br>"),C+=p[t]+" ",c=A):C+=p[t]+" ");C=(C=C.replace(/<br><br>/g,"<br>").replace(/ <br> <br>/g," <br>")).replace(/(.+?)<br> $/g,"$1");var d=l.o.text;l.o.text=C,l.E.wrapped=!0,l.parse(),l.o.text=d,l.E.wrapped=!1}if("canvas"!==l.H.AC&&(l.AR=l.AR.replace(/&lt;/g,"<").replace(/&gt;/g,">")),!(null!==ZC._n_(l.o.width)&&null!==ZC._n_(l.o.height)||null===ZC._n_(l.o.position)&&null===ZC._n_(l.o.margin)&&null===ZC._n_(l.o["margin-top"])&&null===ZC._n_(l.o["margin-right"])&&null===ZC._n_(l.o["margin-bottom"])&&null===ZC._n_(l.o["margin-left"]))){l.iX=-1,l.iY=-1;var f=l.o.width,_=l.o.height;null===ZC._n_(f)&&(l.o.width=l.I),null===ZC._n_(_)&&(l.o.height=l.F),l.locate(),l.o.width=f,l.o.height=_}if("undefined"==typeof l.o["html-mode"]||!l.o["html-mode"]){var g=Math.ceil((l.NH-l.EP-l.FK)/l.DK);g>0&&(l.AR=l.AR.replace(/<hr>/g,new Array(g).join("\u2014")))}}l.setAnchor()},paint:function(){var e,i,t,n,a,l,o,r,s,A,C,c=this;if(!c.VM&&!c.A17){var u=!0;null!==ZC._n_(c.o.flexible)&&(u=ZC._b_(c.o.flexible));var p,Z,h={x:c.iX+c.EP-1,y:c.iY+c.FJ-1,width:c.I-c.EP-c.FK+2,height:c.F-c.FJ-c.FR+2,type:c.E.lbltype||""},d=[[0,0]];for(u&&(d=[[0,0],[0,2],[0,-4],[0,4],[0,-8],[3,0],[-6,0],[5,0],[-10,0]]),Z=0;Z<d.length;Z++){for(p=!0,h.x+=d[Z][0],h.y+=d[Z][0],a=0,l=c.H.SP.length;a<l;a++)ZC.AO.XI(h,c.H.SP[a],-2)&&(p=!1);if(p){c.iX=h.x,c.iY=h.y;break}}if(!p)return;c.H.SP.push(h)}var f=c.H.AC;if(e=ZC.Q.E9(c.Z,f),c.VM||c.b(),!c.A4K&&(c.o.width||!(c.I-c.EP-c.FK<2))&&(c.o.height||!(c.KK-c.FJ-c.FR<2))){var _=c.AA%360==0?"0":"";if((c.VM||zingchart.CANVASTEXT&&"canvas"===f)&&(_=""),ZC.vml&&"svg"===f&&""===c.GJ&&(c.GJ=c.K+"-class"),!c.VM&&ZC.AK(c.K)&&(f="_",ZC.objmove))return ZC.AK(c.K).style.top=c.iY+c.BH+"px",void(ZC.AK(c.K).style.left=c.iX+c.BJ+"px");var g="undefined"!=typeof c.E["html-mode"]&&c.E["html-mode"],v=g;"undefined"!=typeof c.o["html-mode"]&&(g=ZC._b_(c.o["html-mode"]));var b=[c.AR];g||(b=c.AR.split(/<br>|<br\/>|<br \/>|\n/)),g&&!v&&"svg"===f&&"0"===_&&(_="0html");var m,B,E,K,F,D,X,I,x,y,w,Y,M,H,L,P,N,O,k,Q,R,z,T=c.IJ?c.IJ:c.Z.parentNode;switch(f+_){case"canvas0":case"vml0":case"svg0html":if(n=1,!g)switch(c.JU){case"middle":n+=(c.F-c.KK)/2;break;case"bottom":n+=c.F-c.KK}if(o=ZC.Q.HX({id:c.K,cls:c.GJ,tl:ZC._x_(c.iY+c.BH)+"/"+ZC._x_(c.iX+c.BJ),wh:c.I+"/"+c.F,position:"absolute",padding:0,margin:0,overflow:g?"visible":"hidden",textAlign:c.OB}),g&&(v||f+_!=="svg0html"||(T=ZC.AK(c.H.K+"-top")),T.appendChild(o)),ZC.Q.HX({id:c.K+"-t",cls:""!==c.GJ?c.GJ+"-t":"",p:o,width:c.I-c.EP-c.FK,height:g?null:c.KK-c.FJ-c.FR,tl:n+"/0",html:c.AR+"",position:"absolute",whiteSpace:"nowrap",opacity:c.UX,color:c.C1,fontWeight:c.sFontWeight,fontStyle:c.N1?"oblique":"normal",textDecoration:c.K4,fontSize:c.DK,fontFamily:c.GD,marginTop:c.FJ,marginRight:c.FK,marginBottom:c.FR,marginLeft:c.EP,verticalAlign:c.JU,textAlign:c.OB,lineHeight:-1===c.FF?"125%":c.FF+"px",rtl:c.bRTL,padding:0}),c.E["css-display"]&&(o.style.display=c.E["css-display"],c.E["css-display"]=null),v&&c.H&&c.H.A8&&!c.o.width&&!c.o.height){var G=ZC.A4("#"+c.K+"-t");"canvas"===f&&(ZC.AK(c.H.K+"-tooltip-c").width=G.width()+c.EP+c.FK,ZC.AK(c.H.K+"-tooltip-c").height=G.height()+c.FJ+c.FR),c.H.A8.clear(),c.I=G.width()+c.EP+c.FK,c.F=G.height()+c.FJ+c.FR,c.paint()}break;case"canvas":var S=!1;if(ZC.A4.browser.opera&&c.AA%90==0&&0!==c.AA&&(c.AA+=.5,S=!0),e=c.Z.getContext("2d"),zingchart.DEV.CACHECANVASTEXT&&(ZC.CanvasCache||(ZC.CanvasCache={})),!zingchart.DEV.CACHECANVASTEXT||zingchart.DEV.CACHECANVASTEXT&&!ZC.CanvasCache[c.K]){for(zingchart.DEV.CACHECANVASTEXT&&(ZC.CanvasCache[c.K]=document.createElement("canvas"),ZC.CanvasCache[c.K].width=c.NH,ZC.CanvasCache[c.K].height=c.KK),m=-1===c.FF?0:ZC._x_(c.FF-1.25*c.DK)/2,a=0,l=b.length;a<l;a++)if(""!==ZC.GT(b[a])){switch(i=1===l?c.NH:c.cwidth(b[a])+c.FK+c.EP,B=b[a],E=-1===B.indexOf("<")?B:B.replace(/<.+?>/gi,"").replace(/<\/.+?>/gi,""),t=0,n=0,c.OB){case"center":t+=(c.I-i)/2;break;case"right":t+=c.I-i}switch(c.JU){case"middle":n+=(c.F-c.KK)/2;break;case"bottom":n+=c.F-c.KK}if(K=0,B!==E){for(;D=/<(.+?)>(.*?)<\/(.+?)>/.exec(B);){switch(X="",I="",(A=/(.+?)style=(.+?)(\'|")(.*?)/.exec(D[1]))&&(I=A[2].replace(/\'|"/g,"")),D[3]){case"b":case"strong":X="font-weight:bold";break;case"i":case"em":X="font-style:italic";break;case"u":X="text-decoration:underline"}y='[[span style="'+(""===X?"":X+";")+I+'"]]'+D[2]+"[[/span]]",B=B.replace(D[0],y)}for(w=!1,k=0,Q=(D=(B=B.replace(/\[\[/g,"<").replace(/\]\]/g,">").replace(/<span/g,"[[*]]<span").replace(/<\/span>/g,"</span>[[*]]")).split("[[*]]")).length;k<Q;k++)if(""!==D[k]){if(r=c.C1,Y=c.sFontWeight,M=c.N1,H=c.QM,L=c.DK,P=c.GD,O=c.FF,N=c.K4,F=D[k],C=/<span style=(.+?)>(.+?)<\/(.+?)>/.exec(D[k]))for(F=C[2],R=0,z=(x=C[1].replace(/\'|"/g,"").split(/;|:/)).length;R<z-1;R+=2)switch(ZC.GT(x[R])){case"font-size":L=ZC._i_(ZC.GT(x[R+1]));break;case"font-family":P=ZC.GT(x[R+1]);break;case"font-weight":Y=ZC.GT(x[R+1]);break;case"font-style":-1!==ZC.AV(["italic","oblique"],ZC.GT(x[R+1]))&&(M=!0);break;case"text-decoration":N=ZC.GT(x[R+1]);break;case"line-height":O=ZC._i_(ZC.GT(x[R+1]));break;case"color":r=ZC.AP.G5(ZC.GT(x[R+1]))}0===a&&(m=-1===O?0:ZC._x_(O-1.25*L)/2);var J={idx:a,ctx:e,i:M,fw:Y,fs:L,lh:O,ff:P,c:r,t:F,dx:t,dy:n};J.dy+=ZC._x_(m),J.dy+=w||c.isBold(Y)||H?2:0,c.paintCANVASText(J),w=M,K++,t+=ZC.Q.A3Y(this.H.K,F,P,L,Y,O)}null!==ZC._n_(O)&&null!==ZC._n_(L)&&(m+=-1===O?1.25*L:O)}else c.paintCANVASText({idx:a,ctx:e,i:c.N1,fw:c.sFontWeight,fs:c.DK,lh:c.FF,ff:c.GD,c:c.C1,t:b[a],dx:t,dy:n+m}),m+=-1===c.FF?1.25*c.DK:c.FF}}else e.drawImage(ZC.CanvasCache[c.K],c.iX+c.BJ,c.iY+c.BH);S&&(c.AA-=.5);break;case"vml":switch(n=0,c.JU){case"top":n-=(c.F-c.KK)/2;break;case"bottom":n+=(c.F-c.KK)/2}var V=ZC.Q.F4("zcv:line"),U=c.iX+c.BJ+c.I/2,W=c.iY+c.BH+c.F/2,j=ZC.EF(c.AA)*(c.I-c.EP-c.FK)/2,q=ZC.EO(c.AA)*(c.I-c.EP-c.FK)/2,$=ZC._i_(U-j-ZC.EF(90-c.AA)*n),ee=ZC._i_(W-q+ZC.EO(90-c.AA)*n),ie=ZC._i_(U+j-ZC.EF(90-c.AA)*n),te=ZC._i_(W+q+ZC.EO(90-c.AA)*n);$===ie&&($-=.01,ie+=.01),ee===te&&(ee-=.01,te+=.01),r=c.C1,0!==c.AA&&c.C5<1&&(r=ZC.AP.QT(r,99*(1-c.C5))),ZC.Q.G2(V,{id:c.K+"-line",from:$+"px,"+ee+"px",to:ie+"px,"+te+"px",fillcolor:r}),V.filled=!0,V.stroked=!1;var ne=ZC.Q.F4("zcv:path");ne.setAttribute("textpathok",!0),V.appendChild(ne);var ae=ZC.Q.F4("zcv:textpath"),le=c.AR.replace(/<br>|<br\/>|<br \/>/gi,"\n").replace(/<.+?>/gi,"").replace(/<\/.+?>/gi,"");ZC.Q.G2(ae,{on:!0,string:le}),ZC.Q.PD(ae,{color:r,fontWeight:c.sFontWeight,fontStyle:c.N1?"oblique":"normal",textDecoration:c.K4,fontSize:c.DK+"px",fontFamily:c.GD,"v-text-align":c.OB}),V.appendChild(ae),e.appendChild(V);break;case"svg":case"svg0":var oe=c.iX+c.EP+c.BJ,re=c.iY+c.FJ+c.BH;if(o=ZC.Q.F4("text","http://www.w3.org/2000/svg"),ZC.Q.G2(o,{x:ZC._x_(oe),y:ZC._x_(re),id:c.K,"class":c.GJ,opacity:c.UX}),c.E["css-display"]&&(o.style.display=c.E["css-display"],c.E["css-display"]=null),c.bRTL&&ZC.Q.G2(o,{"text-anchor":ZC.A4.browser.msie?"":"end","writing-mode":"rl",direction:"rtl","unicode-bidi":"bidi-override"}),c.A8D&&(c.H.K7.appendChild(ZC.Q.XA({id:c.K+"-clip",path:[[c.iX+c.EP+c.AT+c.BJ,c.iY+c.FJ+c.AT+c.BH].join(","),[c.iX+c.I-c.FK-c.AT+c.BJ,c.iY+c.FJ+c.AT+c.BH].join(","),[c.iX+c.I-c.FK-c.AT+c.BJ,c.iY+c.F-c.FR-c.AT+c.BH].join(","),[c.iX+c.EP+c.AT+c.BJ,c.iY+c.F-c.FR-c.AT+c.BH].join(","),[c.iX+c.EP+c.AT+c.BJ,c.iY+c.FJ+c.AT+c.BH].join(",")].join(" ")})),ZC.Q.G2(o,{"clip-path":"url(#"+c.K+"-clip)"})),c.AA%360!=0&&o.setAttribute("transform","rotate("+c.AA+" "+(oe+(c.I-c.EP-c.FK)/2)+" "+(re+(c.F-c.FJ-c.FR)/2)+")"),g&&T.appendChild(o),g){ZC.Q.EU(c.K+"-float");var se=ZC.Q.F4("div");ZC.Q.PD(se,{position:"absolute",left:0,top:0,width:c.I-c.EP-c.FK+"px",height:c.F-c.FJ-c.FR+"px",color:c.C1,fontSize:c.DK+"px",fontFamily:c.GD,fontWeight:c.sFontWeight,textDecoration:c.K4,textAlign:c.OB,fontStyle:c.N1?"italic":"normal"}),se.id=c.K+"-float",se.className="zc-style zc-html-mode",se.innerHTML=b[0],1===c.o["z-index"]?ZC.AK(c.H.K+"-top").append(se):ZC.AK(c.H.K+"-top").insertBefore(se,ZC.AK(c.H.K+"-img")),v&&c.H&&c.H.A8&&(c.o.width||c.o.height||(c.H.A8.clear(),se.style.width="",se.style.height="",c.I=ZC.A4(se).width()+c.EP+c.FK,c.F=ZC.A4(se).height()+c.FJ+c.FR,c.paint()))}else for(m=-1===c.FF?0:ZC._x_(c.FF-1.25*c.DK)/2,a=0,l=b.length;a<l;a++){switch(i=1===l?c.NH:c.cwidth(b[a])+c.FK+c.EP,B=b[a],E=-1===B.indexOf("<")?B:B.replace(/<.+?>/gi,"").replace(/<\/.+?>/gi,""),t=0,n=c.DK,c.OB){case"center":t=(c.I-i)/2;break;case"right":t=c.I-i}switch(c.JU){case"middle":n+=(c.F-c.KK)/2;break;case"bottom":n+=c.F-c.KK}if(K=0,B!==E){for(;D=/<(.+?)>(.*?)<\/(.+?)>/.exec(B);){switch(X="",I="",(A=/(.+?)style=(.+?)(\'|")(.*?)/.exec(D[1]))&&(I=A[2].replace(/\'|"/g,"")),D[3]){case"b":case"strong":X="font-weight:bold";break;case"i":case"em":X="font-style:italic";break;case"u":X="text-decoration:underline"}y='[[span style="'+(""===X?"":X+";")+I+'"]]'+D[2]+"[[/span]]",B=B.replace(D[0],y)}for(w=!1,k=0,Q=(D=(B=B.replace(/\[\[/g,"<").replace(/\]\]/g,">").replace(/<span/g,"[[*]]<span").replace(/<\/span>/g,"</span>[[*]]")).split("[[*]]")).length;k<Q;k++)if(""!==D[k]){if(r=c.C1,Y=c.sFontWeight,M=c.N1,H=c.QM,L=c.DK,P=c.GD,N=c.K4,O=c.FF,F=D[k],C=/<span style=(.+?)>(.+?)<\/(.+?)>/.exec(D[k]))for(F=C[2],R=0,z=(x=C[1].replace(/\'|"/g,"").split(/;|:/)).length;R<z-1;R+=2)switch(ZC.GT(x[R])){case"font-size":L=ZC._i_(ZC.GT(x[R+1]));break;case"font-family":P=ZC.GT(x[R+1]);break;case"font-weight":Y=ZC.GT(x[R+1]);break;case"font-style":-1!==ZC.AV(["italic","oblique"],ZC.GT(x[R+1]))&&(M=!0);break;case"text-decoration":N=ZC.GT(x[R+1]);break;case"line-height":O=ZC._i_(ZC.GT(x[R+1]));break;case"color":r=ZC.AP.G5(ZC.GT(x[R+1]))}n=L,s=ZC.Q.F4("tspan","http://www.w3.org/2000/svg"),0===K?(ZC.Q.G2(s,{x:ZC._x_(oe+t),y:ZC._x_(re+n),dy:ZC._x_(m)}),m+=-1===O?1.25*L:ZC.BQ(1.5*L,O)):ZC.Q.G2(s,{dx:w||c.isBold(Y)||H?2:0}),ZC.Q.G2(s,{color:r,fill:r}),ZC.Q.PD(s,{fontWeight:Y,fontStyle:M?"oblique":"normal",textDecoration:N,fontSize:L+"px",fontFamily:P,dominantBaseline:"auto"});var Ae=document.createElement("span");-1!==F.indexOf("<")||-1!==F.indexOf(">")?Ae.innerText=F:Ae.innerHTML=F,F=Ae.innerText||Ae.textContent,Ae=null,s.textContent=F,o.appendChild(s),w=M,K++}}else c.bRTL&&ZC.A4.browser.msie&&(t+=i-c.EP-c.FK),s=ZC.Q.F4("tspan","http://www.w3.org/2000/svg"),ZC.Q.G2(s,{x:ZC._x_(oe+t),y:ZC._x_(re+n),color:c.C1,fill:c.C1,dy:ZC._x_(m)}),ZC.Q.PD(s,{fontWeight:c.sFontWeight,fontStyle:c.N1?"oblique":"normal",textDecoration:c.K4,fontSize:c.DK+"px",fontFamily:c.GD,dominantBaseline:"auto"}),s.textContent=E,o.appendChild(s),m+=-1===c.FF?1.25*c.DK:c.FF}}g||!c.VM&&o&&T&&(c.H.FY?(-1!==ZC.Q.SV(T).indexOf("zc-text")&&null===ZC._n_(c.H.FY[T.id])&&(c.H.FY[T.id]=document.createDocumentFragment()),c.H.FY[T.id]?c.H.FY[T.id].appendChild(o):T.appendChild(o)):T.appendChild(o))}},paintCANVASText:function(e){var i=this,t=e.idx,n=e.ctx,a=e.i,l=e.fw,o=e.fs,r=e.ff,s=e.c,A=e.dx,C=e.dy,c=e.t;n.save(),n.globalAlpha=i.UX;var u="";if(u=(a?"italic":"normal")+" normal "+l+" "+o+"px "+r,n.font=u,n.fillStyle=s,n.textAlign="left",n.textBaseline="alphabetic",n.translate(i.iX+i.BJ,i.iY+i.BH),0!==i.AA&&(n.translate(i.I/2,i.F/2),n.rotate(ZC.SZ(i.AA)),n.translate(-i.I/2,-i.F/2)),n.translate(i.EP,i.FJ+o),n.translate(A,C),n.fillText(c,0,0),zingchart.DEV.CACHECANVASTEXT){var p=ZC.CanvasCache[i.K].getContext("2d");p.font=u,p.fillStyle=s,p.textAlign="left",p.textBaseline="alphabetic",p.fillText(c,i.EP,i.FJ+o+1.25*t*o)}n.restore()},EL:function(e){var i=this;if(ZC.canvas&&"canvas"===i.H.AC&&(e||(e=ZC.AK(i.H.K+"-textprint-c")),!zingchart.CANVASTEXT&&i.AA%360==0)){var t=i.Z;i.Z=e,i.VM=!0;var n=i.H.AC;i.H.AC="canvas",i.paint(),i.VM=!1,i.H.AC=n,i.Z=t}}}),ZC.RG=ZC.HS.C7({$i:function(e){this.b(e);var i=this;i.CI="json",i.NS={graphset:!0,graph:!0,"objects-bottom":!0,"objects-top":!0,maps:!0,plotarea:!0,plots:!0,guide:!0,"static":!0,"value-box":!0},i.A10=!1,i.A0W="en_us",i.QP=null,i.JJ="",i.UA=!1,i.RX={},i.MX="",i.ADI={},i.QB="",i.EW="",i.M6={},i.HM=null,i.AH=[],i.LH="",i.A8=null,i.H9=null,i.D5=null,i.B7=new ZC.AAX(i),i.QN="",i.MM=null,i.NX=[null,null,null,null],i.O3=!1,i.NB="x",i.K5=!1,i.TF=!1,i.ABM=!1,i.A3J=!1,i.GM=!1,i.A9K={},i.NT=null,i.QS={},i.LO=!1,i.QV=!1,i.ACZ=null,i.SN=[],i.N={},i.MT=null,i.DF=null,i.UD=0,i.A1U=0,i.A4Y=1,i.MD=null,i.S8="",i.AAR="F*nStrlng4Cu$tOmLlc9nc9!",i.M9="",i.A0V={},i.A0C=!1,i.AC="",i.K7=null,i.ZM=!1,i.QL=["",""],i.L4=0,i.KM=[],i.A85=0,i.A7D=0,i.A9B=!1,i.A1I="",i.A6E=!0,i.I7=null,i.QQ=[],i.NY=0,i.AAL=!1,i.S6={},i.A13=!1,i.FY=zingchart.DEV.DOMFRAGMENTS?{}:null,i.A27=!1,i.SP=[]},clearLabelBoxes:function(e){var i=this;if(e)for(var t=i.SP.length-1;t>=0;t--)i.SP[t].type===e&&i.SP.splice(t,1);else i.SP=[]},usc:function(){return-1!==ZC.AV(this.KM,"use_single_canvas")},mc:function(e){return e=e||"",ZC.AK(this.K+"-main-c"+(""===e?e:"-"+e))},hideCM:function(){var e;(e=ZC.AK(this.K+"-menu"))&&(e.style.display="none"),this.A9B=!1},ZI:function(){for(var e=this,i=e.NX.length,t=0;t<i;t++)if(null!==ZC._n_(e.NX[t])){switch(e.AC){case"svg":ZC.CS.W6(e.NX[t].ctx,e.NX[t].style,e.NX[t].path.join(" "),e.NX[t].filled);break;case"vml":ZC.CS.W5(e.NX[t].ctx,e.NX[t].style,e.NX[t].path.join(" "),e.NX[t].filled)}e.NX[t]=null}},A8U:function(){function WY(e){if(ZC.NOABOUT&&ZC.NOABOUT instanceof Array){var i=ZC.XL.md5(ZC.A98(ZC.A9T(e)));-1!==ZC.AV(ZC.NOABOUT,i)&&(s.ABM=!0)}}var s=this,i,A7,EY;ZC.LICENSE=ZC.LICENSE||zingchart.LICENSE||"",ZC.BUILDCODE=ZC.BUILDCODE||zingchart.BUILDCODE||"",ZC.LICENSEKEY=ZC.LICENSEKEY||zingchart.LICENSEKEY||"";var A5B;A5B="file:"===document.location.protocol?ZC.HOSTNAME||"":document.location.hostname;var A1L=[A5B],CV=A5B.split(".");for("www"===CV[0]?A1L.push(A5B.replace("www.","")):A1L.push("www."+A5B),i=0;i<=CV.length-2;i++){for(var AB3="*",j=i;j<CV.length;j++)AB3+="."+CV[j];A1L.push(AB3)}if(-1!==ZC.AV(A1L,"localhost")||-1!==ZC.AV(A1L,"127.0.0.1"))s.TF=!0,s.A3J=!0,WY("localhost");else{var A26=[["window.AC.Core.zflags","Q^fhx]XKoJJLnmLPUYiWUuQKAOGnuAIWrSN_ZIj_LYvS`jRkihLOSfysvRQTBtQOUUO^`SdgZUHWKDVQ[xST_SWRLyFKogwOclSB"],["window.jsNorthNine.AppIdentity","09Vczmfsf/Q5G8dRWLio+7PVG0KjUnLRqnRSPOeqf6gu/hpxK6BeHRUtuasojuRTPFQYdzNGN57nxLviTf1hV4lwaFjtbv/tA1g0W0k7AKV1g1ouow1nG/+EJLl0khmPDSKBJa8fkP70KLNtrxt5pE2yjx+IvQ40ajd/03rqqtR="]];for(i=0,A7=A26.length;i<A7;i++)try{if(eval(A26[i][0])===ZC.A9T(A26[i][1])){s.TF=!0;break}}catch(e){}for(i=0,A7=A1L.length;i<A7;i++){var A4S=ZC.XL.md5(ZC.A98(ZC.A9T(A1L[i])));ZC.LICENSE instanceof Array&&-1!==ZC.AV(ZC.LICENSE,A4S)&&(s.TF=!0,WY(A4S))}ZC.BUILDCODE instanceof Array&&2===ZC.BUILDCODE.length&&(EY=ZC.AD7(s.AAR),EY=EY.replace("O","0"),s.S8=ZC.AC3(ZC.BUILDCODE[0],EY),s.S8===ZC.BUILDCODE[1]&&(s.TF=!0,s.A3J=!0,WY(ZC.BUILDCODE[0])))}},A8O:function(){var e=this;if(null!==e.MM)ZC._todash_(e.MM),e.load();else if(null===ZC._n_(ZC.cache.data["defaults-"+e.QN])){var i=["query-string"===e.MX?"zcrandom="+Math.random():"",zingchart.ZCOUTPUT?"zcoutput="+e.AC:""].join("&");ZC.A4.ajax({type:"GET",url:e.QN,dataType:"text",beforeSend:function(i){e.RX.defaults||"http-headers"!==e.MX||i.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT")},data:i,error:function(i,t,n,a){return e.NP({name:"Network error",message:"Resource not found ("+a+")"},"URL Data loader"),!1},success:function(i){var t;try{t=JSON.parse(i),ZC.cache.data["defaults-"+e.QN]=i}catch(n){return e.NP(n,"JSON parser"),!1}e.MM=t,ZC._todash_(e.MM),e.load()}})}else{var t;try{t=JSON.parse(ZC.cache.data["defaults-"+e.QN])}catch(n){return e.NP(n,"JSON parser"),!1}e.MM=t,ZC._todash_(e.MM),e.load()}},load:function(e,i){var t=this;if(t.M9="load",""!==(i=i||t.QB)&&0!==i.indexOf("javascript:"))if(null===ZC._n_(ZC.cache.data["data-"+i])){var n=["query-string"===t.MX?"zcrandom="+Math.random():"",zingchart.ZCOUTPUT?"zcoutput="+t.AC:""].join("&");ZC.A4.ajax({type:"GET",url:i,dataType:"text",beforeSend:function(e){t.RX.data||"http-headers"!==t.MX||e.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT")},data:n,error:function(e,i,n,a){return t.NP({name:"Network error",message:"Resource not found ("+a+")"},"URL Data loader"),!1},success:function(i){t.data_(e,i)}})}else t.data_(e,ZC.cache.data["data-"+i]),ZC.cache.data["data-"+i]=null;else""!==t.EW?t.data_(e,t.EW):null!==t.M6&&(t.A6X?t.M6=JSON.parse(JSON.stringify(t.A6X)):t.A6X=JSON.parse(JSON.stringify(t.M6)),t.data_(e,t.M6))},data_:function(e,i){var t=this;ZC.TS[t.K]=(new Date).getTime(),ZC.AP.A7Y("dataload",t)?ZC.AP.BZ("dataload",t,t.FH(),i,function(i){t.load_(e,i)}):t.load_(e,i)},A4R:function(e){var i,t,n=this;if(!zingchart.DEV.RESOURCES)return[];e||(e=n.o);var a=[];if(e.graphset)for(i=0,t=e.graphset.length;i<t;i++){var l=e.graphset[i].type||"null";if(-1===ZC.AV(ZC.CHARTS,l)){"3d"===l.substring(l.length-2)&&(l=l.substring(0,l.length-2));for(var o in ZC.EQUIV)ZC.EQUIV.hasOwnProperty(o)&&-1!==ZC.AV(ZC.EQUIV[o],l)&&(l=o);zingchart.loadModules(l),a.push(l)}}for(n.ACJ(e),i=0,t=ZC.RE.length;i<t;i++)""!==ZC.GT(ZC.RE[i])&&-1===ZC.AV(ZC.WA,ZC.GT(ZC.RE[i]))&&a.push(ZC.GT(ZC.RE[i]));return a},ACJ:function(e){var i=this;e||(e=i.o)},load_:function(JG,TK){var s=this,G;s.E.rawsource=zingchart.DEV.KEEPSOURCE?TK:"N/A";var DJ=null;if("string"==typeof TK)try{DJ=JSON.parse(TK)}catch(J7){try{DJ=eval("("+TK+")")}catch(J7){return s.NP(J7,"JSON parser"),!1}}else DJ=TK;null===ZC._n_(DJ.graphset)&&(DJ={graphset:[DJ]}),s.E.source="N/A",zingchart.DEV.KEEPSOURCE&&(s.E.source=ZC.GT(JSON.stringify(DJ))),zingchart.A15(s,s.A4R(DJ),function(){DJ=ZC.AP.BZ("dataparse",s,s.FH(),DJ),zingchart.A15(s,s.A4R(DJ),function(){if(ZC.AP.BZ("modulesready",s,{id:s.K}),null===ZC._n_(JG))s.XK(DJ),s.o=DJ,s.A10?(s.parse(),s.paint()):s.Q1(function(){s.parse(),s.paint()});else{var e=s.OR(JG);if(null!==e&&null!==ZC._n_(G=DJ.graphset)){var i=G.length>1?G[e.L]:G[0];i.id||(i.id=e.o.id||""),s.o.graphset[e.L]=i,s.Q1(function(){s.parse(JG),s.AH[e.L].paint()})}}})})},XK:function(DJ){var s=this,G,i,A7,j,J9;for(null===ZC._n_(DJ.graphset)&&(DJ={graphset:[DJ]}),1===DJ.graphset.length&&null===ZC._n_(DJ.graphset[0])&&(DJ.graphset=[{type:"null"}]),i=0,A7=DJ.graphset.length;i<A7;i++)if(null!==ZC._n_(DJ.graphset[i])){if(null!==ZC._n_(G=DJ.graphset[i].shapes)){var FE=[];for(DJ.graphset[i].labels=DJ.graphset[i].labels||[],j=0,J9=G.length;j<J9;j++)if(G[j].generated&&G[j]["map-item"]||FE.push(G[j]),null!==ZC._n_(G[j].type)&&0===G[j].type.indexOf("zingchart."))try{var LS=G[j].options||{},EI=G[j].type+"."+(LS.name||"");LS.graphid=i;var A2P=eval(EI).call(s,LS,DJ,G[j]);for(var A3O in A2P)A2P.hasOwnProperty(A3O)&&("label"===A2P[A3O].objtype?DJ.graphset[i].labels.push(A2P[A3O]):FE.push(A2P[A3O]))}catch(e){}DJ.graphset[i].shapes=FE}var A69;if(null!==ZC._n_(A69=DJ.graphset[i].widgets))for(var AAS=s.A4J(DJ,i),k=0;k<A69.length;k++){var A2L=A69[k];if(null!==ZC._n_(A2L.type)&&null!==ZC._n_(zingchart.widgets[A2L.type])&&"function"==typeof zingchart.widgets[A2L.type].parse)try{var BO={};ZC._cp_(A2L,BO),BO.graph=AAS.graph,BO.loader={id:s.K,width:s.I,height:s.F};var o=zingchart.widgets[A2L.type].parse.call(s,BO);if(null!==ZC._n_(G=o.graphs))for(j=0;j<G.length;j++)DJ.graphset.push({}),ZC._cp_(G[j],DJ.graphset[DJ.graphset.length-1]);if(null!==ZC._n_(G=o.labels))for(null===ZC._n_(DJ.graphset[i].labels)&&(DJ.graphset[i].labels=[]),j=0;j<G.length;j++)DJ.graphset[i].labels.push(G[j]);if(null!==ZC._n_(G=o.shapes))for(null===ZC._n_(DJ.graphset[i].shapes)&&(DJ.graphset[i].shapes=[]),j=0;j<G.length;j++)DJ.graphset[i].shapes.push(G[j])}catch(e){}}}},AAA:function(e,i){var t=this;switch(e){case"line":return new ZC.A61(t);case"area":return new ZC.A5Z(t);case"vline":return new ZC.AA6(t);case"varea":return new ZC.AA2(t);case"bar":case"vbar":case"column":return new ZC.A2C(t);case"hbar":return new ZC.A2E(t);case"mixed":case"hmixed":case"mixed3d":for(var n=!1,a=t.o.graphset[i].series,l=0,o=a.length;l<o;l++)a[l]&&a[l].type&&-1!==a[l].type.indexOf("3d")&&(n=!0);return n?new ZC.A2R(t):t.o.graphset[i].plot&&t.o.graphset[i].type&&t.o.graphset[i].plot&&t.o.graphset[i].plot.type&&-1!==t.o.graphset[i].plot.type.indexOf("3d")?new ZC.A2R(t):"mixed"===e?new ZC.A4N(t):new ZC.A8H(t);case"scatter":return new ZC.A7G(t);case"hscatter":return new ZC.A6S(t);case"bubble":return new ZC.A8Q(t);case"hbubble":return new ZC.A7V(t);case"ring":case"pie":return new ZC.A38(t);case"nestedpie":return new ZC.A6K(t);case"radar":case"polar":return new ZC.A9E(t);case"venn":return new ZC.AAE(t);case"bullet":case"vbullet":return new ZC.A7C(t);case"hbullet":return new ZC.A79(t);case"funnel":case"vfunnel":return new ZC.A7F(t);case"hfunnel":return new ZC.A82(t);case"heatmap":case"piano":return new ZC.A9N(t);case"stock":return new ZC.A9I(t);case"range":return new ZC.A9F(t);case"vrange":return new ZC.ZCVRangeGraph(t);case"gauge":return new ZC.A9A(t);case"line3d":return new ZC.A8S(t);case"area3d":return new ZC.A8T(t);case"ring3d":case"pie3d":return new ZC.A57(t);case"bar3d":case"vbar3d":return new ZC.A8L(t);case"hbar3d":return new ZC.A8J(t);case"null3d":return new ZC.A8I(t);default:return new ZC.AA7(t)}},OR:function(e){for(var i=this,t=0,n=i.AH.length;t<n;t++)if(i.AH[t].K===i.K+"-graph-"+e||i.AH[t].K===i.K+"-graph-id"+e||i.AH[t].K===e||t===e)return i.AH[t];return null},A4O:function(e,i){var t=this,n=ZC.A4("#"+t.K+("svg"===t.AC?"-top":"-main")),a=ZC._tx_(t.K);e-=n.offset().left,i-=n.offset().top;for(var l=null,o=0,r=t.AH.length;o<r;o++)ZC.DT(e,t.AH[o].iX,t.AH[o].iX+t.AH[o].I*a[0])&&ZC.DT(i,t.AH[o].iY,t.AH[o].iY+t.AH[o].F*a[1])&&(l=t.AH[o]);return l},A9J:function(e){var i,t=this;if("undefined"==typeof t.E.themesloaded){void 0===e&&(e=!1),t.assign_a([["theme","LH"]]),t.o.graphset&&1===t.o.graphset.length&&null!==ZC._n_(i=t.o.graphset[0].theme)&&(t.LH=i),""===t.LH&&(t.LH="light"),t.LH=String(t.LH).replace("zingchart","classic");for(var n=t.LH.split(/\s+|;|,/),a=0,l=n.length;a<l;a++)t.B7.AAP(n[a]);t.B7.A8O(t.MM),ZC.mobile&&t.B7.AAP("mobile"),e||(t.E.themesloaded=!0)}},parse:function(e){var i,t,n,a,l,o,r=this;r.NB="x",r.E.json=ZC.GT(JSON.stringify(r.o)),ZC._cp_(r.o.layers,r.NS),1===r.o.graphset.length&&ZC._cp_(r.o.graphset[0].layers,r.NS);var s=r.FH();if(null!==ZC._n_(e)&&(s.graphid=e),ZC.AP.BZ("dataready",r,s),r.M9="parse",r.QL[1]=r.QL[0],r.QL[0]="",r.QL[0]+=r.I+":"+r.F+":",null!==ZC._n_(i=r.o.graphset))for(r.QL[0]+=i.length+":",a=0;a<i.length;a++)r.QL[0]+=(i[a].type||"")+":",r.QL[0]+=(i[a].x||"")+":"+(i[a].y||"")+":"+(i[a].width||"")+":"+(i[a].height||"")+":",null!==ZC._n_(i[a].series)&&(r.QL[0]+=i[a].series.length+":");if(ZC.AK(r.K+"-main-c")&&r.clear(e,!1),"undefined"!=typeof ZC.AA0&&(r.H9=new ZC.AA0(r)),null===ZC._n_(e)){r.A9J(),r.B7.B7["font-family"]&&(zingchart.FONTFAMILY=r.B7.B7["font-family"]);var A=!!r.o.gui;if(r.B7.load(r.o,"loader",!1,!0),r.assign_a([["gui","DF"],["globals","QP"]]),r.o.graphset&&1===r.o.graphset.length&&(t=r.o.graphset[0],null!==ZC._n_(i=t.gui)&&(r.DF=i),null!==ZC._n_(i=t.globals)&&(r.QP=i)),ZC._todash_(r.QP),ZC._cp_(r.B7.B7.root.gui,r.DF,!1,!0,!0),r.DF.behaviors)for(a=r.DF.behaviors.length-1;a>=0;a--)for(o=0;o<a;o++)if(r.DF.behaviors[a].id===r.DF.behaviors[o].id){r.DF.behaviors.splice(a,1);break}if(A||delete r.o.gui,ZC._todash_(r.DF),r.N={},null!==ZC._n_(i=r.o.style))for(n in i)"url"!==n&&(r.N[n]=i[n]);if(r.o.graphset&&1===r.o.graphset.length&&(t=r.o.graphset[0],null!==ZC._n_(i=t.style)))for(n in i)"url"!==n&&(r.N[n]=i[n]);ZC._todash_(r.N),r.NS.graphset&&r.b(),r.assign_a([["locale","A0W"],["set-locale","A0W"],["layout","NB"],["h-space","A85","i"],["v-space","A7D","i"],["flat","K5","b"],["show-progress","A0C","b"]]),r.o.graphset&&1===r.o.graphset.length&&(t=r.o.graphset[0],null!==ZC._n_(i=t.locale)&&(r.A0W=i),null!==ZC._n_(i=t["set-locale"])&&(r.A0W=i),null!==ZC._n_(i=t.flat)&&(r.K5=ZC._b_(i)),null!==ZC._n_(i=t["show-progress"])&&(r.A0C=ZC._b_(i))),null!==ZC._n_(i=zingchart.i18n[r.A0W])&&(ZC.HI=i),r.AH=[]}var C=0,c=0,u=r.I,p=r.F;if(null!==ZC._n_(r.o.margin)||null!==ZC._n_(r.o["margin-top"])||null!==ZC._n_(r.o["margin-right"])||null!==ZC._n_(r.o["margin-bottom"])||null!==ZC._n_(r.o["margin-left"])){var Z=new ZC.HS(r);Z.append(r.o,!1,!1),Z.parse(),C=Z.DV,c=Z.E5,u=u-Z.DV-Z.E6,p=p-Z.E5-Z.DP}var h,d,f=r.OR(e);if(null!==ZC._n_(h=r.o.graphset)){var _=0;for(a=0,l=h.length;a<l;a++)d=0,null!==ZC._n_(i=h[a].page)&&(d=ZC._i_(i)),_+=r.L4===d?1:0;var g=ZC.AO.A20(r.NB,_),v=ZC._i_(g[0]),b=ZC._i_(g[1]),m=0,B=0,E=0;for(a=0,l=h.length;a<l;a++){if(d=0,null===f&&null!==ZC._n_(i=h[a].page)&&(d=ZC._i_(i)),(null===f||E===f.L)&&r.L4===d){if(r.AH[E]=r.AAA(h[a].type||"null",a),r.AH[E].O8=r.AH[E].AF+"graph",r.B7.load(r.AH[E].o,"graph"),r.B7.load(r.AH[E].o,h[a].type||"null"),r.AH[E].append(r.o.graph),r.AH[E].append(h[a]),r.AH[E].L=E,null===ZC._n_(h[E].id)||""===h[E].id?r.AH[E].K=r.K+"-graph-id"+E:r.AH[E].K=r.K+"-graph-"+h[a].id,h.length>0){for(var K=0,F=0,D=ZC._i_((u-(b+1)*r.A85)/b),X=ZC._i_((p-(v+1)*r.A7D)/v),I=["x","y","width","height"],x=0;x<I.length;x++)null!==ZC._n_(r.E["graph-"+E+"-"+I[x]])&&(delete r.E["graph-"+E+"-"+I[x]],delete r.AH[E].o[I[x]]);null===ZC._n_(r.AH[E].o.x)?r.E["graph-"+E+"-x"]=r.AH[E].o.x=ZC._i_(r.iX+(m+1)*r.A85+m*D)+C:(K=ZC.IG(r.AH[E].o.x))<1&&(K=ZC._i_(r.I*K)),null===ZC._n_(r.AH[E].o.y)?r.E["graph-"+E+"-y"]=r.AH[E].o.y=ZC._i_(r.iY+(B+1)*r.A7D+B*X)+c:(F=ZC.IG(r.AH[E].o.y))<1&&(F=ZC._i_(r.F*F)),null===ZC._n_(r.AH[E].o.width)&&(r.E["graph-"+E+"-width"]=r.AH[E].o.width=Math.max(D,D-K)),null===ZC._n_(r.AH[E].o.height)&&(r.E["graph-"+E+"-height"]=r.AH[E].o.height=Math.max(X,X-F))}r.AH[E].parse()}r.L4===d&&(E++,++m===b&&(B++,m=0))}}null===ZC._n_(e)&&null!==ZC._n_(i=r.o.refresh)&&(r.HM={type:"full",interval:10},ZC._cp_(i,r.HM))},A3W:function(e,i){i=i||"";var t=[];for(var n in e)if("object"==typeof e[n])for(var a=this.A3W(e[n],i+"."+n),l=0,o=a.length;l<o;l++)-1===ZC.AV(t,a[l])&&t.push(a[l]);else{var r=i+"."+n;"background-image"!==n&&"backgroundImage"!==n||""===e[n]||"zc."===e[n].substring(0,3)||(!ZC.ie67&&ZC.PATTERNS&&"PATTERN_"===e[n].substring(0,8)&&(e[n]=ZC.PATTERNS[e[n].substring(8)]),"!"===e[n].charAt(0)&&(e[n]=e[n].substring(1),this.E["safe-images"]=this.E["safe-images"]||[],this.E["safe-images"].push(e[n])),t.push([e[n],"image"])),"src"===n&&""!==e[n]&&"zc."!==e[n].substring(0,3)&&-1!==r.indexOf(".images.")&&(!ZC.ie67&&ZC.PATTERNS&&"PATTERN_"===e[n].substring(0,8)&&(e[n]=ZC.PATTERNS[e[n].substring(8)]),"!"===e[n].charAt(0)&&(e[n]=e[n].substring(1),this.E["safe-images"]=this.E["safe-images"]||[],this.E["safe-images"].push(e[n])),t.push([e[n],"image"])),".csv"===r.substr(r.length-4,4)&&"string"==typeof e[n]&&t.push([e[n],"csv"]),"url"===n&&(-1!==r.indexOf(".style.")&&t.push([e[n],"css"]),-1!==r.indexOf(".csv.")&&t.push([e[n],"csv"]),-1!==r.indexOf(".marker.")&&t.push([e[n],"image"])),"string"==typeof e[n]&&"url"!==n&&(0===e[n].indexOf("url:")&&"values"===n||0===e[n].indexOf("javascript:"))&&-1===ZC.AV(["format","text","tooltipText"],ZC.EC(n))&&t.push([e[n],"data"])}return t},Q1:function(J8){function A2K(i){if(!(i>=J1.length)){var EW,MC,K9=J1[i][0],A08=J1[i][1];if("url:"===K9.substring(0,4)){var QB=K9.substring(4);s.QS["url:"+QB]="[]";try{EW=["query-string"===s.MX?"zcrandom="+Math.random():""].join("&"),ZC.A4.ajax({type:"GET",url:QB,beforeSend:function(e){s.RX.data||"http-headers"!==s.MX||e.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT")},data:EW,error:function(e,i,t,n){return s.NP({name:"Network error",message:"Resource not found ("+n+")"},"URL Data loader"),!1},success:function(e,i,t,n){s.QS["url:"+n]=e,UD++}})}catch(J7){return s.NP(J7,"URL Data loader"),!1}}else if("javascript:"===K9.substring(0,11))if("zc.ext.load"===s.QS[K9]){s.QS[K9]="[]";var DZ=ZC.AP.AA8(K9.substring(11)),O={id:s.K,resource:K9,callback:function(e){s.QS[K9]=e,UD++}},ZY=DZ[0];O.arguments=DZ[1];try{var Z1=eval(ZY).call(s,O);null!==ZC._n_(Z1)&&Z1&&(s.QS[K9]=Z1,UD++)}catch(J7){return s.NP(J7,"JavaScript data loader"),!1}}else UD++;else"image"===A08?(LD[K9]=new Image,LD[K9].crossOrigin="anonymous",LD[K9].onload=function(){UD++},LD[K9].onerror=function(){var e=ZC._b_(s.o.strict);if(ZC.IMG404.push(K9),e)return s.NP({name:"Network error",message:"Resource not found ("+this.src+")"},"Resource loader (image)"),!1;this.src=ZC.BLANK,UD++},LD[K9].src=K9,ZC.cache.data[K9]=LD[K9]):"css"===A08?(EW=["query-string"===s.MX?"zcrandom="+Math.random():""].join("&"),ZC.A4.ajax({type:"GET",url:K9,beforeSend:function(e){s.RX.css||"http-headers"!==s.MX||e.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT")},data:EW,error:function(e,i,t){return s.NP(t,"Resource loader"),!1},success:function(e){for(var i={},t=e.match(/[a-zA-Z0-9\.\#\-](.+?)\{((.|\s)+?)\}/gi),n=0,a=t.length;n<a;n++){MC=t[n].split("{");var l=ZC.GT(MC[0]),o=l.split(/\s+/);if(1===o.length||2===o.length&&ZC.GT(o[0])==="#"+s.K){i[l=ZC.GT(1===o.length?o[0]:o[1])]||(i[l]={});for(var r=0,A=(MC=MC[1].replace("}","").split(";")).length;r<A;r++){var C=MC[r].split(":");2===C.length&&(i[l][ZC.GT(C[0])]=""+ZC.GT(C[1]))}}}null!==ZC._n_(s.o.style)?ZC._cp_(i,s.o.style):null!==ZC._n_(s.o.graphset)&&1===s.o.graphset.length&&s.o.graphset[0].style&&ZC._cp_(i,s.o.graphset[0].style),UD++}})):"csv"===A08&&(EW=["query-string"===s.MX?"zcrandom="+Math.random():""].join("&"),ZC.A4.ajax({type:"GET",url:K9,beforeSend:function(e){s.RX.csv||"http-headers"!==s.MX||e.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT")},data:EW,error:function(e,i,t){return s.NP(t,"Resource loader"),!1},success:function(e,i,t,n){s.A9K[n]=e,UD++}}))}}var s=this;if(zingchart.DEV.RESOURCES){var J1=s.A3W(s.o).concat(s.A3W(s.MM));if(0!==J1.length){var UD=0,LD={},A14=0;s.E["safe-images"]=s.E["safe-images"]||[];var C3=window.setInterval(function(){if(UD>=J1.length){window.clearInterval(C3),s.ABH(s.o);for(var e in LD)if(0!==e.indexOf("data:")&&-1===ZC.AV(s.E["safe-images"],e))try{var i=document.createElement("canvas");i.width=LD[e].width,i.height=LD[e].height,i.getContext("2d").drawImage(LD[e],0,0);var t=i.toDataURL("image/png");LD[e].onload=null,LD[e].onerror=null,LD[e].src=t,ZC.cache.data[e]=LD[e]}catch(n){}window.setTimeout(function(){zingchart.XR[s.K]&&J8()},1)}else A2K(++A14)},20);A2K(A14)}else zingchart.XR[s.K]&&J8()}else zingchart.XR[s.K]&&J8()},ABH:function(BY){var s=this;for(var p in BY)if("object"==typeof BY[p])s.ABH(BY[p]);else for(var EW in s.QS)EW===BY[p]&&(BY[p]=eval(s.QS[EW]))},resize:function(e){var i,t,n,a,l=this;if(l.E.resize=!0,l.E.wh=l.I+"/"+l.F,l.o.graphset)if(l.A13)zingchart.exec(l.K,"destroy"),zingchart.render(zingchart.params[l.K]);else if(void 0===e&&(e=!1),ZC.AP.BZ("resize",l,l.FH()),e=!1);else{for(t=0;t<l.AH.length;t++)for(a=0;a<l.AH[t].AY.A6.length;a++)l.E["g-"+t+"-p-"+a+".visible"]=l.AH[t].E["plot"+a+".visible"];for(t=0;t<l.AH.length;t++)l.E["g-"+l.AH[t].L+"-selection"]=JSON.stringify(l.AH[t].CH);for(var o=l.o.graphset,r=["labels","shapes"],s=0,A=o.length;s<A;s++)for(var C=0;C<r.length;C++){var c=r[C],u=[];if(null!==ZC._n_(o[s][c])){for(t=0,n=o[s][c].length;t<n;t++)o[s][c][t].generated||u.push(o[s][c][t]);o[s][c]=u}}if(l.XK(l.o),l.o=ZC.AP.BZ("dataparse",l,l.FH(),l.o),ZC.A4("#"+l.K+"-top").width(l.I).height(l.F),l.E["from-api"]&&(ZC.A4("#"+l.K+"-wrapper").width(l.I).height(l.F),delete l.E["from-api"]),1===(i=ZC.A4("#"+l.K+"-img")).length&&i.width(l.I).height(l.F).css("clip","rect(1px,"+(l.I-1)+"px,"+(l.F-1)+"px,1px)"),"svg"===l.AC&&(l.K7.setAttribute("width",l.I),l.K7.setAttribute("height",l.F)),"canvas"===l.AC||"vml"===l.AC){for(ZC.A4("#"+l.K+"-main").width(l.I).height(l.F),t=0,n=l.AH.length;t<n;t++)ZC.A4("#"+l.AH[t].K+"-hover").remove();ZC.A4("#"+l.K+"-main>div").width(l.I).height(l.F)}for("canvas"===l.AC&&((i=ZC.AK(l.K+"-main-c"))&&(i.width=l.I,i.height=l.F),(i=ZC.AK(l.K+"-main-c-top"))&&(i.width=l.I,i.height=l.F),ZC.A4("#"+l.K+"-objects-bottom canvas, #"+l.K+"-objects-top canvas, #"+l.K+"-tools canvas").each(function(){this.width=l.I,this.height=l.F})),"vml"===l.AC&&ZC.A4("#"+l.K+"-objects-bottom div, #"+l.K+"-objects-top div, #"+l.K+"-tools div").each(function(){this.style.width=l.I+"px",this.style.height=l.F+"px"}),l.parse(),t=0,n=l.AH.length;t<n;t++)l.AH[t].U0&&l.AH[t].U0(),l.AH[t].HF=!0,l.AH[t].A5Q=l.AH[t].GA,l.AH[t].GA=!1;for(l.paint(),t=0;t<l.AH.length;t++)for(a=0;a<l.AH[t].AY.A6.length;a++)delete l.E["g-"+t+"-p-"+a+".visible"];for(t=0;t<l.AH.length;t++)l.AH[t].HF=!1,l.AH[t].GA=l.AH[t].A5Q,delete l.AH[t].A5Q,delete l.E["g-"+l.AH[t].L+"-selection"]}},clearGenerated:function(){var e=this.o.graphset,i=["labels","shapes"];if(e)for(var t=0,n=e.length;t<n;t++)for(var a=0;a<i.length;a++){var l=i[a],o=[];if(null!==ZC._n_(e[t][l])){for(var r=0,s=e[t][l].length;r<s;r++)e[t][l][r].generated||o.push(e[t][l][r]);e[t][l]=o}}},clear:function(e,i,t){var n=this;for(var a in n.E)-1!==a.indexOf("-label-")&&-1!==a.indexOf("-bounds")&&delete n.E[a];if(void 0===i&&(i=!0),ZC.A4("."+n.K+"-history-area").die("click",n.A0J),ZC.A4("."+n.K+"-history-area").remove(),null!==ZC._n_(e))n.OR(e).clear();else{i&&n.clearGenerated(),n._unbind_();for(var l=0,o=n.AH.length;l<o;l++)"vml"===n.AC&&t?n.AH[l].destroy():n.AH[l].clear();var r,s,A;null!==(r=ZC.AK(n.K+"-main-c"))&&ZC.Q.IQ(r,n.AC,n.iX,n.iY,n.I,n.F),null!==(A=ZC.AK(n.K+"-main-c-top"))&&ZC.Q.IQ(A,n.AC,n.iX,n.iY,n.I,n.F),null!==(s=ZC.AK(n.K+"-trigger-c"))&&(ZC.Q.IQ(s,n.AC,n.iX,n.iY,n.I,n.F),ZC.A4("#"+n.K+"-menu-area").remove()),n.A8&&n.A8.hide(),ZC.A4("."+n.K+"-menu-item").remove(),ZC.Q.EU([n.K+"-menu-trigger",n.K+"-menu"]),ZC.Q.EU(n.K+"-license-text"),null!==n.I7&&ZC.Q.EU([n.K+"-history-path",n.K+"-history-back-path",n.K+"-history-forw-path",n.K+"-history-gradient",n.K+"-history-back-gradient",n.K+"-history-forw-gradient"])}},AAU:function(){var e,i,t,n=this,a=n.I+"/"+n.F,l=ZC.Q.HX({id:n.K+"-wrapper",position:"relative",p:ZC.AK(n.K)});ZC.Q.PD(l,{height:"100%"===n.MN?n.MN:n.F+"px",width:"100%"===n.FV?n.FV:n.I+"px"});var o=ZC.Q.HX({cls:"zc-rel zc-top",wh:a,id:n.K+"-top",overflow:"hidden",position:"absolute",p:l});switch(zingchart.OFFSET&&(o.style.left="-0.5px",o.style.top="-0.5px"),n.AC){case"svg":n.K7=ZC.Q.F4("svg","http://www.w3.org/2000/svg"),n.K7.setAttributeNS&&n.K7.setAttributeNS(null,"xlink","http://www.w3.org/1999/xlink"),ZC.Q.G2(n.K7,{version:"1.1",id:n.K+"-svg","class":"zc-svg",width:n.I,height:n.F,display:"block"}),o.appendChild(n.K7);var r=ZC.Q.F4("defs","http://www.w3.org/2000/svg");if(r.id=n.K+"-defs",n.K7.appendChild(r),ZC.Q.JW({cls:"zc-rel zc-main",wh:a,id:n.K+"-main",p:n.K7},n.AC),n.A1X=[],n.o.graphset)for(e=0,i=n.o.graphset.length;e<i;e++)if((t=n.o.graphset[e].resources)&&t.length)for(var s=0;s<t.length;s++)if("css"===t[s].type&&t[s].url){var A=ZC.Q.F4("link","http://www.w3.org/2000/svg");ZC.Q.G2(A,{xmlns:"http://www.w3.org/1999/xhtml",href:t[s].url,rel:"stylesheet",type:"text/css"}),n.A1X.push(t[s].url),r.appendChild(A)}break;case"vml":case"canvas":ZC.Q.HX({cls:"zc-rel zc-main",wh:a,id:n.K+"-main",p:o})}},paintHistory:function(){},paint:function(){var e=this;e.M9="paint";var i=e.I+"/"+e.F;if(e.A0G(),null===ZC.AK(e.K+"-top")){e.AAU();var t=ZC.AK(e.K+"-main");if(e.NS.graphset&&ZC.Q.HE({cls:"zc-abs",id:e.K+"-main-c",wh:i,p:t},e.AC),e.H.usc())ZC.Q.HE({cls:"zc-abs",id:e.K+"-main-c-top",wh:i,p:t},e.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:e.K+"-print-c",p:t,wh:i,display:"none"},e.AC);else{ZC.Q.JW({cls:"zc-abs",wh:i,id:e.K+"-objects-bottom",p:t},e.AC),zingchart.DEV.MAPSONBOTTOM&&ZC.Q.JW({cls:"zc-abs",wh:i,id:e.K+"-objects-maps",p:t},e.AC),ZC.Q.JW({cls:"zc-abs",wh:i,id:e.K+"-graphset",p:t},e.AC),zingchart.DEV.MAPSONBOTTOM||ZC.Q.JW({cls:"zc-abs",wh:i,id:e.K+"-objects-maps",p:t},e.AC),ZC.Q.JW({cls:"zc-abs",wh:i,id:e.K+"-objects-top",p:t},e.AC),ZC.Q.JW({cls:"zc-abs",wh:i,id:e.K+"-hover",p:t},e.AC),ZC.Q.JW({cls:"zc-abs",wh:i,id:e.K+"-objects-front",p:t},e.AC),ZC.Q.JW({cls:"zc-abs zc-text",wh:i,id:e.K+"-text",p:t},e.AC);var n="legend",a="tools";("legend"===e.o["top-layer"]||e.o.graphset&&1===e.o.graphset.length&&"legend"===e.o.graphset[0]["top-layer"])&&(n="tools",a="legend"),ZC.Q.JW({cls:"zc-abs",wh:i,id:e.K+"-"+n,p:t},e.AC),ZC.Q.JW({cls:"zc-abs",wh:i,id:e.K+"-"+a,p:t},e.AC);var l=ZC.AK(e.K+"-tools");e.NS["static"]&&ZC.Q.HE({cls:"zc-abs zc-layer",id:e.K+"-static-c",wh:i,p:l},e.AC),e.NS.guide&&ZC.Q.HE({cls:"zc-abs zc-layer zc-guide-c",id:e.K+"-guide-c",wh:i,p:l},e.AC),(ZC.A4.browser.opera&&ZC._i_(ZC.A4.browser.version)<=9.5||ZC.mobile||"classic"!==e.LH)&&ZC.Q.HE({cls:"zc-abs zc-layer",id:e.K+"-trigger-c",wh:i,p:l},e.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:e.K+"-print-c",p:l,wh:i,display:"none"},e.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:e.K+"-textprint-c",p:l,wh:i,display:"none"},e.AC),ZC.Q.JW({cls:"zc-abs",wh:i,id:e.K+"-text-top",p:t},e.AC)}if(!zingchart.DEV.SKIPTRACKERS){var o=document.createElement("img");if(o.id=e.K+"-img",o.className="zc-img",o.setAttribute("useMap","#"+e.K+"-map"),o.setAttribute("alt",""),ZC.Q.PD(o,{position:"absolute",borderWidth:0,width:e.I+2*ZC.MAPTX+"px",height:e.F+2*ZC.MAPTX+"px",left:-ZC.MAPTX+"px",top:-ZC.MAPTX+"px",zIndex:0,opacity:0,filter:"alpha(opacity=0)",clip:"rect("+(ZC.MAPTX+1)+"px,"+(e.I+ZC.MAPTX-1)+"px,"+(e.F+ZC.MAPTX-1)+"px,"+(ZC.MAPTX+1)+"px)"}),o.src=(ZC.ie67?"//":"")+ZC.BLANK,ZC.AK(e.K+"-top").appendChild(o),!e.H.usc()){var r=document.createElement("map");r.className="zc-map",ZC.Q.G2(r,{id:e.K+"-map",name:e.K+"-map"}),ZC.AK(e.K+"-top").appendChild(r)}}}e.Z=ZC.AK(e.K+"-main-c"),e.b();var s,A,C=!1,c=!1;for(s=0,A=e.AH.length;s<A;s++){e.AH[s].paint(),(null!==e.AH[s].CX&&e.AH[s].CX.AM||null!==e.AH[s].H7&&e.AH[s].H7.AM)&&(C=!0);for(var u=0;u<e.AH[s].BM.length;u++)if(e.AH[s].BM[u].GM){c=!0;break}}if(e.FY){for(var p in e.FY)ZC.AK(p).appendChild(e.FY[p]);e.FY=null}if(e.E.preservezoom=null,e.TF||e.UA||(e.YO?e.A8K():e.YO=window.setInterval(function(){e.A8U(),e.TF||e.UA?(window.clearInterval(e.YO),ZC.Q.EU(e.K+"-license-text")):ZC.AK(e.K+"-license-text")||e.A8K()},2e3)),-1===ZC.AV(e.KM,"skip_context_menu")&&e.A5P(),-1===ZC.AV(e.KM,"skip_interactivity")?("undefined"!=typeof ZC.A89&&(e.A8=new ZC.A89(e)),c&&e.H9.bind(),C&&"undefined"!=typeof ZC.K1&&(e.D5=new ZC.K1(e),e.D5.bind()),ZC.mobile&&(e.AFT=function(i){ZC.swipe={xy:ZC.Q.M7(i),ts:(new Date).getTime()},i.target.id===e.K+"-menu-area"?(ZC.move=!1,e.A8&&e.A8.hide(),zingchart.YU(i)):(null===e.DF||null===ZC._n_(e.DF["page-scroll"])||e.DF["page-scroll"]||i.preventDefault(),ZC.move=!1,e.hideCM(),e.A8&&e.A8.hide(),e.YS(i))},e.OP=function(){window.clearTimeout(e.AAT),e.A3Q=null},e.AFQ=function(i){if(ZC.swipe){var t=ZC.Q.M7(i);if(ZC._a_(t[0]-ZC.swipe.xy[0])>100&&(new Date).getTime()-ZC.swipe.ts<1e3){var n=e.FH();n.direction=t[0]>ZC.swipe.xy[0]?"right":"left",ZC.AP.BZ("swipe",e,n)}ZC.swipe=null}e.A9B||ZC.move||zingchart.SA(i),e.OP(i)},ZC.A4("#"+e.K+"-img").bind("touchstart",e.AFT).bind("touchmove",e.OP).bind("touchend",e.AFQ),ZC.A4("#"+e.K+"-menu-area").live("touchstart",e.AFT)),e.zc_loader_mousewheel=function(i){var t=e.FH();t.ev=i,ZC.AP.BZ("mousewheel",e,t)},ZC.A4("#"+e.K+"-img").bind("mousewheel",e.zc_loader_mousewheel),ZC.A4("#"+e.K+"-map").bind("mousewheel",e.zc_loader_mousewheel),e.A1S=function(i){27===i.keyCode&&e.QV&&(e.A7E||e.A8Z())},ZC.A4(document).bind("keyup",e.A1S),e.A8Z=function(){ZC.A4("#"+e.K+"-menu-item-exitfullscreen").die("click",e.A8Z),ZC.FSSTATUS=null,ZC.Q.EU(e.K+"-data-table"),e.destroy(),zingchart.FSID&&ZC.AK(zingchart.FSID)&&(ZC.AK(zingchart.FSID).style.display="none")},ZC.A4("#"+e.K+"-menu-item-exitfullscreen").live("click",e.A8Z)):ZC.mobile&&(e.zc_loader_touchstart_static=function(e){return e.preventDefault(),zingchart.SA(e),!1},ZC.A4("#"+e.K+"-img").bind("touchstart",e.zc_loader_touchstart_static)),null!==e.HM){var Z=ZC._i_(e.HM.interval);Z=Z>=50?Z:1e3*Z,window.setTimeout(function(){e.MV(),e.load()},Z)}e.M9="",ZC.TS[e.K]=(new Date).getTime()-ZC.TS[e.K],e.E["fire-complete"]&&(ZC.AP.BZ("complete",e,e.FH()),e.E["fire-complete"]=null),e.E["fire-load"]&&(ZC.AP.BZ("load",e,e.FH()),e.E["fire-load"]=null)},togglePreviewMasks:function(e){for(var i=this,t=0;t<i.AH.length;t++)i.AH[t].BA&&i.AH[t].BA.toggleMasks(e)},createPreviewMasks:function(){var e=this,i=document.createElement("canvas");i.width=e.I,i.height=e.F,i.setAttribute("class","");for(var t=0;t<e.AH.length;t++)e.AH[t].BA&&e.AH[t].BA.toggleMasks(!0,i);return i},AGC:function(){var e=this;null===ZC._n_(ZC.showZCAbout)&&(ZC.showZCAbout=function(e){zingchart.exec(e.id,"toggleabout")}),zingchart.exec(e.K,"addmenuitem",{text:"About ZingChart","function":"ZC.showZCAbout()",order:100})},A8K:function(){var e,i=this,t={},n=i.DF.watermark;i.B7.load(t,"loader.gui.watermark"),n&&ZC._cp_(n,t),1===i.o.graphset.length&&i.o.graphset[0].gui&&(e=i.o.graphset[0].gui.watermark)&&ZC._cp_(e,t);var a=ZC._l_(ZC._i_(t.type||1),1,2),l=t.position||"br";-1===ZC.AV(["tl","tr","br","bl"],l)&&(l="br"),i.ACT=l;var o=32,r=146,s=0,A=1,C="";ZC.ie67&&(o=30,r=168,s=8,A=1),r=126,o=22;var c={light:["#6D6E71","#00384A"],dark:["#FFFFFF","#09A9DA"]},u=c.light;if(zingchart.THEME&&(u="light"===i.LH||"classic"===i.LH?c.light:c.dark),1===i.o.graphset.length)if(i.o.graphset[0]["background-color"]){var p=ZC.AP.G5(i.o.graphset[0]["background-color"]);7===p.length&&(u=ZC.AP.AA3(p,c.dark,c.light))}else if(i.o.graphset[0].theme){var Z=i.o.graphset[0].theme;u="light"===Z||"classic"===Z?c.light:c.dark}var h="undefined"!=typeof window&&window.location?window.location.origin:"",d="undefined"!=typeof window&&window.location?window.location.pathname:"";C='<a title="JavaScript Charts by ZingChart" style="color:'+u[0]+' !important;font-size:11px !important;display:block !important;opacity:1 !important; text-decoration:none;" href="http://www.zingchart.com/?origin='+h+"&pathname="+d+'">Powered by <span style="color:'+u[1]+'; font-weight:bold;">ZingChart</span></a>';var f,_;switch(l){case"br":f=i.F-o,_=i.I-r;break;case"bl":f=i.F-o,_=6;break;case"tr":f=2,_=i.I-r;break;case"tl":f=2,_=6}null!==ZC._n_(e=ZC.AK(i.K+"-top"))&&ZC.Q.HX({cls:ZC.ie67?"-ie67":"",p:e,id:i.K+"-license-text",tl:f+"/"+_,wh:r+"/"+(o-s),color:ZC.ie67?1===a?"#369":"#fff":"",padding:s,opacity:A,position:"absolute",cursor:"pointer",fontFamily:zingchart.FONTFAMILY,html:C},i.AC)},_unbind_:function(){var e=this;ZC.A4("#"+e.K+"-menu").die("mousedown",e.TE),ZC.A4("."+e.K+"-menu-item").die("mousedown",e.TE),ZC.A4("."+e.K+"-menu-item").die("click touchend",e.AGQ).die("mouseover",e.AFX).die("mouseout",e.AGM),e.E["menu-item-events"]=!1,null!==e.H9&&e.H9.unbind(),null!==e.D5&&e.D5.unbind(),ZC.mobile&&(ZC.A4("#"+e.K+"-img").unbind("touchstart",e.AFT).unbind("touchmove",e.OP).unbind("touchend",e.AFQ),ZC.A4("#"+e.K+"-menu-area").die("touchstart",e.AFT),ZC.A4("#"+e.K+"-img").unbind("touchstart",e.zc_loader_touchstart_static)),ZC.A4("#"+e.K+"-img").unbind("mousewheel",e.zc_loader_mousewheel),ZC.A4("#"+e.K+"-map").unbind("mousewheel",e.zc_loader_mousewheel),ZC.A4(document).unbind("keyup",e.A1S),ZC.A4("#"+e.K+"-menu-item-exitfullscreen").die("click",e.A8Z)},VG:function(e,i,t){void 0===t&&(t=!1);var n=ZC.AK("zc-menu-"+(t?"sep":"item")+"-"+e);n&&(n.style.display=i?"block":"none")},A5P:function(LA,ev){function A1J(e){return""!==e&&e?"url("+(0===e.indexOf("zc.")?ZC.IMAGES[e]:e)+")":"none"}function J4(e){return'<div id="'+s.K+"-menu-sep-"+e+'" class="zc-menu-sep" style="background-color:'+E0.A0+";background-image:"+A1J(E0.D9)+" repeat-x 50% 0%;border-bottom-width:"+U2["line-width"]+";border-bottom-color:"+U2["line-color"]+';">&nbsp;</div>'}function GS(e,i,t){i=i||ZC.HI["menu-"+e];var n=void 0!==t&&t?" zc-custom-menu-item "+s.K+"-custom-menu-item":"";return'<div class="'+s.K+"-menu-item"+n+'" style="width:'+s.MT.o.width+";color:"+E0.C1+";font-family:"+E0.GD+";font-size:"+E0.DK+"px;background-color:"+E0.A0+";background-image:"+A1J(E0.D9)+" repeat-x 50% 0%;border-top:"+(ZC.ie67?E0.AT:1)+"px solid "+E0.BV+";border-left:"+E0.AT+"px solid "+E0.BV+";border-right:"+E0.AT+"px solid "+E0.BV+";padding:"+E0.FJ+"px "+E0.FK+"px "+E0.FR+"px "+E0.EP+"px;text-align:"+E0.OB+";"+(ZC.HI.rtl?"unicode-bidi:bidi-override;direction:rtl;":"")+'" id="'+s.K+"-menu-item-"+e+'">'+i+"</div>"}function A2Q(e,i,t){var n=void 0!==t&&t?" zc-custom-menu-header "+s.K+"-custom-menu-header":"";return'<div class="zc-menu-header '+s.K+"-menu-header"+n+'" style="color:'+E0.C1+";background-color:#666;border-top:"+(ZC.ie67?E0.AT:1)+"px solid "+E0.BV+";border-left:"+E0.AT+"px solid "+E0.BV+";border-right:"+E0.AT+"px solid "+E0.BV+";padding:"+E0.FJ+"px "+E0.FK+"px "+E0.FR+"px "+E0.EP+"px;text-align:"+E0.OB+";"+(ZC.HI.rtl?"unicode-bidi:bidi-override;direction:rtl;":"")+'" id="'+s.K+"-menu-item-"+e+'">'+i+"</div>"}function G1(e){if(ABB)return{enabled:"none"};for(var i=0,t=RM.length;i<t;i++)if(RM[i].id===e)return RM[i];return{enabled:"all"}}if(!zingchart.DEV.SKIPCONTEXTMENU){var s=this,G,i,A7,j,J9;void 0===LA&&(LA=-1);var DF={};ZC._cp_(s.DF,DF),-1!==LA&&s.o.graphset[LA]&&ZC._cp_(s.o.graphset[LA].gui,DF,null,null,!0),ZC.A4("#"+s.K+"-menu").remove();var RM=[];for("undefined"==typeof ZC.AN&&RM.push({id:"3D",enabled:"none"},{id:"SwitchTo3D",enabled:"none"},{id:"SwitchTo2D",enabled:"none"}),i=DF.behaviors.length-1;i>0;i--)for(var sBId=DF.behaviors[i].id,ii=i-1;ii>=0;ii--)DF.behaviors[ii].id===sBId&&DF.behaviors.splice(ii,1);if(null!==ZC._n_(G=DF.behaviors))for(i=0,A7=G.length;i<A7;i++){var N5=!1;for(j=0,J9=RM.length;j<J9;j++)RM[j].id===G[i].id&&(N5=!0);N5||RM.push(G[i])}var JF=DF["context-menu"],OD=DF["context-menu[mobile]"];for(i=0,A7=RM.length;i<A7;i++)null!==ZC._n_(RM[i]["function"])&&(null===ZC._n_(JF)&&(JF={}),null===ZC._n_(JF["custom-items"])&&(JF["custom-items"]=[]),JF["custom-items"].push(RM[i]));JF["custom-items"]&&JF["custom-items"].sort(function(e,i){return ZC._i_(e.order||"0")>ZC._i_(i.order||"0")}),s.MT=new ZC.DS(s);var A0Z=s.LH.split(/\s+|;|,/);for(i=0,A7=A0Z.length;i<A7;i++)if(s.B7.NU[A0Z[i]]){var A0U=s.B7.NU[A0Z[i]].root||{};A0U&&A0U.gui&&A0U.gui.contextMenu&&ZC._cp_(A0U.gui.contextMenu,s.MT.o)}s.B7.load(s.MT.o,"loader.gui.context-menu"),JF&&s.MT.append(JF),ZC.mobile&&(s.B7.load(s.MT.o,"loader.gui.context-menu[mobile]"),OD&&s.MT.append(OD)),s.MT.WJ=!0,s.MT.parse();var E0,L9,U2,ABB,GR;if(s.MT.AM||!s.A3J){if(!ZC.AK(s.K+"-menu-area")){var A4W=!!(s.DF&&s.DF["context-menu"]&&s.DF["context-menu"].button)&&ZC._n_(s.DF["context-menu"].button.visible);if(A4W||"classic"!==s.LH&&A4W){GR=new ZC.DS(s),s.B7.load(GR.o,"loader.gui.context-menu.button"),JF&&ZC._n_(null!==(G=JF.button))&&GR.append(G),ZC.mobile&&(s.B7.load(GR.o,"loader.gui.context-menu[mobile].button"),OD&&null!==ZC._n_(G=OD.button)&&GR.append(G)),ZC._cp_(s.MT.o,JF);var A6G="left"===JF.position||"classic"===s.LH;if(GR.K=s.K+"-menu-trigger",GR.IJ=ZC.AK(s.K+"-tools"),GR.Z=GR.C6=ZC.AK(s.K+"-trigger-c"),GR.WJ=!0,GR.parse(),GR.AM){GR.paint();var DB=ZC.A4("#"+s.H.K+"-top");if(""===GR.AR){var N0=new ZC.DW(s);if(N0.CZ=!1,s.B7.load(N0.o,"loader.gui.context-menu.gear"),JF&&null!==ZC._n_(G=JF.gear)&&N0.append(G),ZC.mobile&&(s.B7.load(N0.o,"loader.gui.context-menu[mobile].gear"),OD&&null!==ZC._n_(G=OD.gear)&&N0.append(G)),N0.K=s.K+"-menu-trigger-gear",N0.IJ=ZC.AK(s.K+"-tools"),N0.Z=ZC.AK(s.K+"-trigger-c"),N0.iX=A6G?GR.iX+GR.I/2:DB.width()-(GR.iX+GR.I/2),N0.iY=GR.iY+GR.F/2,N0.AI=ZC.CY(GR.I,GR.F)/4.5,N0.parse(),N0.paint(),"hamburger"!==N0.DQ){var QA=new ZC.DW(s);QA.copy(GR),QA.K=s.K+"-menu-trigger-gear-hole",QA.IJ=ZC.AK(s.K+"-tools"),QA.Z=ZC.AK(s.K+"-trigger-c"),QA.DQ="circle",QA.AI=ZC.CY(GR.I,GR.F)/7,QA.parse(),QA.iX=A6G?GR.iX+GR.I/2:DB.width()-(GR.iX+GR.I/2),QA.iY=GR.iY+GR.F/2,QA.paint()}}var _iX=A6G?GR.iX:DB.width()-(GR.iX+GR.I);ZC.AK(s.K+"-map").innerHTML+=ZC.Q.GC("rect")+'id="'+s.K+'-menu-area" coords="'+ZC._i_(_iX+ZC.MAPTX)+","+ZC._i_(GR.iY+ZC.MAPTX)+","+ZC._i_(_iX+GR.I+ZC.MAPTX)+","+ZC._i_(GR.iY+GR.F+ZC.MAPTX)+'" />'}}}E0=new ZC.DS(s),s.B7.load(E0.o,"loader.gui.context-menu.item"),JF&&null!==ZC._n_(G=JF.item)&&E0.append(G),ZC.mobile&&(s.B7.load(E0.o,"loader.gui.context-menu[mobile].item"),OD&&null!==ZC._n_(G=OD.item)&&E0.append(G)),E0.WJ=!0,E0.parse(),L9=new ZC.DS(s),L9.copy(E0),s.B7.load(L9.o,"loader.gui.context-menu.item.hover-state"),JF&&null!==ZC._n_(JF.item)&&null!==ZC._n_(G=JF.item["hover-state"])&&L9.append(G),ZC.mobile&&(s.B7.load(L9.o,"loader.gui.context-menu[mobile].item.hover-state"),OD&&null!==ZC._n_(OD.item)&&null!==ZC._n_(G=OD.item["hover-state"])&&L9.append(G)),L9.WJ=!0,L9.parse(),U2={},JF&&null!==ZC._n_(JF.separator)&&(U2=JF.separator);var JQ=[],EK=null;if(ABB=null!==ZC._n_(s.MT.o.empty)&&ZC._b_(s.MT.o.empty),ZC.mobile&&"none"!==(EK=G1("PageScroll")).enabled&&(null===s.DF||null===ZC._n_(s.DF["page-scroll"])||s.DF["page-scroll"]?JQ.push(GS("disablepagescroll",EK.text)):JQ.push(GS("enablepagescroll",EK.text)),JQ.push(J4("pagescroll"))),"none"!==(EK=G1("Reload")).enabled&&(JQ.push(GS("reload",EK.text)),JQ.push(J4("reload"))),"undefined"!=typeof ZC.A7W){EK=G1("SaveAsImage"),"none"!==EK.enabled&&("none"!==(EK=G1("SaveAsImagePNG")).enabled&&JQ.push(GS("viewaspng",EK.text?EK.text:null)),"none"!==(EK=G1("SaveAsImageJPG")).enabled&&JQ.push(GS("viewasjpg",EK.text?EK.text:null)),JQ.push(J4("export")));var T9=["DownloadPDF","DownloadSVG","DownloadCSV","DownloadXLS","ViewDataTable","ExportData","Print"],A5V=0,A1Q=0;for(i=0;i<T9.length;i++)"ViewDataTable"===T9[i]&&ZC.AK(s.K+"-data-table")&&(T9[i]="HideDataTable"),"none"!==(EK=G1(T9[i])).enabled&&(A5V++,A1Q=i,JQ.push(GS(T9[i].toLowerCase(),EK.text)));A5V>0&&JQ.push(J4(T9[A1Q].toLowerCase()))}if(-1!==LA){var GM=!1;for(j=0,J9=s.AH[LA].BM.length;j<J9;j++)s.AH[LA].BM[j].GM&&(GM=!0);if(GM&&"undefined"!=typeof ZC.AA0){var A0R=!1;EK=G1("ZoomIn"),"none"!==EK.enabled&&(JQ.push(GS("zoomin",EK.text)),A0R=!0),EK=G1("ZoomOut"),"none"!==EK.enabled&&(JQ.push(GS("zoomout",EK.text)),A0R=!0),EK=G1("ViewAll"),"none"!==EK.enabled&&(JQ.push(GS("viewall",EK.text)),A0R=!0),A0R&&JQ.push(J4("zoom"))}}var b2D=!1,b3D=!1;if(-1!==LA&&(-1!==ZC.AV(["line","area","bar","vbar","hbar","pie","mixed"],s.AH[LA].AF)&&(b2D=!0,s.X0="2d"),-1!==ZC.AV(["line3d","area3d","bar3d","vbar3d","hbar3d","pie3d","mixed3d"],s.AH[LA].AF)&&(b3D=!0,s.X0="3d")),(b2D||b3D)&&"none"!==(EK=G1("3D")).enabled&&"none"!==(EK=G1(b2D?"SwitchTo3D":"SwitchTo2D")).enabled&&(JQ.push(GS(b2D?"switchto3d":"switchto2d",EK.text)),JQ.push(J4("dimension"))),-1!==LA){var C=s.AH[LA],AAH=!1,ABN=!1;for(j=0;j<C.BM.length;j++){var B=C.BM[j];0===B.BC.indexOf("scale-y")&&(AAH=!0),"log"===B.CA&&(ABN=!0)}AAH&&"none"!==(EK=G1("Progression")).enabled&&"none"!==(EK=G1(ABN?"LinScale":"LogScale")).enabled&&(JQ.push(GS(ABN?"switchtolin":"switchtolog",EK.text)),JQ.push(J4("progression"))),(C.CX||C.H7)&&"none"!==(EK=G1("Guide")).enabled&&"none"!==(EK=G1(C.A1G?"HideGuide":"ShowGuide")).enabled&&(JQ.push(GS(C.A1G?"hideguide":"showguide",EK.text)),JQ.push(J4("guide")))}var AAV=0;if("undefined"!=typeof ZC.A8W&&("none"!==(EK=G1("ViewSource")).enabled&&(JQ.push(GS("viewsource",EK.text)),AAV++),"none"!==(EK=G1("BugReport")).enabled&&(JQ.push(GS("bugreport",EK.text)),AAV++)),AAV>0&&JQ.push(J4("tools")),"none"===(EK=G1("FullScreen")).enabled||s.LO||(s.QV?(EK=G1("ExitFullScreen"),JQ.push(GS("exitfullscreen",EK.text)),JQ.push(J4("exitfullscreen"))):(JQ.push(GS("fullscreen",EK.text)),JQ.push(J4("fullscreen")))),s.I7&&("none"!==(EK=G1("GoBack")).enabled&&JQ.push(GS("goback",EK.text)),"none"!==(EK=G1("GoForward")).enabled&&JQ.push(GS("goforward",EK.text)),JQ.push(J4("history"))),JQ.length>0&&-1!==JQ[JQ.length-1].indexOf("zc-menu-sep")&&JQ.splice(JQ.length-1,1),s.A1B={},-1!==LA){var B6;if(JF&&null!==ZC._n_(B6=JF["custom-items"]))for(JQ.length>0&&JQ.push(J4("custom")),i=0,A7=B6.length;i<A7;i++){var A3D=!0;if(null!==ZC._n_(B6[i].enabled)&&("none"===B6[i].enabled?A3D=!1:"all"!==B6[i].enabled&&(A3D=!ev||eval(B6[i].enabled).call(s,zingchart.A09(ev,s),B6[i].id,ev))),A3D){var AR,K=B6[i].id||"custom-"+i;"sep"===B6[i].id||"sep"===B6[i].type?JQ.push(J4(K)):"header"===B6[i].type?(AR=B6[i].text||"Custom Menu "+i,JQ.push(A2Q(K,AR,!0))):(AR=B6[i].text||"Custom Menu "+i,s.A1B[K]={fn:B6[i]["function"]||"",url:B6[i].url||"",target:B6[i].target||""},JQ.push(GS(K,AR,!0)))}}}s.TF||(JQ.push(J4("zingchart")),JQ.push(GS("xmiabt","About ZingChart"))),ZC.Q.HX({id:s.K+"-menu",p:document.body,cls:"zc-menu zc-style",top:null===ZC._n_(GR)?0:GR.iY+GR.F/2,left:null===ZC._n_(GR)?0:GR.iX+GR.I/2,borderBottom:s.MT.AT+"px solid "+s.MT.BV,background:(-1===s.MT.A0?"transparent":s.MT.A0)+" "+A1J(s.MT.D9),paddingTop:s.MT.FJ,paddingRight:s.MT.FK,paddingBottom:s.MT.FR,paddingLeft:s.MT.EP,html:JQ.join("")}),s.E["menu-item-events"]||(s.AGQ=function(e){var i,t=1!==e.target.nodeType?e.target.parentNode.id:e.target.id,n=t.substring(0,t.indexOf("-menu-item-")),a=zingchart.getLoader(n);ZC.mobile&&a.OP();var l=a.A4O(a.SN[0],a.SN[1]);a.hideCM(),ZC.mobile&&zingchart.SA(e);var o=t.replace(a.K+"-menu-item-","");a.AAG({graphid:l?l.K:null,menuitemid:o,ev:ZC.A4.C0(e)});var r=a.o["export-filename"]||a.o.graphset[0]["export-filename"]||"";switch(o){case"switchto2d":case"switchto3d":l&&a.A51(l.K);break;case"enablepagescroll":s.DF=s.DF||{},s.DF["page-scroll"]=!0;break;case"disablepagescroll":s.DF=s.DF||{},s.DF["page-scroll"]=!1;break;case"showguide":a.YY(l.K,!0);break;case"hideguide":a.YY(l.K,!1);break;case"switchtolin":a.A0P(l.K,"lin");break;case"switchtolog":a.A0P(l.K,"log");break;case"reload":a.A8R();break;case"viewaspng":a.O5("png");break;case"viewasjpg":a.O5("jpeg");break;case"downloadpdf":a.O5("pdf",""===r?null:{fn:r});break;case"downloadsvg":a.O5("svg",""===r?null:{fn:r});break;case"exportdata":zingchart.exec(a.K,"exportdata");break;case"downloadcsv":zingchart.exec(a.K,"downloadCSV",""===r?null:{fn:r});break;case"downloadxls":(i=G1("DownloadXLS"))["custom-function"]?a.A40({graphid:l?l.K:null,menuitemid:o,filename:r,"function":i["custom-function"]}):zingchart.exec(a.K,"downloadXLS",""===r?null:{fn:r});break;case"viewdatatable":case"hidedatatable":zingchart.exec(a.K,"viewDataTable",{menuid:o});break;case"print":a.A97();break;case"viewsource":a.A5L();break;case"bugreport":a.A6I();break;case"fullscreen":a.A5M();break;case"goback":zingchart.exec(a.K,"goback");break;case"goforward":zingchart.exec(a.K,"goforward");break;case"zoomin":l&&(a.H9.C=l,a.A8N({graphid:l.K,ev:e}));break;case"zoomout":l&&(a.H9.C=l,a.A7R({graphid:l.K,ev:e}));break;case"viewall":l&&(a.H9.C=l,a.A7N({graphid:l.K,ev:e}));break;case"xmiabt":a.A9D();break;default:null!==ZC._n_(G=s.A1B[o])&&(""!==G.fn?a.A40({graphid:l?l.K:null,menuitemid:o,"function":G.fn}):""!==G.url&&l&&l.UQ(e,G.url,G.target))}},s.AFX=function(){this.style.backgroundColor=L9.A0,this.style.color=L9.C1,this.style.borderLeft=this.style.borderRight=L9.AT+"px solid "+L9.BV},s.AGM=function(){this.style.backgroundColor=E0.A0,this.style.color=E0.C1,this.style.borderLeft=this.style.borderRight=E0.AT+"px solid "+E0.BV},s.TE=function(e){return e.preventDefault(),!1},ZC.A4("#"+s.K+"-menu").live("mousedown",s.TE),ZC.A4("."+s.K+"-menu-item").live("mousedown",s.TE),ZC.A4("."+s.K+"-menu-item").live("click touchend",s.AGQ).live("mouseover",s.AFX).live("mouseout",s.AGM),s.E["menu-item-events"]=!0)}}},destroy:function(){var e=this;e._unbind_(),zingchart.HU.length-=1,e.clear(),ZC.A4("#zc-fullscreen").remove(),document.body.style.overflow=""},MV:function(e,i){var t,n=this;if(null===ZC._n_(i)&&(i=!1),(i||n.A0C)&&-1===ZC.AV(n.KM,"skip_interactivity"))if(n.ZM=!0,i&&ZC.Q.HX({id:n.K+"-dummy",p:ZC.AK(n.K),wh:n.I+"/"+n.F}),n.E.hideprogresslogo||zingchart.DEV.SKIPPROGRESS)n.ZM=!1;else{var a=ZC.A4("#"+n.K);if(!(void 0===a.offset()||a.width()+a.height()===0||n.E.hideprogresslogo&&n.TF)){var l=a.offset().left+ZC._i_(a.css("border-left-width"))+(null===e?n.iX:e.iX),o=a.offset().top+ZC._i_(a.css("border-top-width"))+(null===e?n.iY:e.iY);(ZC.ipad||ZC.iphone)&&(l-=ZC.A4(window).scrollLeft(),o-=ZC.A4(window).scrollTop());var r=null===e?n.I:e.I,s=null===e?n.F:e.F,A=ZC._i_(.8*n.I),C=30,c=new ZC.DS(n);n.B7.load(c.o,"loader.gui.progress"),c.append(n.E.progress),null!==n.DF&&null!==ZC._n_(t=n.DF.progress)&&c.append(t),c.parse();var u,p=ZC.HI["progress-wait-long"];if(ZC.ie67)u=c.A0;else{var Z=n.E.customprogresslogo||ZC.IMAGES["zc.logo"];u=c.A0+" url("+Z+") no-repeat center center"}(r<180||s<90)&&(u=c.A0,C=-12),r<120&&r>60?(A=60,p=ZC.HI["progress-wait-short"]):r<60&&(A=20,p=ZC.HI["progress-wait-mini"]),p=n.E.customprogresstext||p;var h=ZC.Q.HX({id:n.K+"-progress",p:document.body,tl:o+"/"+l,width:r-2*c.AT,height:s-2*c.AT,position:"absolute",opacity:.8,border:c.AT+"px solid "+c.BV,background:u});ZC.Q.HX({id:n.K+"-progress-text",p:h,width:A,html:p,textAlign:"center",marginLeft:ZC._i_((r-A)/2),marginTop:ZC._i_(s/2+C),fontFamily:zingchart.FONTFAMILY,fontSize:zingchart.FONTSIZE,color:c.C1,fontWeight:"bold"})}}},A0G:function(){var e=this;ZC.Q.EU(e.K+"-dummy"),e.E.hideprogresslogo||(e.ZM=!1,ZC.Q.EU([e.K+"-progress-text",e.K+"-progress"]))},A4J:function(e,i){var t,n,a=this;t=null!==ZC._n_(n=e.graphset)?n:[e];var l=e.layout||"",o=ZC.AO.A20(l,t.length),r=t[i],s=a.I/o[1],A=a.F/o[0],C=Math.floor(i/o[1]),c=i%o[1]*s,u=C*A;r&&(null!==ZC._n_(n=r.x)&&(c=ZC._p_(n))<=1&&(c=ZC._i_(c*a.I)),null!==ZC._n_(n=r.y)&&(u=ZC._p_(n))<=1&&(u=ZC._i_(u*a.F)),null!==ZC._n_(n=r.width)&&(s=ZC._p_(n))<=1&&(s=ZC._i_(s*a.I)),null!==ZC._n_(n=r.height)&&(A=ZC._p_(n))<=1&&(A=ZC._i_(A*a.F)));var p=[0,0,0,0];return r.plotarea&&null!==ZC._n_(r.plotarea.margin)&&(p=new ZC.HS(null).m_(r.plotarea.margin,"all",s,A)),{graph:{x:ZC._i_(c),y:ZC._i_(u),width:ZC._i_(s),height:ZC._i_(A),index:i},plotarea:{x:p[3],y:p[0],width:s-p[1]-p[3],height:A-p[0]-p[2]}}},K3:function(){var e=this;null===ZC._n_(e.o.graphset)&&(e.o={graphset:[e.o]}),e.MV(),zingchart.A15(e,e.A4R(),function(){e.o=ZC.AP.BZ("dataparse",e,e.FH(),e.o),zingchart.XR[e.K]&&e.Q1(function(){e.parse(),e.paint()})})},render:function(){var e=this;!function(){function i(){""!==e.QN||null!==e.MM?e.A8O():e.load()}e.UA||e.A8U(),e.MV(null,!0),zingchart.TIMEOUT>0?ZC.ZH(i):i()}()},YS:function(e){var i=this;null===ZC._n_(i.A3Q)&&(i.A3Q=(new Date).getTime(),i.AAT=window.setTimeout(function(){null!==ZC._n_(i.A3Q)&&(i.A3Q=null,zingchart.YU(e))},1500))},FH:function(){var e,i=this,t=0,n=0;return t="undefined"!=typeof i.SN[0]?i.SN[0]-t:0,n="undefined"!=typeof i.SN[1]?i.SN[1]-n:0,e=i.LH?i.LH:"light",{id:i.K,width:i.I,height:i.F,output:i.AC,x:t,y:n,targetid:i.SN[2],theme:e}},ABW:function(e){var i=this;e=e||{},null!==ZC._n_(e.resource)&&(i.QS[e.resource]=e.data||"[]",i.UD++)},A8N:function(){},A7R:function(){},A7N:function(){},PW:function(){},AA1:function(e,i){var t=this;if(e=e||{},null!==ZC._n_(e.graphid)){var n=t.OR(e.graphid);null!==n&&n.clear()}else t.clear(null,null,i);ZC.K1&&ZC.K1.GUIDES&&(ZC.K1.GUIDES[t.K]=null)},A83:function(e){e=e||ZC.HI["sync-wait"];var i=this;if(null===ZC.AK(i.K+"-blocker")){ZC.Q.HX({cls:"zc-abs zc-style zc-blocker",id:i.K+"-blocker",p:ZC.AK(i.K+"-top"),wh:i.I+"/"+i.F,opacity:.75}),ZC.Q.HX({cls:"zc-blocker-msg",id:i.K+"-blocker-t",p:ZC.AK(i.K+"-blocker"),html:e});var t=ZC.A4("#"+i.K+"-blocker-t");t.css("top",i.F/2-t.height()/2+"px").css("left",i.I/2-t.width()/2+"px")}},A3T:function(){ZC.Q.EU(this.K+"-blocker")},A9D:function(){var e=this;ZC.AP.BZ("about_show",e,e.FH()),ZC.Q.HX({cls:"zc-abs",id:e.K+"-about-mask",p:ZC.AK(e.K+"-top"),wh:e.I+"/"+e.F,background:"#ccc",opacity:.75});var i=ZC.CY(320,e.I),t=ZC.CY(215,e.F),n=ZC.BQ(0,(e.I-i)/2),a=ZC.BQ(0,(e.F-t)/2),l=ZC.Q.HX({cls:"zc-about zc-style",id:e.K+"-about",p:ZC.AK(e.K+"-top"),tl:a+"/"+n,wh:i-(ZC.quirks?0:10)+"/"+(t-(ZC.quirks?0:10))}),o="";""!==e.S8&&(o="Custom Built for<br />"+e.S8),l.innerHTML='<div class="zc-about-1"><a href="http://www.zingchart.com" target="_blank">zingchart.com</a></div><div class="zc-about-2">&copy;2009-'+(new Date).getFullYear()+'</div><div class="zc-about-3"><div id="'+e.K+'-about-close">'+ZC.HI["about-close"]+'</div></div><div class="zc-about-4" style="padding:'+(t-215)+'px 5px 5px 5px;"><div>&nbsp;<br />Build '+ZC.VERSION+" ["+e.AC+"]</div>"+o+"</div>",ZC.A4("#"+e.K+"-about-close").bind("click",function(){ZC.AP.BZ("about_hide",e,e.FH()),ZC.Q.EU([e.K+"-about",e.K+"-about-mask"])})},NP:function(e,i){var t=this;if(ZC.AP.A7Y("error",t))ZC.AP.BZ("error",t,{id:t.K,error:e,section:i,json:t.E.json||t.E.rawsource});else{var n="";n+="object"==typeof e?e.name+":"+e.message+"\n\n":e+"\n\n",null!==ZC._n_(i)&&(n+="Section:"+i+"\n\n"),n+="JSON data:\n\n"+t.E.json+"\n\n",t.A0G(),null===ZC.AK(t.K+"-top")&&t.AAU(),ZC.Q.HX({cls:"zc-abs zc-error zc-style",id:t.K+"-error",p:ZC.AK(t.K+"-top"),wh:t.I-(ZC.quirks?0:10)+"/"+(t.F-(ZC.quirks?0:10))}).innerHTML='<div class="zc-form-row-label zc-form-s0">'+ZC.HI["error-header"]+'</div><div class="zc-form-row-label zc-form-s1">'+ZC.HI["error-message"]+'</div><div class="zc-form-row-element"><textarea id="'+t.K+'-error-message" style="width:'+(t.I-35)+"px;height:"+(t.F-135)+'px;"></textarea></div><div class="zc-form-row-element zc-form-row-last"><input type="button" value="'+ZC.HI["error-close"]+'" id="'+t.K+'-error-close" /></div>',ZC.A4("#"+t.K+"-error-message").val(ZC.GT(n)),ZC.A4("#"+t.K+"-error-close").bind("click",function(){ZC.Q.EU(t.K+"-error")})}},A5L:function(){},A6I:function(){},A5M:function(){var e=this,i=document.createElement("div");i.id="zc-fullscreen",i.style.zIndex=zingchart.FSZINDEX,i.style.overflow="hidden";var t=document.body,n=!1;zingchart.FSID&&ZC.AK(zingchart.FSID)&&(n=!0,(t=ZC.AK(zingchart.FSID)).style.display="block"),t.appendChild(i),ZC.FSSTATUS={};var a,l;for(a=0,l=e.AH.length;a<l;a++){var o=e.AH[a];if(null!==o.AY)for(var r=0,s=o.AY.A6.length;r<s;r++)ZC.FSSTATUS["g-"+o.L+"-p-"+r]=o.E["plot"+r+".visible"]}ZC.Q.EU(e.K+"-data-table");var A,C=JSON.parse(e.E.json),c=C.graphset;for(a=c.length-1;a>=0;a--)if(c[a].generated)c.splice(a,1);else{if(null!==ZC._n_(c[a].shapes))for(A=c[a].shapes.length-1;A>=0;A--)c[a].shapes[A].generated&&c[a].shapes.splice(A,1);if(null!==ZC._n_(c[a].labels))for(A=c[a].labels.length-1;A>=0;A--)c[a].labels[A].generated&&c[a].labels.splice(A,1)}n||window.scroll(0,0),zingchart.render({id:"zc-fullscreen",output:e.AC,width:ZC.A4(n?t:window).width(),height:ZC.A4(n?t:window).height(),fullscreenmode:!0,theme:e.LH,modules:e.A1I,data:C,defaults:e.MM,defaultsurl:e.QN})},A0P:function(e,i){var t,n,a,l=this,o=0,r=!1;for(t=0,n=l.AH.length;t<n;t++)if(e===l.AH[t].K){for(o=t,a=0;a<l.AH[t].AY.A6.length;a++)if(l.AH[t].AY.A6[a].IP){r=!0;break}var s;for(s=l.AH[o].AJ["3d"]||r?l.o.graphset[t]:l.AH[t].o,a=0;a<10;a++){var A="scale-y"+(0===a?"":"-"+a);null===ZC._n_(s[A])&&null===ZC._n_(s[ZC.EC(A)])&&null!==l.AH[t].BN(A)?s[A]={progression:i}:(null!==ZC._n_(s[A])&&(s[A].progression=i),null!==ZC._n_(s[ZC.EC(A)])&&(s[ZC.EC(A)].progression=i))}}delete l.E["graph"+o+".zoom"],l.AH[o].AJ["3d"]||r?l.K3():l.AH[o].K3(!0,!0)},YY:function(e,i){var t=this;if(t.D5){for(var n=0,a=t.AH.length;n<a;n++)e===t.AH[n].K&&(t.AH[n].A1G=i,t.AH[n].E["guide-on"]=i);if(i){var l=ZC.A4("#"+t.K+"-top"),o={_pageX_:ZC.DX[0]-l.offset().left,_pageY_:ZC.DX[1]-l.offset().top,type:"mousemove",target:{id:t.K+"-img"}};t.D5.Q6(o)}else ZC.K1.clearGuide(t.K)}},A51:function(e){for(var i=this,t=["line","area","bar","vbar","hbar","pie","mixed"],n=0,a=i.AH.length;n<a;n++)if(e===i.AH[n].K){var l=i.o.graphset[n];if("mixed"===l.type)for(var o=0,r=l.series.length;o<r;o++){var s=l.series[o];s.type=s.type||"line","3d"===i.X0?s.type=s.type.replace("3d",""):-1!==ZC.AV(t,s.type)&&(s.type=s.type+"3d")}else"3d"===i.X0?l.type=l.type.replace("3d",""):-1!==ZC.AV(t,l.type)&&(l.type=l.type+"3d")}i.X0="3d"===i.X0?"2d":"3d",i.E.json=ZC.GT(JSON.stringify(i.o)),i.K3()},A8R:function(e){for(var i,t=this,n=0;n<t.AH.length;n++)delete t.E["g"+n+"-legend-collapsed"];if(e=e||{},ZC.AP.BZ("reload",t,{id:t.K,graphid:e.graphid}),null!==ZC._n_(i=e.graphid)){var a=t.C9(i);null!==a&&(t.MV(a),t.load(a.K))}else t.QQ=[],t.NY=-1,t.MV(),t.clearGenerated(),t.load()},ACU:function(e){var i,t=this;if(e=e||{},null!==ZC._n_(i=e.graphid)){var n=t.C9(i);null!==n&&null!==ZC._n_(e.dataurl)&&(t.MV(n),t.load(i,e.dataurl))}else null!==ZC._n_(i=e.dataurl)&&(t.QB=i,t.MV(),t.load())},A97:function(){},O5:function(){},Z0:function(){},AAG:function(e){var i=this;ZC._cp_(i.FH(),e),ZC.AP.BZ("menu_item_click",i,e)},A40:function(O){var s=this;try{var DZ=ZC.AP.AA8(O["function"]);O["function"]=DZ[0],O.arguments=DZ[1],ZC._cp_(s.FH(),O),eval(O["function"]).call(s,O)}catch(J7){return s.NP(J7,"JavaScript data loader"),!1}},C9:function(e){var i=this;return null!==ZC._n_(e)?i.OR(e):i.AH.length>0?i.AH[0]:null},bind:function(e,i){zingchart.bind(this.K,e,i)},unbind:function(e,i){zingchart.unbind(this.K,e,i)},exec:function(e,i){return zingchart.exec(this.K,e,i)},gc:function(){for(var e=0,i=this.AH.length;e<i;e++)this.AH[e].gc()}}),ZC.RG.prototype.AD1=function(e){var i,t,n,a,l,o=this;if(e=e||{},e.action="pan",i=null!==ZC._n_(e.graphid)?o.OR(e.graphid):o.AH[0]){for(t=0,n=i.BT("k").length;t<n;t++){var r=i.BT("k")[t];if(a=1===r.L?"":"-"+r.L,r.GM&&(null===ZC._n_(e["zoomx"+a])||e["zoomx"+a])){e["zoomx"+a]=!0,l=r.I/ZC.CY(r.I,e.xdist||50);var s,A=r.V,C=r.A1;e["x-"]?(s=ZC.CY(r.V-r.DD,ZC._i_((r.A1-r.V)/l)),A=r.V-s,C=r.A1-s):e["x+"]&&(s=ZC.CY(r.E1-r.A1,ZC._i_((r.A1-r.V)/l)),A=r.V+s,C=r.A1+s),e["xmin"+a]=A,e["xmax"+a]=C}}for(t=0,n=i.BT("v").length;t<n;t++){var c=i.BT("v")[t];if(a=1===c.L?"":"-"+c.L,c.GM&&(null===ZC._n_(e["zoomy"+a])||e["zoomy"+a])){e["zoomy"+a]=!0,l=c.F/ZC.CY(c.F,e.ydist||50);var u,p=c.B4,Z=c.BL;e["y-"]?(u=ZC.CY(c.B4-c.FU,ZC._i_((c.BL-c.B4)/l)),p=c.B4-u,Z=c.BL-u):e["y+"]&&(u=ZC.CY(c.GY-c.BL,ZC._i_((c.BL-c.B4)/l)),p=c.B4+u,Z=c.BL+u),c.PU&&1===c.E4&&(p=Math.round(p),Z=Math.round(Z)),e["ymin"+a]=p,e["ymax"+a]=Z}}o.PW(e)}},ZC.RG.prototype.A8N=function(e){var i,t,n,a,l=this;if(e=e||{},e.action="zoomin",i=null!==ZC._n_(e.graphid)?l.OR(e.graphid):l.AH[0]){for(t=0,n=i.BT("k").length;t<n;t++){var o=i.BT("k")[t];if(a=1===o.L?"":"-"+o.L,o.GM&&(null===ZC._n_(e["zoomx"+a])||e["zoomx"+a])){e["zoomx"+a]=!0;var r=o.A1-o.V,s=o.V+(r<2?0:ZC._i_(r/4)),A=o.A1-(r<2?0:ZC._i_(r/4));s<A?(e["xmin"+a]=s,e["xmax"+a]=A):(e["xmin"+a]=o.V,e["xmax"+a]=o.A1)}}for(t=0,n=i.BT("v").length;t<n;t++){var C=i.BT("v")[t];if(a=1===C.L?"":"-"+C.L,C.GM&&(null===ZC._n_(e["zoomy"+a])||e["zoomy"+a])){e["zoomy"+a]=!0;var c=C.BL-C.B4,u=C.B4+ZC._f_(c/4),p=C.BL-ZC._f_(c/4);C.PU&&1===C.E4&&(u=Math.round(u),p=Math.round(p)),u<p&&(e["ymin"+a]=u,e["ymax"+a]=p)}}l.PW(e)}},ZC.RG.prototype.A7R=function(e){var i,t,n,a,l,o,r,s=this;if(e=e||{},e.action="zoomout",e.previewscale=!0,i=null!==ZC._n_(e.graphid)?s.OR(e.graphid):s.AH[0]){for(t=0,n=i.BT("k").length;t<n;t++){var A=i.BT("k")[t];if(r=1===A.L?"":"-"+A.L,A.GM&&(null===ZC._n_(e["zoomx"+r])||e["zoomx"+r]))if(e["zoomx"+r]=!0,i.BA&&i.BA.LG){var C=ZC._i_(i.BA.NG[A.BC].values.length*i.BA.ID/i.BA.AQ.I),c=ZC._i_(i.BA.NG[A.BC].values.length*i.BA.H5/i.BA.AQ.I);a=ZC.BQ(2,c-C),(l=ZC.BQ(0,C-ZC._i_(a/2)))<(o=ZC.CY(i.BA.NG[A.BC].values.length-1,c+ZC._i_(a/2)))&&(e["xmin"+r]=l,e["xmax"+r]=o)}else a=ZC.BQ(2,A.A1-A.V),(l=ZC.BQ(A.DD,A.V-ZC._i_(a/2)))<(o=ZC.CY(A.E1,A.A1+ZC._i_(a/2)))&&(e["xmin"+r]=l,e["xmax"+r]=o)}for(t=0,n=i.BT("v").length;t<n;t++){var u=i.BT("v")[t];if(r=1===u.L?"":"-"+u.L,u.GM&&(null===ZC._n_(e["zoomy"+r])||e["zoomy"+r])){e["zoomy"+r]=!0;var p=u.BL-u.B4,Z=ZC.BQ(u.FU,u.B4-ZC._f_(p/2)),h=ZC.CY(u.GY,u.BL+ZC._f_(p/2));u.PU&&1===u.E4&&(Math.round(h)-Math.round(Z)>1?(Z=Math.round(Z),h=Math.round(h)):(Z=Math.floor(Z),h=Math.ceil(h))),(Z=ZC.BQ(u.FU,Z))<(h=ZC.CY(u.GY,h))&&(e["ymin"+r]=Z,e["ymax"+r]=h)}}s.PW(e)}},ZC.RG.prototype.A7N=function(e){var i,t,n,a,l,o=this;for(e=e||{},t=null!==ZC._n_(e.graphid)?o.OR(e.graphid):o.AH[0],e.action="viewall",n=0,a=t.BT("k").length;n<a;n++)if(i=t.BT("k")[n],l=1===i.L?"":"-"+i.L,e["zoomx"+l]=!0,e["xmin"+l]=null,e["xmax"+l]=null,t.o[i.BC]&&(t.o[i.BC]["zoom-to"]=null,t.o[i.BC]["zoom-to-values"]=null),t.BA&&t.BA.LG){var r=t.BA.NG[i.BC].values;e["kmin"+l+"-async"]=r[0],e["kmax"+l+"-async"]=r[r.length-1]}for(n=0,a=t.BT("v").length;n<a;n++)i=t.BT("v")[n],t.o[i.BC]&&(t.o[i.BC]["zoom-to"]=null,t.o[i.BC]["zoom-to-values"]=null),i.DU=null!==ZC._n_(i.E.decimals)&&-1!==i.E.decimals?i.E.decimals:null,l=1===i.L?"":"-"+i.L,i.LI=null,e["zoomy"+l]=!0,e["ymin"+l]=null,e["ymax"+l]=null;o.PW(e)},ZC.RG.prototype.PW=function(e){var i,t,n,a,l,o,r,s,A,C,c,u,p,Z,h,d=this;(e=e||{}).id=d.K;var f=null!==ZC._n_(e.zoom)&&!e.zoom;if(t=null!==ZC._n_(e.graphid)?d.OR(e.graphid):d.AH[0]){f&&(d.E["graph."+t.L+".ignore-zoom"]=!0),d.E["graph."+t.L+".ignore-zoom"]&&(f=!0),"undefined"==typeof e.scroll&&(ZC.Q.IQ(ZC.AK(t.K+"-scroll-x-c"),t.A.AC,t.iX,t.iY,t.I,t.F),ZC.Q.IQ(ZC.AK(t.K+"-scroll-y-c"),t.A.AC,t.iX,t.iY,t.I,t.F)),t.BA&&(t.BA.HY=!1);var _=d.E["graph"+t.L+".zoom"]||{};for(e.yzoomed=!1,(l=t.BT("v")[0])&&null!==ZC._n_(e.ymin)&&null!==ZC._n_(e.ymax)&&(e.ymin===l.FU&&e.ymax===l.GY||(e.yzoomed=!0)),s=0,A=t.BT("k").length;s<A;s++)if(a=t.BT("k")[s],C=1===a.L?"":"-"+a.L,null!==ZC._n_(e["kmin"+C])&&null!==ZC._n_(e["kmax"+C]))if(e["kmin"+C]===e["kmax"+C])delete e["kmin"+C],delete e["kmax"+C];else{for(var g=!1,v=!1,b=0,m=a.X.length;b<m&&(e["kmin"+C]<=a.X[b]&&!g&&(e["xmin"+C]=b,g=!0),e["kmax"+C]<=a.X[b]&&!v&&(e["xmax"+C]=b,v=!0),!g||!v);b++);g||(e["xmin"+C]=0),v||(e["xmax"+C]=a.X.length-1),e["zoomx"+C]=!0,e.xzoomed=!(g&&v)}else n=t.BA&&t.BA.LG&&e.previewscale?t.BA.NG[a.BC].values:a.X,null!==ZC._n_(i=n[e["xmin"+C]])&&(e["kmin"+C]=i),null!==ZC._n_(i=n[e["xmax"+C]])&&(e["kmax"+C]=i),e.xzoomed=!(e["xmin"+C]===a.DD&&e["xmax"+C]===a.E1);"viewall"===e.action&&(e.xzoomed=!1,e.yzoomed=!1);var B=ZC.AP.BZ("zoom",t.A,e,!0);if(e.async&&!f)return;if(t.BA&&t.BA.LG){n=t.BA.NG[a.BC].values;var E=ZC.XS(n),K=ZC.A1H(n);null!==ZC._n_(e.kmin)&&"undefined"!=typeof e.kmin?(o=ZC._i_(t.BA.AQ.I*(e.kmin-E)/(K-E)),o=ZC.BQ(o,0)):o=0,null!==ZC._n_(e.kmax)&&"undefined"!=typeof e.kmax?(r=ZC._i_(t.BA.AQ.I*(e.kmax-E)/(K-E)),r=ZC.CY(r,t.BA.AQ.I)):r=t.BA.AQ.I,f||t.BA.update(o,r,t.BA.KZ,t.BA.HC)}if(B||void 0===B){for(s=0,A=t.BT("k").length;s<A;s++)e["zoomx"+(C=1===(a=t.BT("k")[s]).L?"":"-"+a.L)]&&(f||a.zoomTo(e["xmin"+C],e["xmax"+C]),_["xmin"+C]=e["xmin"+C],_["xmax"+C]=e["xmax"+C]);for(s=0,A=t.BT("v").length;s<A;s++)e["zoomy"+(C=1===(l=t.BT("v")[s]).L?"":"-"+l.L)]&&null!==ZC._n_(l)&&(f||l.zoomTo(e["ymin"+C],e["ymax"+C]),_["ymin"+C]=e["ymin"+C],_["ymax"+C]=e["ymax"+C]);if(f&&(d.H9.C=t),d.H9.parse(),d.H9.A04)for(d.E["graph"+t.L+".zoom"]=_,Z=0,h=d.AH.length;Z<h;Z++)t.K!==d.AH[Z].K&&d.AH[Z].H9&&ZC._b_(d.AH[Z].H9.o.shared)&&(d.E["graph"+d.AH[Z].L+".zoom"]=_);if(t.BA&&!e.preview&&t.BA.update(e.xmin,e.xmax,e.ymin,e.ymax,!0),f)return;if(t.clear(!0),(l=t.BT("v")[0])&&(l.aAutoFit[0]||l.aAutoFit[1])){for(var F=l.aAutoFit[0]?ZC.MAX:l.FU,D=l.aAutoFit[1]?-ZC.MAX:l.GY,X=0,I=t.AY.A6.length;X<I;X++)if(t.AY.A6[X].AM&&-1!==ZC.AV(t.AY.A6[X].BM,l.BC))if(a.ED){for(s=0,A=t.AY.A6[X].R.length;s<A;s++)if((p=t.AY.A6[X].R[s])&&ZC.DT(p.BU,a.X[a.V],a.X[a.A1]))for(l.aAutoFit[0]&&(F=ZC.CY(F,p.CR)),l.aAutoFit[1]&&(D=ZC.BQ(D,p.CR)),c=0,u=p.DN.length;c<u;c++)l.aAutoFit[0]&&(F=ZC.CY(F,p.DN[c])),l.aAutoFit[1]&&(D=ZC.BQ(D,p.DN[c]))}else for(s=a.V;s<=a.A1;s++)if(p=t.AY.A6[X].R[s])for(l.aAutoFit[0]&&(F=ZC.CY(F,p.CR)),l.aAutoFit[1]&&(D=ZC.BQ(D,p.CR)),c=0,u=p.DN.length;c<u;c++)l.aAutoFit[0]&&(F=ZC.CY(F,p.DN[c])),l.aAutoFit[1]&&(D=ZC.BQ(D,p.DN[c]));"log"===l.CA&&(F=ZC.H0(F,l.EH),D=ZC.H0(D,l.EH)),l.RN(F,D,!0),l.IW();var x=t.BT("v");for(s=0;s<x.length;s++)x[s].BC!==l.BC&&x[s].sMaster===l.BC&&(x[s].RN(F,D,!0),x[s].IW())}var y=ZC._b_(e.zoomto);t.E["skip-preview"]=!0;var w=["top","right","bottom","left"];for(s=0;s<w.length;s++)(t.P.E["d-margin-"+w[s]]||t.E["plotarea.d-margin-"+w[s]]||ZC._b_(t.P.o["adjust-layout"]))&&(t.o.plotarea["margin-"+w[s]]=t.P.o["margin-"+w[s]]="dynamic",t.E["plotarea.d-margin"]=t.E["plotarea.d-margin-"+w[s]]=!0);t.setupDynamicPlotArea(),t.paint(!y),d.H9.C=null,ZC.AP.BZ("postzoom",t.A,e)}}},zingchart.ABF=function(e,i,t){document.getElementById("zc-fullscreen")&&(e="zc-fullscreen"),"string"==typeof(t=t||{})&&(t=JSON.parse(t));var n,a,l,o,r,s,A,C,c,u=zingchart.getLoader(e);if(null!==ZC._n_(t.preservezoom)&&(u.E.preservezoom=ZC._b_(t.preservezoom)),u)switch(i){case"getzoom":if(o={},l=u.C9(t.graphid))for(n=0,a=l.BM.length;n<a;n++){var p=l.BM[n];"k"===p.AF?o[p.BC]={xmin:p.V,xmax:p.A1,vmin:p.X[p.V],vmax:p.X[p.A1]}:o[p.BC]={ymin:p.B4,ymax:p.BL,vmin:p.X[p.V],vmax:p.X[p.A1]}}return o;case"pan":u.AD1(t);break;case"zoomin":u.A8N(t);break;case"zoomout":u.A7R(t);break;case"zoomto":if(l=u.C9(t.graphid),null!==ZC._n_(t.xall)&&t.xall)for(n=0,a=l.BT("k").length;n<a;n++)t["xmin"+(A=1===(r=l.BT("k")[n]).L?"":"-"+r.L)]=t.xmin||null,t["xmax"+A]=t.xmax||null,t["kmin"+A]=t.kmin||null,t["kmax"+A]=t.kmax||null;for(n=0,a=l.BT("k").length;n<a;n++)null===t["xmin"+(A=1===(r=l.BT("k")[n]).L?"":"-"+r.L)]&&null===ZC._n_(t["xmax"+A])&&null===ZC._n_(t["kmin"+A])&&null===ZC._n_(t["kmax"+A])||(t["zoomx"+A]=!0),"log"===r.CA&&(null!==ZC._n_(t["xmin"+A])&&(t["xmin"+A]=ZC.H0(t["xmin"+A],r.EH)),null!==ZC._n_(t["xmax"+A])&&(t["xmax"+A]=ZC.H0(t["xmax"+A],r.EH)));if(null!==ZC._n_(t.yall)&&t.yall)for(n=0,a=l.BT("v").length;n<a;n++)t["ymin"+(A=1===(s=l.BT("v")[n]).L?"":"-"+s.L)]=t.ymin||null,t["ymax"+A]=t.ymax||null;for(n=0,a=l.BT("v").length;n<a;n++)A=1===(s=l.BT("v")[n]).L?"":"-"+s.L,null===ZC._n_(t["ymin"+A])&&null===ZC._n_(t["ymax"+A])||(t["zoomy"+A]=!0),"log"===s.CA&&(null!==ZC._n_(t["ymin"+A])&&(t["ymin"+A]=ZC.H0(t["ymin"+A],s.EH)),null!==ZC._n_(t["ymax"+A])&&(t["ymax"+A]=ZC.H0(t["ymax"+A],s.EH)));u.PW(t);break;case"zoomtovalues":if(l=u.C9(t.graphid),null!==ZC._n_(t.xall)&&t.xall)for(n=0,a=l.BT("k").length;n<a;n++)t["xmin"+(A=1===(r=l.BT("k")[n]).L?"":"-"+r.L)]=t.xmin||null,t["xmax"+A]=t.xmax||null;for(n=0,a=l.BT("k").length;n<a;n++)A=1===(r=l.BT("k")[n]).L?"":"-"+r.L,null===ZC._n_(t["xmin"+A])&&null===ZC._n_(t["xmax"+A])||(l.BA&&l.BA.LG?(t.previewscale=!0,t["kmin"+A+"-async"]=t["xmin"+A],t["xmin"+A]=ZC.AA5(l.BA.NG[r.BC].values,t["xmin"+A])):-1!==(C=ZC.AV(r.X,t["xmin"+A]))&&(t["xmin"+A]=C),l.BA&&l.BA.LG?(t.previewscale=!0,t["kmax"+A+"-async"]=t["xmax"+A],t["xmax"+A]=ZC.AA5(l.BA.NG[r.BC].values,t["xmax"+A])):-1!==(c=ZC.AV(r.X,t["xmax"+A]))&&(t["xmax"+A]=c),t["zoomx"+A]=!0);if(null!==ZC._n_(t.yall)&&t.yall)for(n=0,a=l.BT("v").length;n<a;n++)t["ymin"+(A=1===(s=l.BT("v")[n]).L?"":"-"+s.L)]=t.ymin||null,t["ymax"+A]=t.ymax||null;for(n=0,a=l.BT("v").length;n<a;n++)A=1===(s=l.BT("v")[n]).L?"":"-"+s.L,null===ZC._n_(t["ymin"+A])&&null===ZC._n_(t["ymax"+A])||(t["zoomy"+A]=!0);u.PW(t);break;case"viewall":u.A7N(t)}return null},ZC.A7W={},ZC.AP.A30=function(e,i,t,n){"jpg"===(n=n||"png")&&(n="jpeg");var a=document.createElement("canvas");a.width=i,a.height=t,a.style.width=i+"px",a.style.height=t+"px";var l=a.getContext("2d");e instanceof Array||(e=[e]);for(var o,r=0,s=e.length;r<s;r++)if(-1===e[r].className.indexOf("zc-no-print")){var A=!1;try{e[r].toDataURL("image/"+n)}catch(c){A=!0}if(!A)if(o=e[r].getAttribute("data-clip")){var C=o.split(",");l.drawImage(e[r],ZC.BQ(0,C[0]),ZC.BQ(0,C[1]),ZC.CY(C[2],e[r].width),ZC.CY(C[3],e[r].height),ZC.BQ(0,C[0]),ZC.BQ(0,C[1]),ZC.CY(C[2],e[r].width),ZC.CY(C[3],e[r].height))}else l.drawImage(e[r],0,0,e[r].width,e[r].height,0,0,i,t)}return a.toDataURL("image/"+n)},ZC.AP.ABL=function(e,i,t,n,a){null===ZC._n_(a)&&(a=!1);var l=ZC.AP.A30(e,i,t,n);if(a){var o=document.createElement("img");return o.src=l,o}l=l.replace("image/"+n,"image/octet-stream"),document.location.href=l},ZC.RG.prototype.A97=function(){var e=this,i=[];if(!e.A7E){e.A7E=!0;var t=document.body.childNodes,n=ZC.A4(document.body).css("background-color"),a=ZC.A4(document.body).css("background-image");ZC.A4(document.body).css("background-color","#fff").css("background-image","none");for(var l=0,o=t.length;l<o;l++)1===t[l].nodeType&&(i[l]=t[l].style.display,t[l].style.display="none");document.body.appendChild(ZC.AK(e.K+"-wrapper")),window.setTimeout(function(){window.print(),window.setTimeout(function(){ZC.A4(document.body).css("background-color",n).css("background-image",a),ZC.AK(e.K+"-wrapper")&&ZC.AK(e.K).appendChild(ZC.AK(e.K+"-wrapper"));for(var l=0,o=t.length;l<o;l++)1===t[l].nodeType&&(t[l].style.display=i[l]);e.A7E=!1},1e3)},50)}},ZC.RG.prototype.O5=function(e,i,t,n){function a(){var a={svg:c=c.replace(/<foreignObject(.+?)<\/foreignObject>/g,""),w:l.I,h:l.F,t:e,fn:r};ZC._cp_(i,a);var A,C;if(zingchart.AJAXEXPORT&&"pdf"!==e&&"svg"!==e&&!o){var u="base64=1&";for(C in a)u+=C+"="+encodeURIComponent(a[C])+"&";ZC.A4.ajax({type:"post",url:zingchart.EXPORTURL,data:u,success:function(i,a,o){if(l.A3T(),t)n&&n(i,a,o);else{var r=document.createElement("img");r.src=i,r.id=l.K+"-print-"+e,s.appendChild(r)}}})}else{ZC.AK(l.K+"-export")&&ZC.Q.EU(l.K+"-export");var p=ZC.Q.HX({cls:"zc-abs zc-style",id:l.K+"-export",p:ZC.AK(l.K+"-top"),display:"none"}),Z=(A=null!==ZC._n_(a.uid)&&null!==ZC._n_(a.page)?ZC.Q.AB2(ZC.AK(l.K+"-export")):document).createElement("FORM");Z.action=zingchart.EXPORTURL,Z.method="post",Z.enctype="multipart/form-data",null!==ZC._n_(a.uid)&&null!==ZC._n_(a.page)?A.body.appendChild(Z):p.appendChild(Z),Z.style.display="none";for(C in a){var h=A.createElement("INPUT");h.type="hidden",h.name=C,h.value=a[C],Z.appendChild(h)}Z.submit(),Z=null,null!==ZC._n_(a.uid)&&null!==ZC._n_(a.page)&&window.setTimeout(function(){ZC.A4("#"+l.K+"-export").remove()},6e4),window.setTimeout(function(){l.A3T()},1e3)}}var l=this;if(i=i||{},void 0===t&&(t=!1),!ZC.AK(l.K+"-viewimage")){e=e||"png";var o=i.download,r=i.fn||"";ZC.Q.IQ(ZC.AK(l.K+"-guide-c"),l.AC,0,0,l.I,l.F),ZC.A4(".zc-guide-label").remove();var s,A,C=("canvas"===l.AC||zingchart.AJAXEXPORT||zingchart.DEV.LOCALSVGEXPORT)&&"pdf"!==e&&"svg"!==e;if(ZC.mobile||!C||t||o||(s=ZC.Q.HX({cls:"zc-abs zc-viewimage zc-style",id:l.K+"-viewimage",zidx:5,p:ZC.AK(l.K+"-top"),wh:l.I+"/"+l.F}),A=ZC.Q.HX({id:l.K+"-viewimage-close",p:s,zidx:10,tl:"5/"+(l.I-15),html:ZC.HI["viewimage-close"]}),ZC.A4(A).css("cursor","pointer").css("left",l.I-15-ZC.A4(A).width()+"px"),ZC.A4(A).bind("click",function(){ZC.A4(s).remove()})),ZC.mobile&&(o=!0),!zingchart.DEV.LOCALSVGEXPORT||o||"svg"!==l.AC||"png"!==e&&"jpeg"!==e){var c;if("canvas"===l.AC&&"pdf"!==e&&"svg"!==e){var u=document.createElement("canvas");u.width=l.I,u.height=l.F;var p,Z;for(p=0,Z=l.AH.length;p<Z;p++)l.AH[p].BF&&l.AH[p].BF.EL(u);var h=[];ZC.A4("#"+l.K+" canvas").each(function(){-1===ZC.AV([l.K+"-guide-c",l.K+"-trigger-c"],this.id)&&h.push(this)}),h.push(u),h.push(l.createPreviewMasks());var d=ZC.AP.ABL(h,l.I,l.F,e,!0);d.id=l.K+"-print-"+e,s.appendChild(d)}else if(t||l.A83(ZC.HI["export-wait"]),"vml"===l.AC||"canvas"===l.AC&&("pdf"===e||"svg"===e)){var f=document.createElement("div"),_="zc-export-svg-"+l.K;f.id=_,f.style.display="none",document.body.appendChild(f),zingchart.render({id:_,output:"!svg",imggen:!0,width:l.I,height:l.F,data:l.E.json,defaults:l.MM,theme:l.LH,hideprogresslogo:!0,events:{load:function(){window.setTimeout(function(){var e=zingchart.getLoader(_);if(e.E["dynamic-objects"])var i=window.setInterval(function(){"ready"===e.E["dynamic-objects"]&&(window.clearInterval(i),e.togglePreviewMasks(!0),c=ZC.AK(_+"-top").innerHTML,e.togglePreviewMasks(!1),zingchart.exec(_,"destroy",{skipfs:!0}),a())},100);else e.togglePreviewMasks(!0),c=ZC.AK(_+"-top").innerHTML,e.togglePreviewMasks(!1),zingchart.exec(_,"destroy",{skipfs:!0}),a()},100)}}})}else"svg"===l.AC&&(l.togglePreviewMasks(!0),c=ZC.AK(l.K+"-top").innerHTML,a(),l.togglePreviewMasks(!1));C&&!t&&(ZC.A4(A).css("cursor","pointer").css("left",l.I-15-ZC.A4(A).width()+"px"),ZC.A4(A).bind("click",function(){ZC.A4(s).remove()}))}else zingchart.exec(l.K,"getimagedata",{callback:function(a){if(-1!==a){var o=document.createElement("img");o.id=l.K+"-print-"+e,o.src=a,s.appendChild(o)}else ZC.Q.EU(l.K+"-viewimage"),zingchart.DEV.LOCALSVGEXPORT=0,l.O5(e,i,t,n)}})}},ZC.RG.prototype.Z0=function(e){var i=this;e=e||"png";var t=[],n=document.createElement("canvas");n.width=i.I,n.height=i.F;var a,l;for(a=0,l=i.AH.length;a<l;a++)i.AH[a].BF&&i.AH[a].BF.EL(n);return ZC.A4("#"+i.K+" canvas").each(function(){-1===ZC.AV([i.K+"-guide-c",i.K+"-tooltip-c"],this.id)&&t.push(this)}),t.push(n),t.push(i.createPreviewMasks()),ZC.AP.A30(t,i.I,i.F,e)},ZC.AP.downloadFile=function(e,i,t){if(!ZC.ie678){t=t||"application/octet-stream";var n=document.createElement("a");navigator.msSaveBlob?navigator.msSaveBlob(new Blob([e],{type:t}),i):URL&&"download"in n?(n.href=URL.createObjectURL(new Blob([e],{type:t})),n.setAttribute("download",i),document.body.appendChild(n),n.click(),document.body.removeChild(n)):location.href="data:application/octet-stream,"+encodeURIComponent(e)}},ZC.AP.A01=function(e,i){var t,n,a,l,o,r,s,A,C,c,u,p,Z,h=[],d="",f=[];for("xls"===(i=i||"csv")&&h.push('<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">',"<head>","\x3c!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>ZingChart</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--\x3e",'<style>td{border:none;font-family:Calibri,sans-serif} .number{mso-number-format:"0.00";} .text{mso-number-format:"@";}</style>',"<meta name=ProgId content=Excel.Sheet>","<meta charset=UTF-8>","</head>","<body>"),t=0,n=e.AH.length;t<n;t++){var _=e.AH[t],g=_.AY.A6,v={},b=[],m=_.BT("k")[0];"html"!==i&&"xls"!==i&&"raw"!==i||(h.push("<table>"),_.IX&&""!==_.IX.AR&&(f.push([_.IX.AR]),h.push("<caption>"+_.IX.AR+"</caption>")),h.push("<thead>"),h.push("<tr>")),u=[],Z=[];var B="Category",E=!1;for(m&&(m.FD&&"date"===m.FD.o.type&&(B="Date",E=!0),m.M&&m.M.AR&&(B=m.M.AR.replace(/\"|\'/g,""))),"csv"===i?u.push('"'+B+'"'):"raw"===i?Z.push(B):"html"!==i&&"xls"!==i||u.push("<th>"+B+"</th>"),a=0,l=g.length;a<l;a++)(null===ZC._n_(g[a].o["export"])||ZC._b_(g[a].o["export"]))&&(p=(p=null!==ZC._n_(g[a].AR)?g[a].AR+"":"Series "+a).replace(/\"|\'/g,""),"csv"===i?u.push('"'+p+'"'):"raw"===i?Z.push(p):"html"!==i&&"xls"!==i||u.push("<th"+("xls"===i?' scope="col" class="text"':"")+">"+p+"</th>"),b.push(""));if("csv"===i?h.push(u.join(",")):"raw"===i?f.push(Z):"html"!==i&&"xls"!==i||h.push(u.join("")),"html"!==i&&"xls"!==i||(h.push("</tr>"),h.push("</thead>"),h.push("<tbody>")),m){for(s=0,A=m.X.length;s<A;s++)v[s+""]={hasData:!1,nodes:[].concat(b)};for(a=0,l=g.length;a<l;a++)if(null===ZC._n_(g[a].o["export"])||ZC._b_(g[a].o["export"]))for(o=0,r=g[a].R.length;o<r;o++){var K=g[a].R[o];K&&(v[s=K.BU?""+K.BU:""+o]=v[s]||{hasData:!0,nodes:[].concat(b)},v[s].nodes[a]=K.AD,v[s].hasData=!0)}var F=[];for(s in v)v[s].hasData&&F.push([s,v[s].nodes]);F.sort(function(e,i){return e[0]-i[0]});var D=null;for(C=0,c=F.length;C<c;C++){if("html"!==i&&"xls"!==i||h.push("<tr>"),"pie"!==_.AF&&"pie3d"!==_.AF&&"nestedpie"!==_.AF||m.X[F[C][0]]&&(F[C][0]=m.X[F[C][0]]),m.BX[F[C][0]]&&(F[C][0]=m.BX[F[C][0]]),m.X[F[C][0]]&&(F[C][0]=m.X[F[C][0]]),D=_.A.FH(),D.row=C,D.col=0,D.value=F[C][0],F[C][0]=ZC.AP.BZ("dataexport",_.A,D,F[C][0],null),ZC._n_(F[C][1]))for(var X=0;X<F[C][1].length;X++)(D=_.A.FH()).row=C,D.col=X+1,D.value=F[C][1][X],F[C][1][X]=ZC.AP.BZ("dataexport",_.A,D,F[C][1][X],null);E&&(F[C][0]=ZC.AP.Y2(F[C][0],"%Y-%mm-%dd %H:%i:%s",_.U9,_.N6),"csv"===i&&(F[C][0]='"'+F[C][0]+'"')),"csv"===i?h.push([].concat(F[C][0]).concat(F[C][1]).join(",")):"raw"===i?f.push([].concat(F[C][0]).concat(F[C][1])):"html"!==i&&"xls"!==i||h.push("<td"+("xls"===i?' scope="row"':"")+">"+[].concat(F[C][0]).concat(F[C][1]).join("</td><td>")+"</td>"),"html"!==i&&"xls"!==i||h.push("</tr>")}}"html"!==i&&"xls"!==i||(h.push("</tbody>"),h.push("</table>")),n>1&&t<n-1&&("csv"===i?h.push("","",""):"html"!==i&&"xls"!==i||h.push("<p>&nbsp;</p>"))}return"xls"===i&&h.push("</body>","</html>"),"raw"===i?f:("csv"===i?d=h.join("\n"):"html"!==i&&"xls"!==i||(d=h.join("")),d)},zingchart.AB5=function(e,i,t){function n(e){ZC.A4.ajax({type:"post",url:l,data:e,success:function(e,i,t){o&&o(e,i,t)}})}var a,l,o,r,s,A="",C="";document.getElementById("zc-fullscreen")&&(e="zc-fullscreen"),"string"==typeof(t=t||{})&&(t=JSON.parse(t));var c=zingchart.getLoader(e);if(c)switch(i){case"getimagedata":if(r="png",null!==ZC._n_(a=t.format)&&(r=a),null!==ZC._n_(a=t.filetype)&&(r=a),"jpg"===r&&(r="jpeg"),zingchart.DEV.LOCALSVGEXPORT&&"svg"===c.AC&&("png"===r||"jpeg"===r)){c.togglePreviewMasks(!0);var u=ZC.AK(c.K+"-svg").parentNode.innerHTML,p=u.indexOf(">"),Z=u.indexOf("</svg>");u='<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+c.I+'" height="'+c.F+'">[CSS]'+u.substring(p+1,Z+6),u=u.replace(/<foreignObject(.+?)<\/foreignObject>/g,"");var h=function(){var e,i=window.URL||window.webkitURL||window;e=i.createObjectURL&&window.Blob?i.createObjectURL(new window.Blob([u],{type:"image/svg+xml;charset-utf-16"})):"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(u),c.togglePreviewMasks(!1);var n=new window.Image;n.crossOrigin="anonymous",n.src=e,n.onload=function(){var i=document.createElement("canvas"),a=i.getContext("2d");if(i.width=n.width,i.height=n.height,a.drawImage(n,0,0,i.width,i.height),t.callback&&"function"==typeof t.callback)try{t.callback(i.toDataURL("image/"+r))}catch(l){t.callback(e)}}},d=0,f=function(){var e=new XMLHttpRequest;e.open("get",c.A1X[d]),e.responseType="text",e.onloadend=function(e){var i=e.target.response,t=i.match(/https?:\/\/[^ \)]+/g),n=0;t.forEach(function(e){var a=new XMLHttpRequest;a.open("get",e),a.responseType="blob",a.onloadend=function(a){var l=new FileReader;l.onloadend=function(a){i=i.replace(new RegExp(e),a.target.result),++n===t.length&&(u=u.replace("[CSS]","[CSS]<style><![CDATA["+i+"]]></style>"),++d===c.A1X.length?(u=u.replace("[CSS]",""),h()):f())},l.readAsDataURL(a.target.response)},a.send()})},e.send()};c.A1X.length?f():(u=u.replace("[CSS]",""),h())}if("canvas"!==c.AC&&!zingchart.AJAXEXPORT)return-1;if("canvas"===c.AC){if(!t.callback||"function"!=typeof t.callback)return c.Z0(r);try{t.callback(c.Z0(r))}catch(v){t.callback(-1)}}else c.O5(r,{},!0,t.callback);break;case"exportimage":case"saveasimage":if(!t.download&&"canvas"!==c.AC&&!zingchart.AJAXEXPORT)return-1;if(r="png",s={},null!==ZC._n_(a=t.options)&&(s=a),null!==ZC._n_(a=t.uid)&&(s.uid=a),null!==ZC._n_(a=t.page)&&(s.page=a),null!==ZC._n_(a=t.format)&&(r=a),null!==ZC._n_(a=t.filetype)&&(r=a),null!==ZC._n_(a=t.filename)&&(A=a),l=c.E.exportimageurl||"",null!==ZC._n_(a=t.url)&&(l=a),o=null,null!==ZC._n_(a=t.callback)&&(o=a),"jpg"===r&&(r="jpeg"),t.download&&("canvas"!==c.AC||"pdf"===r))return s.download=!0,""!==A&&(s.fn=A),void c.O5(r,s);if(""!==l){if("canvas"===c.AC)return n(c.Z0(r));c.O5(r,s,!0,function(e){return n(e)})}break;case"exportdata":if(l=c.E.exportdataurl||"",null!==ZC._n_(a=t.url)&&(l=a),C=ZC.AP.dataToCSV(c),""===l)return C;o=null,null!==ZC._n_(a=t.callback)&&(o=a),ZC.A4.ajax({type:"post",url:l,data:C,success:function(e,i,t){o&&o(e,i,t)}});break;case"downloadCSV":C=ZC.AP.A01(c,"csv"),ZC.AP.downloadFile(C,(t.fn||c.K)+".csv","text/csv;encoding:utf-8");break;case"downloadXLS":C=ZC.AP.A01(c,"xls"),ZC.AP.downloadFile(C,(t.fn||c.K)+".xls","application/vnd.ms-excel;encoding:utf-8");break;case"downloadRAW":var _=ZC.AP.A01(c,"raw");if(!t.callback||"function"!=typeof t.callback)return _;try{t.callback(_,t.fn||c.K)}catch(v){t.callback(-1)}break;case"viewDataTable":if("viewdatatable"===t.menuid)if(C=ZC.AP.A01(c,"html"),ZC.AK(c.K+"-data-table"))ZC.AK(c.K+"-data-table").innerHTML=C;else{var g=ZC.Q.HX({id:c.K+"-data-table",cls:"zc-data-table "+c.K+"-data-table"});ZC.Q.PD(g,{width:c.I+"px","max-height":"400px",overflow:"auto"}),g.innerHTML=C,ZC.AK(c.K).parentNode.insertBefore(g,ZC.AK(c.K).nextSibling)}else"hidedatatable"===t.menuid&&ZC.Q.EU(c.K+"-data-table")}return null},ZC.A8W={},ZC.AP.WM=function(e){for(var i,t="",n=!1,a=!1,l=0,o="",r=0,s=(e=e.replace(/\t|\r|\n/g,"")).length;r<s;r++)switch(i=e.substr(r,1)){case'"':n=!n,t+=e.substr(r,1),o=i;break;case"{":t+=e.substr(r,1),n||(t+="\n"+new Array(l+1).join("    "),l++,o=i);break;case"}":n||(t+="\n"+new Array(l).join("    "),l--,o=i),t+=e.substr(r,1);break;case"[":var A=e.indexOf("]",r),C=e.indexOf("}",r);C=-1===C?999999:C;var c=e.indexOf("{",r);c=-1===c?999999:c,A<ZC.CY(C,c)?(a=!0,t+=e.substr(r,1)):(a=!1,t+=e.substr(r,1),t+="\n"+new Array(l+1).join("    "),l++),o=i;break;case"]":a&&(a=!1),"}"===o&&(l--,t+="\n"+new Array(l).join("    ")),t+=e.substr(r,1),o=i;break;case" ":n&&(t+=e.substr(r,1),o=i);break;case",":t+=e.substr(r,1),n||a||(t+="\n"+new Array(l).join("    ")),o=i;break;default:t+=e.substr(r,1),o=i}return t},ZC.RG.prototype.A5L=function(){var e=this;ZC.AP.BZ("source_show",e,e.FH());var i=ZC.Q.HX({cls:"zc-abs zc-viewsource zc-style",id:e.K+"-viewsource",p:ZC.AK(e.K+"-top"),wh:e.I-(ZC.quirks?0:10)+"/"+(e.F-(ZC.quirks?0:10))});i.style.zIndex=99,i.innerHTML=ZC._h_('<div class="zc-form-row-label zc-form-s1">&nbsp;<a href="javascript:void(0)" id="'+e.K+'-viewsource-originalsource" class="zc-tab-active">'+ZC.HI["viewsource-originalsource"]+'</a>&nbsp;<a href="javascript:void(0)" id="'+e.K+'-viewsource-jsonsource" class="zc-tab-inactive">'+ZC.HI["viewsource-jsonsource"]+'</a></div><div class="zc-form-row-element"><textarea id="'+e.K+'-viewsource-json" style="width:'+(e.I-35)+"px;height:"+(e.F-95)+'px;"></textarea></div><div class="zc-form-row-element zc-form-row-last" id="'+e.K+'-viewsource-actions"><input type="button" value="'+ZC.HI["viewsource-close"]+'" id="'+e.K+'-viewsource-close" /></div>'),zingchart.EDITSOURCE&&(ZC.AK(e.K+"-viewsource-actions").innerHTML+='<input type="button" value="'+ZC.HI["viewsource-apply"]+'" id="'+e.K+'-viewsource-apply" />'),ZC.A4("#"+e.K+"-viewsource-json").val(ZC.AP.WM(e.E.source)),ZC.A4("#"+e.K+"-viewsource-jsonsource").bind("click",function(){ZC.AK(e.K+"-viewsource-jsonsource").className="zc-tab-active",ZC.AK(e.K+"-viewsource-originalsource").className="zc-tab-inactive",ZC.A4("#"+e.K+"-viewsource-json").val(ZC.AP.WM(e.E.json))}),ZC.A4("#"+e.K+"-viewsource-originalsource").bind("click",function(){ZC.AK(e.K+"-viewsource-jsonsource").className="zc-tab-inactive",ZC.AK(e.K+"-viewsource-originalsource").className="zc-tab-active",ZC.A4("#"+e.K+"-viewsource-json").val(ZC.AP.WM(e.E.source))}),ZC.A4("#"+e.K+"-viewsource-close").bind("click",function(){ZC.AP.BZ("source_hide",e,e.FH()),ZC.Q.EU(e.K+"-viewsource")}),zingchart.EDITSOURCE&&ZC.A4("#"+e.K+"-viewsource-apply").bind("click",function(){ZC.AP.BZ("source_hide",e,e.FH());var i=ZC.A4("#"+e.K+"-viewsource-json").val();ZC.Q.EU(e.K+"-viewsource"),zingchart.exec(e.K,"setdata",{data:i})})},ZC.RG.prototype.A6I=function(){var e=this;if(e.I<300||e.F<300)window.open("http://www.zingchart.com/support/","","");else{var i=ZC.Q.HX({cls:"zc-abs zc-bugreport zc-style",id:e.K+"-bugreport",p:ZC.AK(e.K+"-top"),wh:e.I-(ZC.quirks?0:10)+"/"+(e.F-(ZC.quirks?0:10))}),t="";t+='<div class="zc-form-row-label zc-form-s0">'+ZC.HI["bugreport-header"]+'</div><div class="zc-form-row-label"><input type="checkbox" id="'+e.K+'-chkdata" checked="checked" /><label for="'+e.K+'-chkdata">'+ZC.HI["bugreport-senddata"]+"</label>",ZC.canvas&&(t+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id="'+e.K+'-chkcapture" checked="checked" /><label for="'+e.K+'-chkcapture">'+ZC.HI["bugreport-sendcapture"]+"</label>"),t+='</div><div class="zc-form-row-label zc-form-s1">'+ZC.HI["bugreport-yourcomment"]+'</div><div class="zc-form-row-element"><textarea id="'+e.K+'-bugreport-comment" style="width:'+(e.I-35)+"px;height:"+((e.F-300)/2-10)+'px;"></textarea></div><div class="zc-form-row-label zc-form-s1">'+ZC.HI["bugreport-jsondata"]+'</div><div class="zc-form-row-element"><textarea id="'+e.K+'-bugreport-json" style="width:'+(e.I-35)+"px;height:"+(e.F-210)/2+'px;"></textarea></div><div class="zc-form-row-label zc-form-s1">'+ZC.HI["bugreport-youremail"]+(e.I>=510?" <span>("+ZC.HI["bugreport-infoemail"]+")</span>":"")+'</div><div class="zc-form-row-element"><input type="text" id="'+e.K+'-bugreport-email" style="width:'+(e.I-35)+'px;" /></div><div class="zc-form-row-element zc-form-row-last"><input type="button" value="'+ZC.HI["bugreport-submit"]+'" id="'+e.K+'-bugreport-submit" /><input type="button" value="'+ZC.HI["bugreport-cancel"]+'" id="'+e.K+'-bugreport-cancel" /></div>',i.innerHTML=ZC._h_(t),ZC.A4("#"+e.K+"-bugreport-json").val("PARSED\n----------\n"+ZC.AP.WM(e.E.json)+"\n\nORIGINAL\n----------\n"+ZC.AP.WM(e.E.source)),ZC.A4("#"+e.K+"-bugreport-cancel").bind("click",function(){ZC.Q.EU(e.K+"-bugreport")}),ZC.A4("#"+e.K+"-bugreport-submit").bind("click",function(){var i=ZC.A4("#"+e.K+"-bugreport-email"),t="",n=function(){var n=("Parsed:"+e.E.json+" Original:"+e.E.source).replace(/\r|\n|\t|(\s{2,})/g,""),a="",l=[];ZC.A4("#"+e.K+"-chkcapture").attr("checked")&&l.push("****IMAGE:",t),ZC.A4("#"+e.K+"-chkdata").attr("checked")&&l.push("****JSON:",n),l.push("****COMMENT:",ZC.A4("#"+e.K+"-bugreport-comment").val(),"****EMAIL:",i.val(),"****VERSION:",ZC.VERSION,"****WIDTH:",e.I,"****HEIGHT:",e.F,"****URL:",window.location.href,"****UA:",navigator.userAgent,"****RENDER:",e.AC.toUpperCase(),"****RESOLUTION:",screen.width+"x"+screen.height);for(var o=0;o<l.length-1;o+=2)a+=l[o]+encodeURIComponent(l[o+1]);a+="****END";var r=ZC.Q.AB2(ZC.AK(e.K+"-bugreport")),s=r.createElement("FORM");s.action=document.location.protocol+"//www.zingchart.com/support/submitreportH5.php",s.method="post",r.body.appendChild(s);var A=r.createElement("INPUT");A.type="text",A.name="data",A.value=a,s.appendChild(A),s.submit(),window.setTimeout(function(){alert(ZC.HI["bugreport-confirm"]),ZC.Q.EU(e.K+"-bugreport")},1e3)};"canvas"===e.AC?(t=zingchart.exec(e.K,"getimagedata",{}),n()):t=zingchart.exec(e.K,"getimagedata",{callback:function(e){t=e,n()}})})}},ZC.RG.prototype.paintHistory=function(){var e,i,t,n=this;ZC.Q.EU([n.K+"-history-path",n.K+"-history-back-path",n.K+"-history-forw-path",n.K+"-history-gradient",n.K+"-history-back-gradient",n.K+"-history-forw-gradient"]),null!==ZC._n_(e=n.o.history)&&(n.I7=new ZC.DS(n),n.B7.load(n.I7.o,"loader.gui.history"),n.I7.append(e),n.I7.parse(),n.I7.A4K=!0,i=new ZC.DW(n),n.B7.load(i.o,"loader.gui.history.item"),i.append(e.item),i.parse(),t=new ZC.DW(n),n.B7.load(t.o,"loader.gui.history.item-off"),t.append(e.item),t.append(e["item-off"]),t.parse());var a="";if(n.I7){n.I7.K=n.K+"-history",n.I7.Z=n.I7.C6=ZC.AK(n.K+"-static-c"),n.I7.paint();var l=n.I7.iX+n.I7.EP,o=n.I7.iY+n.I7.FJ,r=n.I7.I-n.I7.EP-n.I7.FK,s=n.I7.F-n.I7.FJ-n.I7.FR,A=new ZC.DW(n);A.K=n.K+"-history-back",A.copy(i),A.CZ=!1,0===n.NY&&A.copy(t),A.D=[[l,o+s/2],[l+r/3,o],[l+r/3,o+s],[l,o+s/2]],A.IJ=ZC.AK(n.A.K+"-text"),A.Z=A.C6=ZC.AK(n.K+"-static-c"),A.parse(),A.paint(),n.NY>0&&(a+=ZC.Q.GC("rect",!0)+'class="'+n.K+'-history-area zc-history-area" id="'+n.K+'-history-back-area" coords="',a+=ZC._i_(l+ZC.MAPTX)+","+ZC._i_(o+ZC.MAPTX)+","+ZC._i_(l+r/3+ZC.MAPTX)+","+ZC._i_(o+s+ZC.MAPTX),a+='" />');var C=new ZC.DW(n);C.K=n.K+"-history-forw",C.copy(i),C.CZ=!1,n.NY!==n.QQ.length-1&&0!==n.QQ.length||C.copy(t),C.D=[[l+r,o+s/2],[l+2*r/3,o],[l+2*r/3,o+s],[l+r,o+s/2]],C.IJ=ZC.AK(n.A.K+"-text"),C.Z=C.C6=ZC.AK(n.K+"-static-c"),C.parse(),C.paint(),n.NY<n.QQ.length-1&&(a+=ZC.Q.GC("rect",!0)+'class="'+n.K+'-history-area zc-history-area" id="'+n.K+'-history-forw-area" coords="',a+=ZC._i_(l+2*r/3+ZC.MAPTX)+","+ZC._i_(o+ZC.MAPTX)+","+ZC._i_(l+r+ZC.MAPTX)+","+ZC._i_(o+s+ZC.MAPTX),a+='" />'),""!==a&&(ZC.AK(n.K+"-map").innerHTML+=a),n.A0J=function(e){e.target.id===n.K+"-history-back-area"?zingchart.exec(n.K,"goback"):e.target.id===n.K+"-history-forw-area"&&zingchart.exec(n.K,"goforward")},ZC.A4("."+n.K+"-history-area").live("click",n.A0J)}},ZC.AN={A4E:1,E3:0,E2:0,FS:40},ZC.DH={A2X:function(e,i){var t,n;return i.AA%180==0?(t=new ZC.CF(e,-e.I/2,i.iY-e.iY-e.F/4,0),n=new ZC.CF(e,e.I/2,i.iY-e.iY-e.F/4,0)):(t=new ZC.CF(e,i.iX-e.iX-e.I/4,-e.F/2,0),n=new ZC.CF(e,i.iX-e.iX-e.I/4,e.F/2,0)),ZC.TO(Math.atan((n.EB[1]-t.EB[1])/(n.EB[0]-t.EB[0])))+(i.AA%180==0?0:i.AA%360==90?90:-90)},DA:function(e,i,t,n,a,l,o,r,s){s=s||"z";var A,C,c,u,p=new ZC.ZF(e,i);switch(s){case"x":A=new ZC.CF(i,t,a,o),C=new ZC.CF(i,n,a,o),c=new ZC.CF(i,n,l,r),u=new ZC.CF(i,t,l,r);break;case"y":A=new ZC.CF(i,t,a,o),C=new ZC.CF(i,t,l,o),c=new ZC.CF(i,n,l,r),u=new ZC.CF(i,n,a,r);break;case"z":A=new ZC.CF(i,t,a,o),C=new ZC.CF(i,t,a,r),c=new ZC.CF(i,n,l,r),u=new ZC.CF(i,n,l,o)}return p.add(A),p.add(C),p.add(c),p.add(u),p},D7:function(e,i,t,n){void 0===n&&(n=!1);var a,l=null,o=null;t instanceof Array?l=t:(l=t.points,o=t.mathpoints);for(var r=new ZC.ZF(e,i),s=0,A=l.length;s<A;s++)null!==ZC._n_(l[s])&&(n?r.add(l[s],o?o[s]:null):r.add(new ZC.CF(i,l[s][0],l[s][1],l[s][2]),o?new ZC.CF(i,o[s][0],o[s][1],o[s][2]):null));return(a=e.o["z-modifier"])&&(r.MB=[ZC._i_(a),ZC._i_(a),ZC._i_(a)]),r}},ZC.CF=ZC.C8.C7({$i:function(e,i,t,n){this.parse(e,i,t,n)},parse:function(e,i,t,n){var a=this;a.C=e,a.iX=i,a.iY=t,n-=a.C.F0.depth/2,a.iZ=n,a.EN=0,a.EJ=0,a.AAM=0,a.EB=[];var l=a.C.F0.angle,o=a.C.F0.zoom;if(a.C.F0.true3d){var r={x:i,y:t,z:n},s={x:0,y:0,z:0},A={x:a.C.F0["x-angle"],y:a.C.F0["y-angle"],z:a.C.F0["z-angle"]},C=2*Math.PI/360,c=Math.sin(A.x*C),u=Math.sin(A.y*C),p=Math.sin(A.z*C),Z=Math.cos(A.x*C),h=Math.cos(A.y*C),d=Math.cos(A.z*C);a.EN=h*(p*(r.y-s.y)+d*(r.x-s.x))-u*(r.z-s.z),a.EJ=c*(h*(r.z-s.z)+u*(p*(r.y-s.y)+d*(r.x-s.x)))+Z*(d*(r.y-s.y)-p*(r.x-s.x)),a.AAM=Z*(h*(r.z-s.z)+u*(p*(r.y-s.y)+d*(r.x-s.x)))-c*(d*(r.y-s.y)-p*(r.x-s.x)),a.EB[0]=ZC.AN.E3+ZC.AN.A4E/(ZC.AN.A4E+a.AAM)*a.EN*o,a.EB[1]=ZC.AN.E2+ZC.AN.A4E/(ZC.AN.A4E+a.AAM)*a.EJ*o}else a.EB[0]=ZC.AN.E3+i+n*ZC.EF(l)*o,a.EB[1]=ZC.AN.E2+t-n*ZC.EO(l)*o}}),ZC.ZF=ZC.C8.C7({$i:function(e,i){var t=this;t.C=i,t.N=e,t.K="",t.K5=!1,t.MB=[1,1,1],t.FX=-1,t.D=[],t.P3=[],t.SJ=-9999,t.ZK=-9999,t.A4X=9999,t.A54=9999,t.A94=9999,t.A36=0,t.A25=0,t.ABX=0},add:function(e,i){var t=this;t.D.push(e),t.P3.push(i||e)},AD8:function(){for(var e=this,i=e.P3.length,t=0;t<i;t++){var n=e.P3[t];e.SJ=ZC.BQ(e.SJ,n.iZ),ZC._b_(e.C.F0.true3d)?(e.A4X=ZC.CY(e.A4X,n.iZ),e.ZK=ZC.BQ(e.ZK,n.AAM),e.A25+=n.iY):(e.A54=ZC.CY(e.A54,n.iX),e.A94=ZC.CY(e.A94,n.iY),e.A36+=n.iX,e.A25+=n.iY,e.ABX+=n.iZ)}e.A36/=i,e.A25/=i,e.ABX/=i},FB:function(){for(var e=this,i="",t=0,n=e.D.length;t<n;t++)i+=ZC._i_(e.D[t].EB[0]+ZC.MAPTX)+","+ZC._i_(e.D[t].EB[1]+ZC.MAPTX)+",";return i=i.substring(0,i.length-1)}}),ZC.US=ZC.C8.C7({$i:function(){var e=this;e.A42=[],e.ADE={},e.WN=[],e.SF={}},clear:function(){var e=this;e.A42=[],e.WN=[],e.SF={}},add:function(e){this.A42.push(e)},sortFaces:function(e,i){return 1===zingchart.V3D?e[0][0]>i[0][0]?-1:e[0][0]<i[0][0]?1:e[0][1]>i[0][1]?1:e[0][1]<i[0][1]?-1:e[0][2]>i[0][2]?-1:e[0][2]<i[0][2]?1:e[0][3]>i[0][3]?-1:e[0][3]<i[0][3]?1:0:2===zingchart.V3D?-1!==e[0][3]||-1!==i[0][3]?e[0][3]>i[0][3]?1:e[0][3]<i[0][3]?-1:0:e[0][0]>i[0][0]?-1:e[0][0]<i[0][0]?1:e[0][1]>i[0][1]?1:e[0][1]<i[0][1]?-1:e[0][2]>i[0][2]?1:e[0][2]<i[0][2]?-1:0:3===zingchart.V3D?e[0]>i[0]?-1:e[0]<i[0]?1:0:void 0}}),ZC.A89=ZC.C8.C7({$i:function(e){var i=this;i.H=e,i.V7=!1,i.OM=250,i.GE=0,i.IE=0,i.GW=20,i.B8="",i.CD=[],i.A8=null},onmouseout:function(){var e=this;ZC.mobile||(e.V7?(null!==ZC._n_(e.C3)&&window.clearInterval(e.C3),e.C3=window.setInterval(function(){var i=e.H.K,t=ZC.A4("#"+i+("svg"===e.H.AC?"-top":"-main")),n=ZC.DX[0]-t.offset().left,a=ZC.DX[1]-t.offset().top;ZC.DT(n,e.GE,e.GE+e.A8.I)&&ZC.DT(a,e.IE,e.IE+e.A8.F)||(null!==ZC._n_(e.C3)&&window.clearInterval(e.C3),e.hide())},e.OM)):e.hide())},clear:function(){var e=this;ZC.Q.IQ(ZC.AK(e.H.K+"-tooltip-c"),e.H.AC,e.iX,e.iY,e.I,e.F,e.K)},hide:function(){if(!ZC.TTLOCK){var e=this,i=e.H.K;ZC.Q.EU([i+"-tooltip-text",i+"-tooltip",i+"-tooltip-text-float"]),"svg"===e.H.AC&&ZC.A4("clipPath").each(function(){-1!==this.id.indexOf("-hover_image-clip")&&ZC.Q.EU(this.id)})}},show:function(e){var i,t=this;null!==ZC._n_(t.C3)&&window.clearInterval(t.C3);var n=t.H.K;if(0!==ZC.A4("#"+n+"-tooltip-c").length&&t.A8){var a=ZC._tx_(t.H.K),l=ZC.Q.M7(e),o=ZC.A4("#"+n+("svg"===t.H.AC?"-top":"-main")),r=l[0]-o.offset().left-t.A8.I*a[0]/2,s=l[1]-o.offset().top-t.A8.F*a[1],A=r,C=1+2*t.A8.JP;if(null!==ZC._n_(t.A8.o.x)&&((r=ZC.IG(t.A8.o.x,!0))>0&&r<1&&(r=ZC._i_(t.H.I*r)),t.A8.o.fixed&&(r-=t.A8.I/2)),null!==ZC._n_(t.A8.o.y)&&((s=ZC.IG(t.A8.o.y,!0))>0&&s<1&&(s=ZC._i_(t.H.F*s)),t.A8.o.fixed&&(s-=t.A8.F/2)),r+=ZC._i_(t.A8.E["offset-x"]),s+=ZC._i_(t.A8.E["offset-y"]),"svg"===t.H.AC||!t.A8.o.placement){var c=0,u=!1,p=t.A8.ES;r/a[0]<C&&(c=A/a[0]-C-t.A8.H6/2,r=C),r/a[0]+t.A8.I>t.H.I-C&&(c=A/a[0]+t.A8.I-t.H.I+C+t.A8.H6/2,r=(t.H.I-C-t.A8.I)*a[0]),s/a[1]<C&&(t.CD.node||!t.A8.o.placement?(s=C+ZC._i_(t.A8.E["offset-y"]),s=t.CD.node?s<C?C:s:s<C?l[1]-o.offset().top-ZC._i_(t.A8.E["offset-y"]):s,p="top",u=!0):s=C+(l[1]-o.offset().top-ZC._i_(t.A8.E["offset-y"]))),s/a[1]+t.A8.F>t.H.F-C&&(s=t.H.F-C-t.A8.F,!t.CD.node&&t.A8.o.placement||(p="top",u=!0)),0===c&&!u||"xy"===t.A8.o.placement||t.A8.Z&&(t.clear(),u&&(t.A8.ES=p),c=ZC.CY(c,t.A8.I/2-t.A8.H6/2),c=48*(c=ZC.BQ(c,-t.A8.I/2+t.A8.H6/2))/(t.A8.I/2-t.A8.H6/2),t.A8.EV=c,t.A8.AM&&t.A8.paint())}switch(t.GE=r,t.IE=s,t.H.AC){case"svg":null===ZC._n_(t.A8.o.x)&&null===ZC._n_(t.A8.o.y)&&ZC.AK(n+"-tooltip").setAttribute("transform","translate("+r/a[0]+","+s/a[1]+")"),t.A8.E["html-mode"]&&ZC.Q.PD(ZC.AK(n+"-tooltip-text-float"),{left:(""===t.B8?r/a[0]:t.A8.iX)+t.A8.EP+"px",top:(""===t.B8?s/a[1]:t.A8.iY)+t.A8.FJ+"px"});break;case"vml":null===ZC._n_(t.A8.o.x)&&null===ZC._n_(t.A8.o.y)&&ZC.Q.PD(ZC.AK(n+"-tooltip"),{left:r+"px",top:s+"px"});break;case"canvas":null!==ZC._n_(t.CD.x)&&(r=t.CD.x),null!==ZC._n_(t.CD.y)&&(s=t.CD.y);var Z=t.A8.E["html-mode"]?0:20;switch(t.A8.WG){case"tl":break;case"tr":r-=t.A8.I;break;case"bl":s-=t.A8.F;break;case"br":r-=t.A8.I,s-=t.A8.F;break;case"c":r-=t.A8.I/2,s-=t.A8.F/2;break;case"t":r-=t.A8.I/2;break;case"r":r-=t.A8.I,s-=t.A8.F/2;break;case"b":r-=t.A8.I/2,s-=t.A8.F;break;case"l":s-=t.A8.F/2}ZC.Q.PD(ZC.AK(n+"-tooltip-c"),{left:r/a[0]-Z+"px",top:s/a[1]-Z+"px"}),null!==(i=ZC.AK(n+"-tooltip-text"))&&(i.style.display="none",ZC.Q.PD(i,{width:t.A8.I+"px",height:t.A8.F+"px",left:r/a[0]+"px",top:s/a[1]+"px"}),i.style.display="block")}}},onmousemove:function(e){this.show(e)},onmouseover:function(e,i){var t,n,a,l=this,o=l.H.K,r=e.targetid||e.target.id,s=r.replace(/--([a-zA-Z0-9]+)/,"").replace("-gshape-area","-area").replace("-area-path","").replace("-path","").replace("-marker-circle","").replace("-marker","").split("-").reverse(),A=r.split("--"),C=!1,c=!1,u=!1;"node"===s[1]&&"plot"===s[3]&&"plotset"===s[4]&&(C=!0),ZC.Q.EU([o+"-tooltip-text",o+"-tooltip",o+"-tooltip-text-float"]);var p,Z,h;if(C){if(!(p=l.H.OR(s[5])))return;if(Z=p.AY.A6[s[2]],h=Z.FP(s[0]),"xy"===p.AJ.layout&&h.T1(),!h)return;ZC.A4("#"+o+"-graph-"+s[5]+"-plot-"+s[2]+"-bg-hover-c").show()}else"legend"===s[2]&&0===s[1].indexOf("item")&&(c=!0),0!==s[2].indexOf("scale")||0!==s[1].indexOf("item")&&0!==s[1].indexOf("marker")||(u=!0),p=l.H.OR(s[3]);if(ZC.AK(o+"-tooltip")||(ZC.Q.JW({id:o+"-tooltip",p:ZC.AK(o+"-main"),cls:"zc-abs zc-tooltip",wh:l.H.I+"/"+l.H.F,overflow:"hidden"},l.H.AC),ZC.Q.HE({id:o+"-tooltip-c",p:ZC.AK(o+"-tooltip"),cls:"zc-abs",tl:"-999/-999",width:140,height:60},l.H.AC)),l.A8=zingchart.pool.getInstance("DS",l,o+"-tooltip-text"),l.A8.O8="tooltip",l.A8.A=l.H,p&&p.A8&&l.A8.copy(p.A8),C)l.A8.append(Z.A8.o),p.CH["p"+Z.L]&&p.CH["p"+Z.L]["n"+h.L]&&l.A8.append(Z.A8.o["selected-state"]),2===A.length&&l.A8.append(Z.ABT(A[1]));else{var d=!1;if(c&&p.BF&&null!==ZC._n_(p.BF.o.tooltip)&&(l.A8.o.text="",l.A8.append(p.BF.o.tooltip),d=!0),u){l.A8.append({"background-color":"#fff","border-width":1,"border-color":"#999"});var f=p.BN(s[2].replace(/\_/g,"-"));if(f&&null!==ZC._n_(f.o.tooltip)&&(l.A8.o.text="",l.A8.append(f.o.tooltip),d=!0),0===s[1].indexOf("item_"))f&&(-1!==s[1].indexOf("_title")&&f.o.label&&f.o.label.tooltip?(l.A8.o.text="",l.A8.append(f.o.label.tooltip),d=!0):f.o.item&&f.o.item.tooltip&&(l.A8.o.text="",l.A8.append(f.o.item.tooltip),d=!0));else if(0===s[1].indexOf("marker_")){var _=ZC._i_(s[1].replace("marker_",""));f.PY[_]&&f.PY[_].o.label&&f.PY[_].o.label.tooltip&&(l.A8.o.text="",l.A8.append(f.PY[_].o.label.tooltip),d=!0)}}if("shape"===s[2])if(l.A8.append({"background-color":"#fff","border-width":1,"border-color":"#999"}),e.target.getAttribute("data-lowlevel"))l.A8.append({text:e.target.getAttribute("data-tooltip-text")}),d=!0;else for(n=0,a=p.FE.length;n<a;n++)if(null!==ZC._n_(p.FE[n])){var g=p.FE[n]instanceof ZC.QU?p.FE[n].BE:p.FE[n];p.K+"-shape-"+s[1]===p.FE[n].K&&null!==ZC._n_(t=g.o.tooltip)&&(l.A8.append(t),l.A8.o.fixed&&(l.A8.o.x=g.iX,l.A8.o.y=g.iY),d=!0)}if("label"===s[2])for(l.A8.append({"background-color":"#fff","border-width":1,"border-color":"#999"}),n=0,a=p.BX.length;n<a;n++)p.K+"-label-"+s[1]===p.BX[n].K&&null!==ZC._n_(t=p.BX[n].o.tooltip)&&(l.A8.append(t),l.A8.o.fixed&&(l.A8.o.x=p.BX[n].iX+p.BX[n].I/2,l.A8.o.y=p.BX[n].iY+p.BX[n].F/2),d=!0);if("xy"===s[2]&&(l.A8.append({"background-color":"#fff","border-width":1,"border-color":"#999"}),d=!0),!d)return}i&&l.A8.append(i),l.V7=!1,l.OM=250,null!==ZC._n_(t=l.A8.o.sticky)&&(l.V7=ZC._b_(t)),null!==ZC._n_(t=l.A8.o.timeout)&&(l.OM=ZC._i_(t)),null!==ZC._n_(t=l.A8.o.placement)?l.B8=t:l.B8="",null!==ZC._n_(t=l.A8.o.distance)&&(l.GW=ZC._i_(t)),l.A8.iX=0,l.A8.iY=0,l.A8.Z=l.A8.C6=ZC.AK(o+"-tooltip-c");var v;if(C){v=h.XP(),h.GZ(v),null!==ZC._n_(v["line-color"])?l.A8.A0=l.A8.AE=ZC.AP.JH(v["line-color"]):l.A8.A0=l.A8.AE=ZC.AP.JH(v["background-color"]),l.A8.BV=v["border-color"],l.A8.C1=v.color,null!==ZC._n_(Z.o.rules)?(l.ZR||(l.ZR=new ZC.IC(Z.A),l.ZR.E["quick-parse"]=!0),l.ZR.append(Z.o),l.ZR.parse(),l.ZR.JE=function(e){return h.JE(e)},l.ZR.DE()&&l.ZR.parse(),l.A8.AR=l.ZR.JV):l.A8.AR=Z.JV;var b=ZC.AP.OQ(l.A8.o,Z.o);l.A8.KE=function(e){return h.KE(e,b)},l.A8.E.plotidx=h.A.L,l.A8.E.nodeidx=h.L}else if(c){for(Z=p.AY.A6[s[1].replace("item_","")],l.A8.append(Z.o["legend-tooltip"]),h=null,n=0,a=Z.R.length;n<a;n++)if(null!==Z.R[n]){h=Z.FP(n);break}if(h){if("-1"===(v=h.XP())["background-color"])return;l.A8.A0=l.A8.AE=ZC.AP.JH(v["background-color"]),l.A8.C1=v.color}else l.A8.A0=l.A8.AE=ZC.AP.JH(Z.BP[1]),l.A8.C1=Z.BP[0];l.A8.AR=Z.YB,l.A8.KE=function(e){return e=e.replace(/%plot-description/g,Z.YB),e=e.replace(/%plot-text|%t/g,Z.AR)}}else if(u){if(0===s[1].indexOf("item_")){var m=s[1].replace("item_","").split("_"),B=1===m.length?ZC._i_(m[0]):ZC._i_(m[1]);l.A8.KE=function(e){e=e||"%scale-value";var i=f.BX[B]||f.X[B];if(f.FD){var t={"transform-date":!0,"transform-date-format":f.FD.o.all||f.FD.o.text||"",utc:p.U9,timezone:p.N6};i=ZC.AP.GF(i,t,l.A,!!f.FD&&f.FD)}"number"==typeof i&&f.IM&&null!==ZC._n_(f.IM[i])&&(i=f.IM[i]),e=(e=e.replace(/%text|%item-text|%scale-value|%v/g,i)).replace(/%tooltip-text/g,f.A4F[B]||"");for(var n in f.o)f.o.hasOwnProperty(n)&&"data-"===n.substring(0,5)&&(e=e.replace("%"+n,f.o[n][B]||"","g"));return e}}}else l.A8.KE=function(e){return e};if(null===ZC._n_(l.A8.o["text-alpha"])&&(l.A8.o["text-alpha"]=1),l.A8.parse(),!C&&"canvas"!==l.H.AC&&l.A8.o.fixed&&(l.A8.iX=l.A8.iX-l.A8.I/2+l.A8.BJ,l.A8.iY=l.A8.iY-l.A8.F/2+l.A8.BH),l.A8.AM){l.A8.HT&&(C&&l.A8.GZ(l.A8,l.A8,null,h.LQ(e,!1)),l.A8.parse()),l.A8.E["html-mode"]=!1,null!==ZC._n_(t=l.A8.o["html-mode"])&&(l.A8.E["html-mode"]=ZC._b_(t)),C&&(l.A8.JE=function(e){return h.JE(e)},l.A8.DE()&&l.A8.parse());var E,K;if("canvas"!==l.H.AC&&"vml"!==l.H.AC||0===l.A8.AA)E=l.A8.I+l.A8.JP,K=l.A8.F+l.A8.JP,E+=40,K+=40,l.A8.E["offset-x"]=l.A8.BJ,l.A8.E["offset-y"]=l.A8.BH;else{var F=1.25*ZC.BQ(l.A8.I,l.A8.F)+l.A8.JP;E=F,K=F,l.A8.iX+=(F-l.A8.I)/2,l.A8.iY+=(F-l.A8.F)/2,l.A8.E["offset-x"]=-(F-l.A8.I)/2+l.A8.BJ,l.A8.E["offset-y"]=-(F-l.A8.F)/2+l.A8.BH}if(ZC.A4("#"+o+"-tooltip-c").attr("width",E).attr("height",K),"vml"===l.H.AC&&ZC.Q.PD(ZC.AK(o+"-tooltip-c"),{top:0,left:0}),l.A8.PZ=l.A8.BJ,l.A8.MA=l.A8.BH,l.A8.BJ=0,l.A8.BH=0,!e.type&&C&&("canvas"===l.H.AC?(null===ZC._n_(l.A8.o.x)&&(l.A8.o.x=h.iX-l.A8.I/2),null===ZC._n_(l.A8.o.y)&&(l.A8.o.y=h.iY-l.A8.F)):(null===ZC._n_(l.A8.o.x)&&(l.A8.iX=h.iX-l.A8.I/2),null===ZC._n_(l.A8.o.y)&&(l.A8.iY=h.iY-l.A8.F-20))),C&&(l.CD=l.getPlacementInfo(h),""!==l.B8&&("canvas"!==l.H.AC?(l.A8.o.x=l.A8.iX=l.CD.x,l.A8.o.y=l.A8.iY=l.CD.y):(l.A8.o.x=l.A8.iX=0,l.A8.o.y=l.A8.iY=0),l.A8.ES=l.CD.cp,l.A8.EV=l.CD.co)),l.A8.AM&&""!==l.A8.AR&&("canvas"===l.H.AC&&(l.A8.E["html-mode"]||(l.A8.iX=20,l.A8.iY=20)),l.A8.paint()),(e.type&&C||e.update)&&(h.AAO(),h.C.QK(!0)),e.type||"canvas"===l.H.AC)l.show(e);else if(l.A8.E["html-mode"]){var D=l.A8.iX+l.A8.EP,X=l.A8.iY+l.A8.FJ;ZC.Q.PD(ZC.AK(o+"-tooltip-text-float"),{left:D+"px",top:X+"px",zIndex:zingchart.ZINDEX})}}},getPlacementInfo:function(e){var i,t=this,n={},a=t.A8.H6,l=t.A8.G3,o=t.A8.I,r=t.A8.F;if(t.A8.E["html-mode"]&&("horizontal"===t.B8||"vertical"===t.B8||"node:"===t.B8.substring(0,5))&&(t.A8.iX=-9999,t.A8.iY=-9999,t.A8.AM)){t.A8.paint();var s=ZC.A4("#"+t.H.K+"-tooltip-text-"+("canvas"===t.H.AC?"t":"float"));o=s.width()+t.A8.EP+t.A8.FK,r=s.height()+t.A8.FJ+t.A8.FR,null!==ZC._n_(t.A8.o.width)&&(o=ZC._i_(t.A8.o.width)),null!==ZC._n_(t.A8.o.height)&&(r=ZC._i_(t.A8.o.height))}if("horizontal"===t.B8)e.iX+e.I/2<e.C.iX+e.C.I/2?(n.x=e.iX+0*e.I+t.GW,n.y=e.iY+0*e.F/2-r/2,n.cp="left"):(n.x=e.iX-o-t.GW,n.y=e.iY+0*e.F/2-r/2,n.cp="right"),n.y<5&&(i=5-n.y,n.co=-ZC._i_(100*i/(r-l)),n.y=5),n.y+r>t.H.F-5&&(i=t.H.F-5-n.y-r,n.co=-ZC._i_(100*i/(r-l)),n.y=t.H.F-5-r);else if("vertical"===t.B8)e.iY+e.F/2<e.C.iY+e.C.F/2?(n.y=e.iY+0*e.F+t.GW,n.x=e.iX+0*e.I/2-o/2,n.cp="top"):(n.y=e.iY-r-t.GW,n.x=e.iX+0*e.I/2-o/2,n.cp="bottom"),n.x<5&&(i=5-n.x,n.co=-ZC._i_(100*i/(t.A8.I-a)),n.x=5),n.x+o>t.H.I-5&&(i=t.H.I-5-n.x-o,n.co=-ZC._i_(100*i/(o-a)),n.x=t.H.I-5-o);else if("node:"===t.B8.substring(0,5)&&e.getTooltipPosition){switch(n=e.getTooltipPosition(t.A8,t.B8.substring(5)),n.node=!0,n.side=t.B8.substring(5),n.side){case"left":n.x=n.x-o+t.A8.PZ,n.y=n.y-r/2+t.A8.MA;break;case"right":n.x=n.x+t.A8.PZ,n.y=n.y-r/2+t.A8.MA;break;case"top":n.x=n.x-o/2+t.A8.PZ,n.y=n.y-r+t.A8.MA;break;case"bottom":n.x=n.x-o/2+t.A8.PZ,n.y=n.y+t.A8.MA;break;case"center":n.x=n.x-o/2+t.A8.PZ,n.y=n.y-r/2+t.A8.MA}n.cp=t.A8.ES}if(n.node){var A=0;n.y+r>t.H.F-5&&("top"===n.side||"bottom"===n.side?(n.y=n.y-r-("bottom"===n.side?0:t.A8.G3)-t.A8.MA,n.cp="bottom"):n.y=t.H.F-r-5),n.y<5&&("top"===n.side||"bottom"===n.side?(n.y=n.y+("top"===n.side?0:t.A8.G3)+r-t.A8.MA,n.cp="top"):n.y=5),n.x+o>t.H.I-5&&("left"===n.side||"right"===n.side?(n.x=n.x-o-t.A8.PZ-5,n.cp="right"):(A=48*(o-t.H.I+n.x+t.A8.H6/2)/(t.A8.I/2),n.x=t.H.I-o-t.A8.PZ-5),n.co=A),n.x<5&&("left"===n.side||"right"===n.side?(n.x=n.x+t.A8.I-t.A8.PZ+5,n.cp="left"):(A=48*(n.x-t.A8.H6/2)/(t.A8.I/2),n.x=5),n.co=A)}return n}}),ZC.AA0=ZC.HS.C7({$i:function(e){this.b(e);var i=this;i.H=e,i.JA=!1,i.C=null,i.PK=null,i.U6=null,i.I2=0,i.LC=0,i.I1=0,i.LB=0,i.AB=null,i.AL=null,i.Z3=!1,i.AB7=0,i.A04=!1,i.M=null},parse:function(){var e=this;e.C&&(e.C.H9&&e.append(e.C.H9.o),e.b(),e.Z5("preserve-zoom","A04","b"),e.M=new ZC.DS(e),e.C.A.B7.load(e.M.o,"graph.zoom.label"),e.M.append(e.o.label),e.M.parse(),e.o.label&&!1!==e.o.label.visible&&(e.M.AM=!0))},unbind:function(){var e=this;zingchart.DEV.SKIPTRACKERS?ZC.A4(document.body).unbind("mousedown touchstart",e.QW):ZC.A4("#"+e.H.K+"-img").unbind("mousedown touchstart",e.QW),ZC.A4(".zc-node-area").die("mousedown touchstart",e.QW),ZC.A4(document.body).unbind("mousemove touchmove",e.U1),ZC.A4(document.body).unbind("mouseup touchend",e.VD)},bind:function(){var e=this,i=e.H.K;e.QW=function(t){if((!ZC.mobile||"pinch"!==zingchart.TOUCHZOOM)&&!(t.which>1||-1!==ZC.Q.SV(t.target).indexOf("zc-menu-item")||ZC.move)&&("mousedown"!==t.type||!ZC.TOUCHEVENTS)&&-1===t.target.id.indexOf("-legend-header-area")&&(ZC.mobile||t.preventDefault(),e.H.hideCM(),(ZC.mobile||!(t.which>1))&&("vml"!==e.H.AC||-1===t.target.className.indexOf("zc-node-area")))){t.shiftKey&&(e.Z3=!0);var n=ZC.Q.M7(t),a=ZC._tx_(e.H.K),l=ZC.A4("#"+i+"-top").offset(),o=(n[0]-l.left)/a[0],r=(n[1]-l.top)/a[1];e.PK=o,e.U6=r,e.Z3&&(e.AB7=o);for(var s,A=!1,C=0,c=e.H.AH.length;C<c;C++)s=e.H.AH[C].P,ZC.DT(o,s.iX-5,s.iX+s.I+5)&&ZC.DT(r,s.iY-5,s.iY+s.F+5)&&(e.C=e.H.AH[C]);if(null!==e.C){var u={id:e.H.K,graphid:e.C.K,ev:t},p=ZC.AP.BZ("beforezoom",e.H,u,!0);if(void 0!==p&&!p)return;if(e.C.H9&&null!==ZC._n_(e.C.H9.o.active)&&!ZC._b_(e.C.H9.o.active))return;s=e.C.P,e.C.AY.A6.length>0&&(e.AB=e.C.BN(e.C.AY.A6[0].BT("k")[0]),e.AL=e.C.BN(e.C.AY.A6[0].BT("v")[0])),null!==e.AB&&null!==e.AL&&e.C.AJ["enable-zooming"]&&(e.AB.GM||e.AL.GM)&&(e.I2=e.AB.CQ?r:o,e.I1=e.AL.CQ?o:r,A=!0,e.AB.GM?e.AB.CQ?e.I2=ZC._l_(e.I2,s.iY,s.iY+s.F):e.I2=ZC._l_(e.I2,s.iX,s.iX+s.I):e.I2=e.AB.CQ?s.iY:s.iX,e.AL.GM?e.AL.CQ?e.I1=ZC._l_(e.I1,s.iX,s.iX+s.I):e.I1=ZC._l_(e.I1,s.iY,s.iY+s.F):e.I1=e.AL.CQ?s.iX:s.iY)}return A&&(e.LC=e.I2,e.LB=e.I1,e.JA=!0,ZC.A4(document.body).bind("mousemove touchmove",e.U1),ZC.A4(document.body).bind("mouseup touchend",e.VD),e.Z3?document.body.style.cursor="pointer":(e.parse(),e.C.AJ["3d"]||ZC.Q.HX({id:i+"-zoom",p:ZC.AK(i+"-top"),top:-9,left:-9,wh:"1/1",position:"absolute",border:e.AT+"px solid "+e.BV,background:e.A0,opacity:e.C5}),e.M.AM&&(ZC.Q.HX({id:i+"-from",p:ZC.AK(i+"-top"),top:-9999,left:-9999,position:"absolute",paddingTop:e.M.FJ,paddingRight:e.M.FK,paddingBottom:e.M.FR,paddingLeft:e.M.EP,border:e.M.AT+"px solid "+e.M.BV,background:e.M.A0,color:e.M.C1,fontFamily:e.M.GD,fontWeight:e.M.sFontWeight,fontStyle:e.M.N1?"oblique":"normal",fontSize:e.M.DK,text:""}),ZC.Q.HX({id:i+"-to",p:ZC.AK(i+"-top"),top:-9999,left:-9999,position:"absolute",paddingTop:e.M.FJ,paddingRight:e.M.FK,paddingBottom:e.M.FR,paddingLeft:e.M.EP,border:e.M.AT+"px solid "+e.M.BV,background:e.M.A0,color:e.M.C1,fontFamily:e.M.GD,fontWeight:e.M.sFontWeight,fontStyle:e.M.N1?"oblique":"normal",fontSize:e.M.DK,text:""})),document.body.style.cursor="crosshair")),!!ZC.mobile&&void 0}},e.U1=function(t){if("mousemove"!==t.type||!ZC.TOUCHEVENTS){ZC.mobile||t.preventDefault(),ZC.move=!0,e.C||(ZC.move=!1,e.JA=!1,ZC.A4(document.body).unbind("mousemove touchmove",e.U1),ZC.A4(document.body).unbind("mouseup touchend",e.VD),document.body.style.cursor="auto",ZC.Q.EU([i+"-zoom",i+"-from",i+"-to"]));var n,a;if(e.JA){e.C.A.A8.hide();var l=ZC.Q.M7(t),o=ZC._tx_(e.H.K),r=ZC.A4("#"+i+"-top").offset(),s=(l[0]-r.left)/o[0],A=(l[1]-r.top)/o[1];if(t.ctrlKey){var C=ZC.CY(s-e.PK,A-e.U6);s=e.PK+C,A=e.U6+C}if(e.LC=e.AB.CQ?A:s,e.LB=e.AL.CQ?s:A,!e.Z3){var c=e.C.P;n=e.AB.AU?e.AB.BW:e.AB.A5,a=e.AB.AU?e.AB.A5:e.AB.BW,e.AB.GM?e.AB.CQ?(e.AB.Y5&&(e.I2=e.AB.iY+n+e.AB.A9*ZC._i_((e.I2-e.AB.iY-n)/e.AB.A9),e.LC=e.AB.iY+n+e.AB.A9*ZC._i_((e.LC-e.AB.iY-n)/e.AB.A9)),e.I2=ZC._l_(e.I2,c.iY+a,c.iY+c.F-n),e.LC=ZC._l_(e.LC,c.iY+a,c.iY+c.F-n)):(e.AB.Y5&&(e.I2=e.AB.iX+n+e.AB.A9*ZC._i_((e.I2-e.AB.iX-n)/e.AB.A9),e.LC=e.AB.iX+n+e.AB.A9*ZC._i_((e.LC-e.AB.iX-n)/e.AB.A9)),e.I2=ZC._l_(e.I2,c.iX+n,c.iX+c.I-a),e.LC=ZC._l_(e.LC,c.iX+n,c.iX+c.I-a)):(e.I2=e.AB.CQ?c.iY+a:c.iX+n,e.LC=e.AB.CQ?c.iY+c.F-n:c.iX+c.I-a),n=e.AL.AU?e.AL.A5:e.AL.BW,a=e.AL.AU?e.AL.BW:e.AL.A5,e.AL.GM?e.AL.CQ?(e.AL.Y5&&(e.I1=e.AL.iX+n+e.AL.A9*ZC._i_((e.I1-e.AL.iX-n)/e.AL.A9),e.LB=e.AL.iX+n+e.AL.A9*ZC._i_((e.LB-e.AL.iX-n)/e.AL.A9)),e.I1=ZC._l_(e.I1,c.iX+a,c.iX+c.I-n),e.LB=ZC._l_(e.LB,c.iX+a,c.iX+c.I-n)):(e.AL.Y5&&(e.I1=e.AL.iY+n+e.AL.A9*ZC._i_((e.I1-e.AL.iY-n)/e.AL.A9),e.LB=e.AL.iY+n+e.AL.A9*ZC._i_((e.LB-e.AL.iY-n)/e.AL.A9)),e.I1=ZC._l_(e.I1,c.iY+n,c.iY+c.F-a),e.LB=ZC._l_(e.LB,c.iY+n,c.iY+c.F-a)):(e.I1=e.AL.CQ?c.iX+a:c.iY+n,e.LB=e.AL.CQ?c.iX+c.I-n:c.iY+c.F-a);var u,p,Z,h,d=ZC.A4.browser.msie?0:2*e.AT;e.C.AJ["3d"]&&(d=0);var f=ZC.AK(i+"-zoom");if(e.AB.CQ&&e.AL.CQ?(u=ZC._a_(e.LB-e.I1-d),p=ZC._a_(e.LC-e.I2-d),Z=ZC.CY(e.I1,e.LB),h=ZC.CY(e.I2,e.LC)):(u=ZC._a_(e.LC-e.I2-d),p=ZC._a_(e.LB-e.I1-d),Z=ZC.CY(e.I2,e.LC),h=ZC.CY(e.I1,e.LB)),e.C.AJ["3d"]){e.C.NW();var _=ZC.AK(e.H.K+"-guide-c");_&&(ZC.Q.IQ(_,e.H.AC,e.C.iX,e.C.iY,e.C.I,e.C.F),ZC.A4(".zc-guide-label").remove()),(f=new ZC.DW(e)).Z=_,f.A0=f.AE=e.A0,f.BV=e.BV,f.AT=e.AT,f.C5=e.C5,f.D=[[Z,h],[Z+u,h],[Z+u,h+p],[Z,h+p],[Z,h]];for(var g=0;g<f.D.length;g++){var v=new ZC.CF(e.C,f.D[g][0]-ZC.AN.E3,f.D[g][1]-ZC.AN.E2,0);f.D[g][0]=v.EB[0],f.D[g][1]=v.EB[1]}f.parse(),f.paint()}else ZC.Q.PD(f,{width:u+"px",height:p+"px",left:Z+"px",top:h+"px"});if(e.M.AM){var b=ZC.CY(e.I2,e.LC),m=ZC.BQ(e.I2,e.LC),B=ZC.CY(e.I1,e.LB),E=ZC.BQ(e.I1,e.LB),K=ZC.AK(i+"-from"),F=ZC.AK(i+"-to"),D={decimals:null===ZC._n_(e.AL.DU)?1:e.AL.DU};K.innerHTML=e.AB.FO(e.AB.O9(b))+"/"+e.AL.FO(-1,e.AL.NA(B),D),F.innerHTML=e.AB.FO(e.AB.O9(m))+"/"+e.AL.FO(-1,e.AL.NA(E),D),ZC.Q.PD(K,{left:Z-e.AT-ZC._i_(ZC.A4(K).width())+"px",top:h-e.AT-ZC._i_(ZC.A4(K).height())+"px"}),ZC.Q.PD(F,{left:Z+e.AT+e.M.AT+u+"px",top:h+e.AT+e.M.AT+p+"px"})}}}return!1}},e.VD=function(t){if(("mouseup"!==t.type||!ZC.TOUCHEVENTS)&&e.C){if(ZC.move=!1,e.JA=!1,document.body.style.cursor="auto",ZC.Q.EU([i+"-zoom",i+"-from",i+"-to"]),e.C.AJ["3d"]){e.C.NW();var n=ZC.AK(e.H.K+"-guide-c");n&&(ZC.Q.IQ(n,e.H.AC,e.C.iX,e.C.iY,e.C.I,e.C.F),ZC.A4(".zc-guide-label").remove())}if(ZC.A4(document.body).unbind("mousemove touchmove",e.U1),ZC.A4(document.body).unbind("mouseup touchend",e.VD),e.Z3)e.Z3=!1;else{var a,l,o,r,s,A,C,c,u,p={graphid:e.C.K,ev:t};if(ZC._a_(e.I2-e.LC)>10&&ZC._a_(e.I1-e.LB)>10){var Z,h,d=!1,f=!1;for(r=0,s=(o=e.C.BT("k")).length;r<s;r++)(Z=o[r])&&o[r].GM&&(A=1===Z.L?"":"-"+Z.L,a=Z.O9(ZC.CY(e.I2,e.LC)),l=Z.O9(ZC.BQ(e.I2,e.LC)),ZC._a_(l-a)>=1&&(p["zoomx"+A]=!0,p["xmin"+A]=ZC.CY(a,l),p["xmax"+A]=ZC.BQ(a,l),"log"===Z.CA&&(p["kmin"+A]=Z.X[ZC._i_(ZC.H0(p["xmin"+A],Z.EH))],p["kmax"+A]=Z.X[ZC._i_(ZC.H0(p["xmax"+A],Z.EH))],delete p["xmin"+A],delete p["xmax"+A]),d=!0));for(r=0,s=(o=e.C.BT("v")).length;r<s;r++)(h=o[r])&&o[r].GM&&(A=1===h.L?"":"-"+h.L,C=h.NA(ZC.BQ(e.I1,e.LB)),c=h.NA(ZC.CY(e.I1,e.LB)),u=(h.GY-h.FU)/Math.pow(10,10),ZC._a_(c-C)>=u&&(p["zoomy"+A]=!0,p["ymin"+A]=ZC.CY(C,c),p["ymax"+A]=ZC.BQ(C,c),f=!0));d||f?(zingchart.SKIP.EVENT=!0,e.C.A.PW(p)):zingchart.SKIP.EVENT=!0}else(ZC._a_(e.I2-e.LC)>5||ZC._a_(e.I1-e.LB)>5)&&(zingchart.SKIP.EVENT=!0);e.C=null}}},ZC.mobile&&"normal"!==zingchart.TOUCHZOOM||(zingchart.DEV.SKIPTRACKERS?ZC.A4(document.body).bind("mousedown touchstart",e.QW):ZC.A4("#"+i+"-img").bind("mousedown touchstart",e.QW),ZC.A4(".zc-node-area").live("mousedown touchstart",e.QW))}}),ZC.A8E=ZC.D0.C7({$i:function(e){this.b(e);var i=this;i.HY=!0,i.ABR=!1,i.C=e,i.H=e.A,i.JA=!1,i.A5E=!1,i.H3=null,i.AQ=null,i.Z=null,i.ID=0,i.H5=0,i.P7=0,i.A05=0,i.LG=!1,i.NG=null,i.bBind=!1,i.BX=null,i.A12=!1},parse:function(){function e(e){return[n+".handler",n+".handler-"+e,n+".handle",n+".handle-"+e]}var i,t=this;t.K=t.C.K+"-preview",t.assign_a([["live","ABR","b"],["async","LG","b"],["min-distance","P7","i"],["min-distance-x","P7","i"],["min-distance-y","P7","i"],["visible","AM","b"]]);var n="("+t.C.AF+").preview",a=t.H.B7;t.AQ=new ZC.HS(t.C),t.AQ.K=t.C.K+"-preview-viewport",a.load(t.AQ.o,[n]),t.AQ.append(t.o),t.AQ.parse(),t.o.label&&(t.BX=[]),t.o.handle&&t.o.handle.label&&(t.J3=new ZC.DS(t.C),t.J3.append(t.o.handle.label),t.J3.append({text:" "}),t.J3.parse(),t.J3.AM&&(t.A12=!0)),t.OT=new ZC.D0(t.C),a.load(t.OT.o,[n+".mask"]),null!==ZC._n_(i=t.o.mask)&&t.OT.append(i),t.OT.parse(),t.UI=new ZC.D0(t.C),a.load(t.UI.o,[n+".active"]),null!==ZC._n_(i=t.o.active)&&t.UI.append(i),t.UI.parse(),t.IL=new ZC.HS(t.AQ),t.HB=new ZC.HS(t.AQ),t.J6=new ZC.HS(t.AQ),t.H1=new ZC.HS(t.AQ),a.load(t.IL.o,e("left")),a.load(t.HB.o,e("right")),a.load(t.J6.o,e("top")),a.load(t.H1.o,e("bottom"));for(var l=["handle","handler"],o=0;o<l.length;o++)null!==ZC._n_(i=t.o[l[o]])&&(t.IL.append(i),t.HB.append(i),t.J6.append(i),t.H1.append(i)),null!==ZC._n_(i=t.o[l[o]+"-left"])&&t.IL.append(i),null!==ZC._n_(i=t.o[l[o]+"-right"])&&t.HB.append(i),null!==ZC._n_(i=t.o[l[o]+"-top"])&&t.J6.append(i),null!==ZC._n_(i=t.o[l[o]+"-bottom"])&&t.H1.append(i);t.IL.parse(),t.HB.parse(),t.J6.parse(),t.H1.parse()},setScalesInfo:function(){var e=this;e.NG={};for(var i,t=e.C.BM,n=0,a=t.length;n<a;n++)(i=t[n])&&("k"===i.AF?e.NG[i.BC]={minindex:i.DD,maxindex:i.E1,minvalue:i.X[i.DD],maxvalue:i.X[i.E1],stepsize:i.A9,values:[].concat(i.X)}:e.NG[i.BC]={minvalue:i.FU,maxvalue:i.GY})},toggleMasks:function(e,i){for(var t=this,n=["x-left","x-right","y-top","y-bottom"],a=0;a<n.length;a++)if(e){var l=new ZC.HS(t.C);switch(l.K=t.C.K+"-preview-mask-"+n[a],l.A0=l.AE=t.OT.A0,l.C5=t.OT.C5,l.Z=l.C6=i||ZC.AK(t.C.K+"-preview-c"),n[a]){case"x-left":l.iX=t.AQ.iX,l.iY=t.AQ.iY,l.I=ZC.A4(t.A3I).css("width"),l.F=t.AQ.F;break;case"x-right":l.iX=t.AQ.iX+t.AQ.I-ZC.A4(t.XB).css("width"),l.iY=t.AQ.iY,l.I=ZC.A4(t.XB).css("width"),l.F=t.AQ.F;break;case"y-top":l.iX=t.AQ.iX,l.iY=t.AQ.iY,l.I=t.AQ.I,l.F=ZC.A4(t.A4M).css("height");break;case"y-bottom":l.iX=t.AQ.iX,l.iY=t.AQ.iY+t.AQ.F-ZC.A4(t.VQ).css("height"),l.I=t.AQ.I,l.F=ZC.A4(t.VQ).css("height")}l.paint()}else ZC.Q.EU(t.C.K+"-preview-mask-"+n[a]+"-path")},paint:function(){var e,i=this;i.PO=ZC.mobile?40:ZC.ie67?0:20;var t,n,a,l,o,r,s,A;if(i.AM){i.Z=i.AQ.Z=i.AQ.C6=ZC.AK(i.C.K+"-preview-c"),i.AQ.paint();var C=ZC.AK(i.H.K+"-top"),c=i.C.BT("k")[0],u=i.C.BT("v")[0];if(null===i.NG&&i.setScalesInfo(),"svg"!==i.H.AC?(e=ZC.AK(i.C.K+"-preview"))&&ZC.Q.PD(e,{clip:i.C.M3(0,"canvas",i.AQ)}):(e=ZC.AK(i.C.K+"-clip-preview-shape"))&&ZC.Q.G2(e,{points:i.C.M3(0,"svg",i.AQ)}),0===i.P7&&c&&(i.P7=ZC.BQ(1,ZC._i_(2*i.AQ.I/c.X.length)),"log"===c.CA&&(i.P7=ZC.BQ(1,ZC._i_(i.P7/c.EH)))),i.BX){var p=ZC.ie67?ZC.AK(i.H.K):null;ZC.A4("."+i.C.K+"-preview-item",p).remove();for(var Z=[],h=0;h<i.BX.length;h++){var d=(i.BX[h].x-c.iX)/c.I,f=ZC._i_(i.AQ.iX+d*i.AQ.I),_=new ZC.DS(i.C);if(_.append({"line-width":1,"line-color":"#999",text:i.BX[h].text,x:f,y:i.AQ.iY}),_.append(i.o.label),_.parse(),_.Z=i.Z,_.IJ=i.H.usc()?ZC.AK(i.H.K+"-main"):ZC.AK(i.H.K+"-text"),_.GJ=i.K+"-item "+i.C.K+"-preview-item zc-preview-item",_.K=i.K+"-item-"+h,_.iX>=i.AQ.iX&&_.iX+_.I<=i.AQ.iX+i.AQ.I){for(var g=!1,v=0;v<Z.length;v++)_.iX>Z[v].x&&_.iX<Z[v].x+Z[v].width&&(g=!0);!g&&_.AM&&(_.paint(),Z.push({x:_.iX,width:_.I}));var b=[[f,i.AQ.iY],[f,i.AQ.iY+i.AQ.F]];a=ZC.Q.E9(i.Z,i.H.AC),ZC.CS.paint(a,_,b)}}}if((c.GM||u.GM)&&(i.KA=ZC.Q.HX({cls:"zc-abs zc-preview-handler zc-preview-handler-middle "+i.C.K+"-preview-handler",id:i.K+"-handler-middle",wh:i.AQ.I+"/"+i.AQ.F,tl:i.AQ.iY+"/"+i.AQ.iX,background:i.UI.A0,opacity:i.UI.C5,cursor:"pointer",p:C})),!c.CQ&&c.GM||u.CQ&&u.GM){i.A3I=ZC.Q.HX({cls:"zc-abs zc-preview-mask zc-preview-mask-left "+i.C.K+"-preview-mask",id:i.K+"-mask-x-left",wh:"0/"+i.AQ.F,tl:i.AQ.iY+"/"+i.AQ.iX,background:i.OT.A0,opacity:i.OT.C5,p:C}),i.XB=ZC.Q.HX({cls:"zc-abs zc-preview-mask zc-preview-mask-right "+i.C.K+"-preview-mask",id:i.K+"-mask-x-right",wh:"0/"+i.AQ.F,tl:i.AQ.iY+"/"+(i.AQ.iX+i.AQ.I),background:i.OT.A0,opacity:i.OT.C5,p:C}),t=i.IL.I,n=i.IL.F,i.KG=ZC.Q.HX({cls:"zc-abs zc-preview-handler zc-preview-handler-left "+i.C.K+"-preview-handler",id:i.K+"-handler-x-left",wh:ZC.quirks?null:t+"/"+n,tl:ZC._i_(i.AQ.iY+(i.AQ.F-n)/4-i.PO/2)+"/"+ZC._i_(i.AQ.iX-t/2-i.PO/2),lineHeight:"10%",cursor:"pointer",p:C,border:i.PO/2+"px solid transparent"});var m=i.KG;if("svg"===i.H.AC&&!ZC.AK(i.K+"-handler-x-left-svg")){var B=ZC.Q.F4("svg","http://www.w3.org/2000/svg");ZC.Q.G2(B,{version:"1.1",id:i.K+"-handler-x-left-svg",width:t,height:n}),i.KG.appendChild(B),m=B}if(!ZC.AK(i.K+"-handler-x-left-c")){var E=ZC.Q.HE({cls:"zc-no-print",id:i.K+"-handler-x-left-c",wh:t+"/"+n,p:m},i.H.AC);i.IL.Z=E,i.IL.K=i.K+"-handler-x-left-c-preview",i.IL.iX=0,i.IL.iY=0,i.IL.paint(),a=ZC.Q.E9(i.H.usc()?i.H.K+"-main-c":i.K+"-handler-x-left-c",i.H.AC);var K=i.IL.B0,F=i.IL.AT;A=[[s=ZC._i_(t/2-K),o=F+3],[s,l=n-F-2],null,[r=ZC._i_(t/2+K),o],[r,l]],i.IL.CZ=!0,ZC.CS.paint(a,i.IL,A)}t=i.HB.I,n=i.HB.F,i.JT=ZC.Q.HX({cls:"zc-abs zc-preview-handler zc-preview-handler-right "+i.C.K+"-preview-handler",id:i.K+"-handler-x-right",wh:ZC.quirks?null:t+"/"+n,tl:ZC._i_(i.AQ.iY+i.AQ.F-i.HB.F-(i.AQ.F-n)/4-i.PO/2)+"/"+ZC._i_(i.AQ.iX+i.AQ.I-i.HB.I/2-i.PO/2),lineHeight:"10%",cursor:"pointer",p:C,border:i.PO/2+"px solid transparent"});var D=i.JT;if("svg"===i.H.AC&&!ZC.AK(i.K+"-handler-x-right-svg")){var X=ZC.Q.F4("svg","http://www.w3.org/2000/svg");ZC.Q.G2(X,{version:"1.1",id:i.K+"-handler-x-right-svg",width:t,height:n}),i.JT.appendChild(X),D=X}if(!ZC.AK(i.K+"-handler-x-right-c")){var I=ZC.Q.HE({cls:"zc-no-print",id:i.K+"-handler-x-right-c",wh:t+"/"+n,p:D},i.H.AC);i.HB.Z=I,i.HB.K=i.K+"-handler-x-right-c-preview",i.HB.iX=0,i.HB.iY=0,i.HB.paint(),a=ZC.Q.E9(i.H.usc()?i.H.K+"-main-c":i.K+"-handler-x-right-c",i.H.AC);var x=i.HB.B0,y=i.HB.AT;A=[[s=ZC._i_(t/2-x),o=y+3],[s,l=n-y-2],null,[r=ZC._i_(t/2+x),o],[r,l]],i.HB.CZ=!0,ZC.CS.paint(a,i.HB,A)}}if(!u.CQ&&u.GM||c.CQ&&c.GM){i.A4M=ZC.Q.HX({cls:"zc-abs zc-preview-mask zc-preview-mask-top "+i.C.K+"-preview-mask",id:i.K+"-mask-x-top",wh:i.AQ.I+"/0",tl:i.AQ.iY+"/"+i.AQ.iX,background:i.OT.A0,opacity:i.OT.C5,p:C}),i.VQ=ZC.Q.HX({cls:"zc-abs zc-preview-mask zc-preview-mask-bottom "+i.C.K+"-preview-mask",id:i.K+"-mask-x-bottom",wh:i.AQ.I+"/0",tl:i.AQ.iY+i.AQ.F+"/"+i.AQ.iX,background:i.OT.A0,opacity:i.OT.C5,p:C}),t=i.J6.I,n=i.J6.F,i.L0=ZC.Q.HX({cls:"zc-abs zc-preview-handler zc-preview-handler-top "+i.C.K+"-preview-handler",id:i.K+"-handler-y-top",wh:ZC.quirks?null:t+"/"+n,tl:ZC._i_(i.AQ.iY-n/2-i.PO/2)+"/"+ZC._i_(i.AQ.iX+(i.AQ.I-t)/4-i.PO/2),lineHeight:"10%",cursor:"pointer",p:C,border:i.PO/2+"px solid transparent"});var w=i.L0;if("svg"===i.H.AC&&!ZC.AK(i.K+"-handler-y-top-svg")){var Y=ZC.Q.F4("svg","http://www.w3.org/2000/svg");ZC.Q.G2(Y,{version:"1.1",id:i.K+"-handler-y-top-svg",width:t,height:n}),i.L0.appendChild(Y),w=Y}if(!ZC.AK(i.K+"-handler-y-top-c")){var M=ZC.Q.HE({cls:"zc-no-print",id:i.K+"-handler-y-top-c",wh:t+"/"+n,p:w},i.H.AC);i.J6.Z=M,i.J6.K=i.K+"-handler-y-top-c-preview",i.J6.iX=0,i.J6.iY=0,i.J6.paint(),a=ZC.Q.E9(i.H.usc()?i.H.K+"-main-c":i.K+"-handler-y-top-c",i.H.AC);var H=i.J6.B0,L=i.J6.AT;l=ZC._i_(n/2-H),A=[[s=t-L-2,o=ZC._i_(n/2+H)],[r=L+3,o],null,[s,l],[r,l]],i.J6.CZ=!0,ZC.CS.paint(a,i.J6,A)}t=i.H1.I,n=i.H1.F,i.JC=ZC.Q.HX({cls:"zc-abs zc-preview-handler zc-preview-handler-bottom "+i.C.K+"-preview-handler",id:i.K+"-handler-y-bottom",wh:ZC.quirks?null:t+"/"+n,tl:ZC._i_(i.AQ.iY+i.AQ.F-i.H1.F/2-i.PO/2)+"/"+ZC._i_(i.AQ.iX+i.AQ.I-i.H1.I-(i.AQ.I-t)/4-i.PO/2),lineHeight:"10%",cursor:"pointer",p:C,border:i.PO/2+"px solid transparent"});var P=i.JC;if("svg"===i.H.AC&&!ZC.AK(i.K+"-handler-y-bottom-svg")){var N=ZC.Q.F4("svg","http://www.w3.org/2000/svg");ZC.Q.G2(N,{version:"1.1",id:i.K+"-handler-y-bottom-svg",width:t,height:n}),i.JC.appendChild(N),P=N}if(!ZC.AK(i.K+"-handler-y-bottom-c")){var O=ZC.Q.HE({cls:"zc-no-print",id:i.K+"-handler-y-bottom-c",wh:t+"/"+n,p:P},i.H.AC);i.H1.Z=O,i.H1.K=i.K+"-handler-y-bottom-c-preview",i.H1.iX=0,i.H1.iY=0,i.H1.paint(),a=ZC.Q.E9(i.H.usc()?i.H.K+"-main-c":i.K+"-handler-y-bottom-c",i.H.AC);var k=i.H1.B0,Q=i.H1.AT;l=ZC._i_(n/2-k),A=[[s=t-Q-2,o=ZC._i_(n/2+k)],[r=Q+3,o],null,[s,l],[r,l]],i.H1.CZ=!0,ZC.CS.paint(a,i.H1,A)}}if(i.ID=0,i.H5=i.AQ.I,i.KZ=0,i.HC=i.AQ.F,c.GM&&i.A12){var R=c.V,z=c.A1;c.FD&&"date"===c.FD.o.type&&(R=c.FO(c.V,null,null).replace(/<br>/g," "),z=c.FO(c.A1,null,null).replace(/<br>/g," ")),i.R1=ZC.Q.HX({cls:"zc-abs zc-preview-label "+i.C.K+"-preview-label",id:i.K+"-min-label",background:i.J3.A0,opacity:i.J3.C5,fontFamily:i.J3.GD,fontSize:i.J3.DK,fontWeight:i.J3.sFontWeight,color:i.J3.C1,padding:0,html:R+"",p:C}),i.R1.style.left=i.AQ.iX+"px",i.R1.style.top=i.AQ.iY+i.AQ.F+"px",i.R0=ZC.Q.HX({cls:"zc-abs zc-preview-label "+i.C.K+"-preview-label",id:i.K+"-max-label",background:i.J3.A0,opacity:i.J3.C5,fontFamily:i.J3.GD,fontSize:i.J3.DK,fontWeight:i.J3.sFontWeight,color:i.J3.C1,padding:0,html:z+"",p:C}),i.R0.style.left=i.AQ.iX+i.AQ.I+"px",i.R0.style.top=i.AQ.iY+i.AQ.F+"px",i.ID>ZC.A4(i.R1).width()?i.R1.style.left=i.AQ.iX+i.ID-ZC.A4(i.R1).width()+"px":i.R1.style.left=i.AQ.iX+"px",i.AQ.I-i.H5>ZC.A4(i.R0).width()?i.R0.style.left=i.AQ.iX+i.H5+"px":i.R0.style.left=i.AQ.iX+i.H5-ZC.A4(i.R0).width()+"px"}i.bind(),i.BX&&(i.BX=[])}},reset:function(){var e=this,i=e.C.BT("k")[0],t=e.C.BT("v",!0)[0];t||(t=e.C.BT("v")[0]),i&&t&&e.update(i.DD,i.E1,t.FU,t.GY,!0)},update:function(e,i,t,n,a){null===ZC._n_(a)&&(a=!1);var l=this;if(a||(e>=i&&(e=i-1),t>=n&&(t=n-1)),l.AM){var o=l.C.BT("k")[0],r=l.C.BT("v",!0)[0];r||(r=l.C.BT("v")[0]);var s=!0;if(a){if(o&&r){if(o.CQ&&r.CQ){var A=e,C=i;e=t,i=n,t=A,n=C}o.CQ?(null===ZC._n_(n)&&(n=o.A1),null===ZC._n_(t)&&(t=o.V)):(null===ZC._n_(e)&&(e=o.V),null===ZC._n_(i)&&(i=o.A1)),r.CQ?(null===ZC._n_(e)&&(e=r.aAutoFit[0]?r.FU:r.B4),null===ZC._n_(i)&&(i=r.aAutoFit[1]?r.GY:r.BL)):(null===ZC._n_(t)&&(t=r.aAutoFit[0]?r.FU:r.B4),null===ZC._n_(n)&&(n=r.aAutoFit[1]?r.GY:r.BL)),o.CQ||r.CQ?o.AU?l.update((e-r.FU)*l.AQ.I/(r.GY-r.FU),(i-r.FU)*l.AQ.I/(r.GY-r.FU),(t-o.DD)*l.AQ.F/(o.E1-o.DD),(n-o.DD)*l.AQ.F/(o.E1-o.DD)):l.update((e-r.FU)*l.AQ.I/(r.GY-r.FU),(i-r.FU)*l.AQ.I/(r.GY-r.FU),l.AQ.F-(n-o.DD)*l.AQ.F/(o.E1-o.DD),l.AQ.F-(t-o.DD)*l.AQ.F/(o.E1-o.DD)):o.AU?l.update(l.AQ.I-(i-o.DD)*l.AQ.I/(o.E1-o.DD),l.AQ.I-(e-o.DD)*l.AQ.I/(o.E1-o.DD),l.AQ.F-(n-r.FU)*l.AQ.F/(r.GY-r.FU),l.AQ.F-(t-r.FU)*l.AQ.F/(r.GY-r.FU)):l.update((e-o.DD)*l.AQ.I/(o.E1-o.DD),(i-o.DD)*l.AQ.I/(o.E1-o.DD),l.AQ.F-(n-r.FU)*l.AQ.F/(r.GY-r.FU),l.AQ.F-(t-r.FU)*l.AQ.F/(r.GY-r.FU))}}else if(i-e<l.P7&&(l.H3===l.JT?i=e+l.P7:l.H3===l.KG&&(e=i-l.P7)),n-t<l.A05&&(l.H3===l.JC?n=t+l.A05:l.H3===l.L0&&(t=n-l.A05)),e>i&&(l.H3===l.KG?l.update(i-1,i,t,n):l.H3===l.JT&&l.update(e,e+1,t,n),s=!1),e<0&&(l.H3===l.KG?l.update(0,i,t,n):l.H3===l.KA&&l.update(0,ZC.A4(l.KA).width(),t,n),s=!1),i>l.AQ.I&&(l.H3===l.JT?l.update(e,l.AQ.I,t,n):l.H3===l.KA&&l.update(l.AQ.I-ZC.A4(l.KA).width(),l.AQ.I,t,n),s=!1),t>n&&(l.H3===l.L0?l.update(e,i,t-1,n):l.H3===l.JC&&l.update(e,i,t,n+1),s=!1),t<0&&(l.H3===l.L0?l.update(e,i,0,n):l.H3===l.KA&&l.update(e,i,0,ZC.A4(l.KA).height()),s=!1),n>l.AQ.F&&(l.H3===l.JC?l.update(e,i,t,l.AQ.F):l.H3===l.KA&&l.update(e,i,l.AQ.F-ZC.A4(l.KA).height(),l.AQ.F),s=!1),s){if(o&&o.Y5){var c=l.AQ.I/(o.X.length-(o.DL?0:1));e=c*Math.round(e/c),i=ZC.CY(c*Math.round(i/c),l.AQ.I)}l.ID=e,l.H5=i,l.KZ=t,l.HC=n,(!o.CQ&&o.GM||r.CQ&&r.GM)&&(l.KG.style.left=ZC._i_(l.AQ.iX+l.ID-l.IL.I/2-l.PO/2)+"px",l.A3I.style.width=ZC._i_(l.ID)+"px",l.JT.style.left=ZC._i_(l.AQ.iX+l.H5-l.HB.I/2-l.PO/2)+"px",l.XB.style.left=ZC._i_(l.AQ.iX+l.H5)+"px",l.XB.style.width=ZC._i_(l.AQ.I-l.H5)+"px"),(!r.CQ&&r.GM||o.CQ&&o.GM)&&(l.L0.style.top=ZC._i_(l.AQ.iY+l.KZ-l.J6.F/2-l.PO/2)+"px",l.A4M.style.height=ZC._i_(l.KZ)+"px",l.JC.style.top=ZC._i_(l.AQ.iY+l.HC-l.H1.F/2-l.PO/2)+"px",l.VQ.style.top=ZC._i_(l.AQ.iY+l.HC)+"px",l.VQ.style.height=ZC._i_(l.AQ.F-l.HC)+"px"),(o.GM||r.GM)&&(l.KA.style.left=ZC._i_(l.AQ.iX+l.ID)+"px",l.KA.style.width=ZC._i_(l.H5-l.ID)+"px",l.KA.style.top=ZC._i_(l.AQ.iY+l.KZ)+"px",l.KA.style.height=ZC._i_(l.HC-l.KZ)+"px"),l.ABR&&l.JA&&(l.C.O7=!0,l.zoom(!0)),o.GM&&l.A12&&(o.FD&&"date"===o.FD.o.type?(l.R1.innerHTML=o.FO(o.V,null,null).replace(/<br>/g," "),l.R0.innerHTML=o.FO(o.A1,null,null).replace(/<br>/g," ")):(l.R1.innerHTML=o.V,l.R0.innerHTML=o.A1),l.ID>ZC.A4(l.R1).width()?l.R1.style.left=l.AQ.iX+l.ID-ZC.A4(l.R1).width()+"px":l.R1.style.left=l.AQ.iX+"px",l.AQ.I-l.H5>ZC.A4(l.R0).width()?l.R0.style.left=l.AQ.iX+l.H5+"px":l.R0.style.left=l.AQ.iX+l.H5-ZC.A4(l.R0).width()+"px")}}},zoom:function(e){for(var i,t=this,n={graphid:t.C.K,preview:1,async:t.LG,previewscale:!0,zooming:e},a=t.C.BM,l=t.C.BT("k")[0],o=t.C.BT("v")[0],r=0,s=a.length;r<s;r++)if(i=a[r]){var A=1===i.L?"":"-"+i.L;if("k"===i.AF){if(l.GM){var C=t.LG?t.NG[i.BC].minindex:i.DD,c=t.LG?t.NG[i.BC].maxindex:i.E1;if(n["zoomx"+A]=!0,l.CQ?(n["xmin"+A]=ZC._i_((t.AQ.F-t.HC)/t.AQ.F*(c-C)),n["xmax"+A]=ZC._i_((t.AQ.F-t.KZ)/t.AQ.F*(c-C))):(n["xmin"+A]=ZC._i_(t.ID/t.AQ.I*(c-C)),n["xmax"+A]=ZC._i_(t.H5/t.AQ.I*(c-C))),l.AU){n["xmin"+A]=c-n["xmin"+A],n["xmax"+A]=c-n["xmax"+A];var u=n["xmin"+A];n["xmin"+A]=n["xmax"+A],n["xmax"+A]=u}}}else if(o.GM){var p=t.LG?t.NG[i.BC].minvalue:i.FU,Z=t.LG?t.NG[i.BC].maxvalue:i.GY;n["zoomy"+A]=!0,o.CQ?(n["ymin"+A]=p+t.ID/t.AQ.I*(Z-p),n["ymax"+A]=p+t.H5/t.AQ.I*(Z-p)):(n["ymin"+A]=p+(t.AQ.F-t.HC)/t.AQ.F*(Z-p),n["ymax"+A]=p+(t.AQ.F-t.KZ)/t.AQ.F*(Z-p))}}t.H.PW(n)},unbind:function(){var e=this;ZC.A4("."+e.C.K+"-preview-handler").unbind("mousedown touchstart",e.YF),ZC.A4("."+e.C.K+"-preview-mask").unbind("click",e.AEJ),ZC.A4(document.body).unbind("mousemove touchmove",e.UR),ZC.A4(document.body).unbind("mouseup touchend",e.VT),e.bBind=!1},bind:function(){var e=this;if(!e.bBind){var i=e.H.K,t=0,n=0;e.AEJ=function(t){if(t.preventDefault(),e.H.H9){e.H.H9.C=e.C,e.H.H9.parse();var n=ZC.Q.M7(t),a=ZC.A4("#"+i+"-top").offset();if(-1!==t.target.id.indexOf("preview-mask-x-left")||-1!==t.target.id.indexOf("preview-mask-x-right")){var l=n[0]-a.left-e.AQ.iX,o=e.H5-e.ID;l-o/2<0?(e.ID=0,e.H5=o):l+o/2>e.AQ.I?(e.ID=e.AQ.I-o,e.H5=e.AQ.I):(e.ID=ZC._i_(l-o/2),e.H5=ZC._i_(l+o/2))}else{var r=n[1]-a.top-e.AQ.iY,s=e.HC-e.KZ;r-s/2<0?(e.KZ=0,e.HC=s):r+s/2>e.AQ.F?(e.KZ=e.AQ.F-s,e.HC=e.AQ.F):(e.KZ=ZC._i_(r-s/2),e.HC=ZC._i_(r+s/2))}return e.JA=!1,e.C.O7=!1,e.update(e.ID,e.H5,e.KZ,e.HC),e.zoom(!1),!1}},e.YF=function(a){if(a.preventDefault(),e.H.H9){e.H.H9.C=e.C,e.H.H9.parse();for(var l=a.target;l&&"BODY"!==l.tagName.toUpperCase()&&-1===ZC.Q.SV(l).indexOf("zc-preview-handler");)l=l.parentNode;if((ZC.mobile||!(a.which>1))&&l){var o=ZC.Q.M7(a),r=ZC._tx_(e.H.K),s=ZC.A4("#"+i+"-top").offset(),A=(o[0]-s.left)/r[0]-e.AQ.iX,C=(o[1]-s.top)/r[1]-e.AQ.iY;return-1!==l.id.indexOf("handler-x-left")?e.H3=e.KG:-1!==l.id.indexOf("handler-x-right")?e.H3=e.JT:-1!==l.id.indexOf("handler-y-top")?e.H3=e.L0:-1!==l.id.indexOf("handler-y-bottom")?e.H3=e.JC:-1!==l.id.indexOf("handler-middle")&&(e.H3=e.KA,t=A-e.ID,n=C-e.KZ),ZC.A4(document.body).bind("mousemove touchmove",e.UR),ZC.A4(document.body).bind("mouseup touchend",e.VT),e.JA=!0,e.A5E=!1,!1}}},e.UR=function(a){if(e.JA){e.A5E=!0,zingchart.exec(e.H.K,"setmode",{mode:"static,fast"});var l=ZC._tx_(e.H.K),o=ZC.Q.M7(a),r=ZC.A4("#"+i+"-top").offset(),s=(o[0]-r.left)/l[0]-e.AQ.iX,A=(o[1]-r.top)/l[1]-e.AQ.iY;e.H3===e.KG?e.update(s,e.H5,e.KZ,e.HC):e.H3===e.JT?e.update(e.ID,s,e.KZ,e.HC):e.H3===e.L0?e.update(e.ID,e.H5,A,e.HC):e.H3===e.JC?e.update(e.ID,e.H5,e.KZ,A):e.H3===e.KA&&e.update(s-t,s-t+ZC.A4(e.KA).width(),A-n,A-n+ZC.A4(e.KA).height())}return!1},e.VT=function(){return zingchart.exec(e.H.K,"setmode",{mode:""}),e.JA&&(ZC.A4(document.body).unbind("mousemove touchmove",e.UR),ZC.A4(document.body).unbind("mouseup touchend",e.VT),e.JA=!1,e.C.O7=!1,e.A5E&&e.zoom(!1),e.A5E=!1),!1},ZC.A4("."+e.C.K+"-preview-handler").bind("mousedown touchstart",e.YF),ZC.A4("."+e.C.K+"-preview-mask").bind("click",e.AEJ),e.bBind=!0}},gc:function(){ZC.AP.gc(this,["Z","C6","o","I0","J5","C","H","AQ","UI","KG","JT","L0","JC","KA","J6","HB","H1","IL","oMask","OT","A3I","XB","A4M","VQ"])}}),ZC.A3A=ZC.D0.C7({$i:function(e,i){this.b(e);var t=this;t.C=e,t.H=e.A,t.JA=!1,t.Z=null,t.BJ=0,t.BH=0,t.A70="",t.bYX="yx"===t.C.AJ.layout,t.AF=t.sTypeE=t.sTypeN="scroll-"+(i||"x"),t.bYX&&(t.AF+="i",t.sTypeE="scroll-xi"===t.AF?"scroll-y":"scroll-x")},parse:function(){var e,i=this;i.K=i.C.K+"-"+i.sTypeE,i.assign_a([["offset-x","BJ"],["offset-y","BH"]]);var t="("+i.C.AF+").",n=i.H.B7;i.AX=new ZC.HS(i.C),n.load(i.AX.o,[t+"scroll.bar",t+i.AF+".bar"]),null!==ZC._n_(e=i.o.bar)&&i.AX.append(e),i.AX.parse(),i.AZ=new ZC.HS(i.C),n.load(i.AZ.o,[t+"scroll.handle",t+i.AF+".handle"]),null!==ZC._n_(e=i.o.handle)&&i.AZ.append(e),i.AZ.parse()},paint:function(){var e=this,i=e.C.BT("k")[0],t=e.C.BT("v")[0],n=e.C.P;if(("scroll-x"===e.AF||"scroll-xi"===e.AF)&&i.DD===i.V&&i.E1===i.A1||("scroll-y"===e.AF||"scroll-yi"===e.AF)&&t.FU===t.B4&&t.GY===t.BL)return e.unbind(),ZC.A4("#"+e.C.K+"-"+e.AF+"-handle").remove(),ZC.A4("#"+e.C.K+"-"+e.AF+"-bar").remove(),void ZC.Q.IQ(e.Z,e.H.AC,e.C.iX,e.C.iY,e.C.I,e.C.F);e.Z=ZC.AK(e.C.K+"-"+e.sTypeN+"-c");var a=ZC.AK(e.H.K+"-top");"scroll-x"===e.AF||"scroll-yi"===e.AF?(e.AX.iX=n.iX+e.BJ,e.AX.iY=n.iY+n.F+i.B0-1+e.BH,e.AX.I=n.I,e.bYX?(e.AZ.I=ZC._i_(ZC.BQ(4,e.AX.I*((t.BL-t.B4)/(t.GY-t.FU)))),t.FU===t.B4?t.AU?e.AZ.iX=e.AX.iX+e.AX.I-e.AZ.I:e.AZ.iX=e.AX.iX:t.GY===t.BL?t.AU?e.AZ.iX=e.AX.iX:e.AZ.iX=e.AX.iX+e.AX.I-e.AZ.I:t.AU?e.AZ.iX=ZC._i_(e.AX.iX+e.AX.I-e.AZ.I-e.AX.I*(t.B4-t.FU)/(t.GY-t.FU)):e.AZ.iX=ZC._i_(e.AX.iX+e.AX.I*(t.B4-t.FU)/(t.GY-t.FU))):(e.AZ.I=ZC._i_(ZC.BQ(4,e.AX.I*((i.A1-i.V)/(i.E1-i.DD)))),i.DD===i.V?i.AU?e.AZ.iX=e.AX.iX+e.AX.I-e.AZ.I:e.AZ.iX=e.AX.iX:i.E1===i.A1?i.AU?e.AZ.iX=e.AX.iX:e.AZ.iX=e.AX.iX+e.AX.I-e.AZ.I:i.AU?e.AZ.iX=ZC._i_(e.AX.iX+e.AX.I-e.AZ.I-e.AX.I*(i.V-i.DD)/(i.E1-i.DD)):e.AZ.iX=ZC._i_(e.AX.iX+e.AX.I*(i.V-i.DD)/(i.E1-i.DD))),ZC.AK(e.K+"-handle")?(ZC.A4("#"+e.K+"-bar").css("top",e.AX.iY+"px"),ZC.A4("#"+e.K+"-handle").css("left",e.AZ.iX+"px").css("top",e.AX.iY+"px").css("width",ZC.BQ(15,e.AZ.I)+"px"),e.paint_()):(e.AAC=ZC.Q.HX({cls:"zc-abs zc-scroll zc-scroll-x-bar "+e.C.K+"-scroll-x-bar",id:e.K+"-bar",wh:e.AX.I+"/"+e.AX.F,tl:e.AX.iY+"/"+e.AX.iX,opacity:0,p:a}),e.ZG=ZC.Q.HX({cls:"zc-abs zc-scroll zc-scroll-x-handle "+e.C.K+"-scroll-x-handle",id:e.K+"-handle",wh:ZC.BQ(15,e.AZ.I)+"/"+e.AX.F,tl:e.AX.iY+"/"+(e.AZ.iX-2),background:"#fff",opacity:0,p:a}),e.ZG.style.cursor="pointer",e.paint_(),e.JA||e.bind())):(e.AX.iX=n.iX-e.AX.I-1+e.BJ,e.AX.iY=n.iY+e.BH,e.AX.F=n.F,e.bYX?(e.AZ.F=ZC._i_(ZC.BQ(4,e.AX.F*((i.A1-i.V)/(i.E1-i.DD)))),i.DD===i.V?i.AU?e.AZ.iY=e.AX.iY:e.AZ.iY=e.AX.iY+e.AX.F-e.AZ.F:i.E1===i.A1?i.AU?e.AZ.iY=e.AX.iY+e.AX.F-e.AZ.F:e.AZ.iY=e.AX.iY:i.AU?e.AZ.iY=ZC._i_(e.AX.iY+e.AX.F*(i.V-i.DD)/(i.E1-i.DD)):e.AZ.iY=ZC._i_(e.AX.iY+e.AX.F-e.AZ.F-e.AX.F*(i.V-i.DD)/(i.E1-i.DD))):(e.AZ.F=ZC._i_(ZC.BQ(4,e.AX.F*((t.BL-t.B4)/(t.GY-t.FU)))),t.FU===t.B4?t.AU?e.AZ.iY=e.AX.iY:e.AZ.iY=e.AX.iY+e.AX.F-e.AZ.F:t.GY===t.BL?t.AU?e.AZ.iY=e.AX.iY+e.AX.F-e.AZ.F:e.AZ.iY=e.AX.iY:t.AU?e.AZ.iY=ZC._i_(e.AX.iY+e.AX.F*(t.B4-t.FU)/(t.GY-t.FU)):e.AZ.iY=ZC._i_(e.AX.iY+e.AX.F-e.AZ.F-e.AX.F*(t.B4-t.FU)/(t.GY-t.FU))),ZC.AK(e.K+"-handle")?(ZC.A4("#"+e.K+"-bar").css("left",e.AX.iX+"px"),ZC.A4("#"+e.K+"-handle").css("top",e.AZ.iY+"px").css("left",e.AX.iX+"px").css("height",ZC.BQ(15,e.AZ.F)+"px"),e.paint_()):(e.AAF=ZC.Q.HX({cls:"zc-abs zc-scroll zc-scroll-y-bar "+e.C.K+"-scroll-y-bar",id:e.K+"-bar",wh:e.AX.I+"/"+e.AX.F,tl:e.AX.iY+"/"+e.AX.iX,opacity:0,p:a}),e.ZD=ZC.Q.HX({cls:"zc-abs zc-scroll zc-scroll-y-handle "+e.C.K+"-scroll-y-handle",id:e.K+"-handle",wh:e.AX.I+"/"+ZC.BQ(15,e.AZ.F),tl:e.AZ.iY-2+"/"+e.AX.iX,background:"#fff",opacity:0,p:a}),e.ZD.style.cursor="pointer",e.paint_(),e.JA||e.bind()))},zoom:function(e){for(var i,t,n,a=this,l={graphid:a.C.K,zooming:e,scroll:!0},o=a.C.BM,r=a.C.BT("k")[0],s=a.C.BT("v")[0],A=0,C=o.length;A<C;A++)if(i=o[A]){var c=1===i.L?"":"-"+i.L;if(r.GM&&"scroll-x"===a.AF&&"k"===i.AF&&!a.bYX){var u=i.A1-i.V;l["zoomx"+c]=!0,t=(a.AZ.iX-a.AX.iX)/a.AX.I,n=(a.AZ.iX-a.AX.iX+a.AZ.I)/a.AX.I,r.AU?(l["xmin"+c]=i.E1-ZC._i_(n*(i.E1-i.DD)),l["xmax"+c]=i.E1-ZC._i_(t*(i.E1-i.DD))):(l["xmin"+c]=i.DD+ZC._i_(t*(i.E1-i.DD)),l["xmax"+c]=i.DD+ZC._i_(n*(i.E1-i.DD))),l["xmax"+c]-l["xmin"+c]!==u&&(l["xmax"+c]===i.E1?l["xmin"+c]=l["xmax"+c]-u:l["xmax"+c]=l["xmin"+c]+u)}else s.GM&&"scroll-y"===a.AF&&"v"===i.AF&&!a.bYX?(l["zoomy"+c]=!0,t=(a.AX.F-(a.AZ.iY-a.AX.iY+a.AZ.F))/a.AX.F,n=(a.AX.F-(a.AZ.iY-a.AX.iY))/a.AX.F,s.AU?(l["ymin"+c]=i.GY-ZC._f_(n*(i.GY-i.FU)),l["ymax"+c]=i.GY-ZC._f_(t*(i.GY-i.FU))):(l["ymin"+c]=i.FU+ZC._f_(t*(i.GY-i.FU)),l["ymax"+c]=i.FU+ZC._f_(n*(i.GY-i.FU)))):r.GM&&"scroll-xi"===a.AF&&"k"===i.AF&&a.bYX?(l["zoomx"+c]=!0,t=(a.AX.F-a.AZ.iY+a.AX.iY-a.AZ.F)/a.AX.F,n=(a.AX.F-a.AZ.iY+a.AX.iY)/a.AX.F,r.AU?(l["xmin"+c]=i.E1-ZC._i_(n*(i.E1-i.DD)),l["xmax"+c]=i.E1-ZC._i_(t*(i.E1-i.DD))):(l["xmin"+c]=i.DD+ZC._i_(t*(i.E1-i.DD)),l["xmax"+c]=i.DD+ZC._i_(n*(i.E1-i.DD)))):s.GM&&"scroll-yi"===a.AF&&"v"===i.AF&&a.bYX&&(l["zoomy"+c]=!0,t=(a.AZ.iX-a.AX.iX)/a.AX.I,n=(a.AZ.iX-a.AX.iX+a.AZ.I)/a.AX.I,s.AU?(l["ymin"+c]=i.GY-ZC._f_(n*(i.GY-i.FU)),l["ymax"+c]=i.GY-ZC._f_(t*(i.GY-i.FU))):(l["ymin"+c]=i.FU+ZC._f_(t*(i.GY-i.FU)),l["ymax"+c]=i.FU+ZC._f_(n*(i.GY-i.FU))))}a.H.PW(l)},paint_:function(){var e,i,t=this;ZC.Q.IQ(t.Z,t.H.AC,t.C.iX,t.C.iY,t.C.I,t.C.F),"scroll-x"===t.AF||"scroll-yi"===t.AF?((e=new ZC.HS(t)).K=t.C.K+"-scroll-x-bar",e.copy(t.AX),e.Z=e.C6=t.Z,e.iX=t.AX.iX,e.iY=t.AX.iY,e.I=t.AX.I,e.F=t.AX.F,e.paint(),(i=new ZC.HS(t)).K=t.C.K+"-scroll-x-handle",i.copy(t.AZ),i.Z=i.C6=t.Z,i.iX=t.AZ.iX,i.iY=t.AX.iY+(t.AX.F-t.AZ.F)/2-1,i.I=ZC.BQ(15,t.AZ.I),i.iX+i.I>t.C.P.iX+t.C.P.I&&(i.iX=t.C.P.iX+t.C.P.I-i.I),i.iX<t.C.P.iX&&(i.iX=t.C.P.iX),i.F=t.AZ.F,i.paint(),ZC.A4("#"+t.K+"-handle").css("left",i.iX+"px")):((e=new ZC.HS(t)).K=t.C.K+"-scroll-y-bar",e.copy(t.AX),e.Z=e.C6=t.Z,e.iX=t.AX.iX,e.iY=t.AX.iY,e.I=t.AX.I,e.F=t.AX.F,e.paint(),(i=new ZC.HS(t)).K=t.C.K+"-scroll-y-handle",i.copy(t.AZ),i.Z=i.C6=t.Z,i.iX=t.AX.iX+(t.AX.I-t.AZ.I)/2,i.iY=t.AZ.iY,i.I=t.AZ.I,i.F=ZC.BQ(15,t.AZ.F),i.iY+i.F>t.C.P.iY+t.C.P.F&&(i.iY=t.C.P.iY+t.C.P.F-i.F),i.iY<t.C.P.iY&&(i.iY=t.C.P.iY),i.paint(),ZC.A4("#"+t.K+"-handle").css("top",i.iY+"px"))},setScrollingFlag:function(e){var i=this;if(i.C.O7=e,i.C.H9&&ZC._b_(i.C.H9.o.shared))for(var t=0;t<i.H.AH.length;t++)i.H.AH[t].H9&&ZC._b_(i.H.AH[t].H9.o.shared)&&(i.H.AH[t].O7=e)},update:function(e){var i=this;"scroll-x"===i.AF||"scroll-yi"===i.AF?(i.AZ.iX=e,ZC.A4("#"+i.K+"-handle").css("left",e+"px"),i.paint_()):(i.AZ.iY=e,ZC.A4("#"+i.K+"-handle").css("top",e+"px"),i.paint_()),i.JA&&(i.setScrollingFlag(!0),i.zoom(!0))},unbind:function(){var e=this;ZC.A4("."+e.C.K+"-"+e.AF+"-handle").unbind("mousedown touchstart",e.RB),ZC.A4("."+e.C.K+"-"+e.AF+"-bar").unbind("click",e.R7)},overscroll:function(e){var i=this,t=i.C.I3();t.type=e,ZC.AP.BZ("overscroll",i.H,t)},bind:function(){var e=this,i=e.H.K,t=0,n=0;e.RB=function(a){if(a.preventDefault(),!(a.button>1)&&(e.A70=e.H.KM.join(","),e.H.KM.push("skip_context_menu","skip_objects_tracking","skip_segment_tracking","skip_marker_tracking","skip_interactivity"),e.H.H9)){e.H.H9.C=e.C,e.H.H9.parse();for(var l=a.target;l&&"BODY"!==l.tagName.toUpperCase()&&-1===ZC.Q.SV(l).indexOf("zc-"+e.AF+"-handle");)l=l.parentNode;if((ZC.mobile||!(a.which>1))&&l){var o=ZC.Q.M7(a),r=ZC.A4("#"+i+"-top").offset();if("scroll-x"===e.AF||"scroll-yi"===e.AF){var s=o[0]-r.left;t=s-e.AZ.iX}else{var A=o[1]-r.top;n=A-e.AZ.iY}return ZC.A4(document.body).bind("mousemove touchmove",e.R6),ZC.A4(document.body).bind("mouseup touchend",e.NI),e.JA=!0,!1}}},e.R6=function(a){if(e.JA){e.setScrollingFlag(!1);var l=ZC.Q.M7(a),o=ZC.A4("#"+i+"-top").offset();if("scroll-x"===e.AF||"scroll-yi"===e.AF){var r=l[0]-o.left;r-t<e.AX.iX&&(r<e.AX.iX-15&&e.overscroll("scroll-x-left"),r=e.AX.iX+t),r-t+e.AZ.I>e.AX.iX+e.AX.I&&(r>e.AX.iX+e.AX.I+15&&e.overscroll("scroll-x-right"),r=e.AX.iX+e.AX.I+t-e.AZ.I),e.update(r-t)}else{var s=l[1]-o.top;s-n<e.AX.iY&&(s<e.AX.iY-15&&e.overscroll("scroll-y-top"),s=e.AX.iY+n),s-n+e.AZ.F>e.AX.iY+e.AX.F&&(s>e.AX.iY+e.AX.F+15&&e.overscroll("scroll-y-bottom"),s=e.AX.iY+e.AX.F+n-e.AZ.F),e.update(s-n)}}return!1},e.NI=function(i){return e.H.KM=e.A70.split(","),e.JA&&(ZC.A4(document.body).unbind("mousemove touchmove",e.R6),ZC.A4(document.body).unbind("mouseup touchend",e.NI),e.JA=!1,e.setScrollingFlag(!1),i&&e.zoom(!1)),!1},e.R7=function(t){e.JA=!1,e.setScrollingFlag(!1);var n=ZC.Q.M7(t),a=ZC.A4("#"+i+"-top").offset();"scroll-x"===e.AF||"scroll-yi"===e.AF?n[0]-a.left>e.AZ.iX?e.update(ZC.CY(e.AX.iX+e.AX.I-e.AZ.I-2*e.AZ.AT,e.AZ.iX+(n[0]-a.left-e.AZ.iX)/4)):e.update(ZC.BQ(e.AX.iX,n[0]-a.left+(e.AZ.iX-n[0]+a.left-e.AZ.I)/4)):n[1]-a.top>e.AZ.iY?e.update(ZC.CY(e.AX.iY+e.AX.F-e.AZ.F-2*e.AZ.AT,e.AZ.iY+(n[1]-a.top-e.AZ.iY)/4)):e.update(ZC.BQ(e.AX.iY,n[1]-a.top+(e.AZ.iY-n[1]+a.top-e.AZ.F)/4)),e.zoom(!1)},ZC.A4("."+e.C.K+"-"+e.sTypeE+"-handle").bind("mousedown touchstart",e.RB),ZC.A4("."+e.C.K+"-"+e.sTypeE+"-bar").bind("click",e.R7)}}),ZC.A2G=ZC.D0.C7({$i:function(e,i){this.b(e);var t=this;t.BF=e,t.JA=!1,t.Z=null,t.A70="",t.KO=1,t.GX=1,t.AF="scroll-"+(i||"y")},parse:function(){var e,i=this;i.K=i.BF.K+"-legend-"+i.AF;var t=i.BF.A.H.B7,n="("+i.BF.A.AF+")";i.AX=new ZC.HS(i.BF),t.load(i.AX.o,[n+".legend.scroll.bar",i.AF+".bar"]),null!==ZC._n_(e=i.o.bar)&&i.AX.append(e),i.AX.parse(),i.AZ=new ZC.HS(i.BF),t.load(i.AZ.o,[n+".legend.scroll.handle",i.AF+".handle"]),null!==ZC._n_(e=i.o.handle)&&i.AZ.append(e),i.AZ.parse()},paint:function(){var e,i=this;if(!i.JA){i.Z=ZC.AK(i.BF.A.K+"-legend-scroll-c");var t=ZC.AK(i.H.K+"-top");"scroll-y"===i.AF?(i.AX.iX=i.BF.iX+i.BF.I-i.AX.I-1,i.AX.iY=i.BF.EJ,i.AX.F=i.BF.F-(i.BF.KI?i.BF.KI.F:0)-(i.BF.EJ-i.BF.iY),e=Math.ceil(i.BF.B6.length/i.GX-i.BF.EE/i.GX)+1,i.AZ.F=i.AX.F/e,i.AZ.iY=i.AX.iY,0!==i.BF.D2.min&&(i.AZ.iY+=i.BF.D2.min/i.GX*i.AZ.F),ZC.AK(i.K+"-legend-handle")?(ZC.A4("#"+i.K+"-legend-handle").css("left",i.AX.iX+"px").css("top",i.AZ.iY+"px").css("height",i.AZ.F-0*i.AZ.AT+"px"),ZC.A4("#"+i.K+"-legend-bar").css("left",i.AX.iX+"px").css("top",i.AX.iY+"px"),ZC.A4("#"+i.BF.K+"-frame").css("left",i.BF.iX+"px").css("top",i.BF.EJ+"px"),i.paint_()):(i.AAF=ZC.Q.HX({cls:"zc-abs zc-scroll zc-scroll-y-bar "+i.BF.K+"-scroll-y-legend-bar",id:i.K+"-legend-bar",wh:i.AX.I+"/"+i.AX.F,tl:i.AX.iY+"/"+i.AX.iX,background:"#fff",opacity:0,zidx:1,p:t}),i.ZD=ZC.Q.HX({cls:"zc-abs zc-scroll zc-scroll-y-handle "+i.BF.K+"-scroll-y-legend-handle",id:i.K+"-legend-handle",wh:i.AX.I-0*i.AZ.AT+"/"+(i.AZ.F-0*i.AZ.AT),tl:i.AZ.iY+"/"+i.AX.iX,background:"#fff",opacity:0,zidx:1,p:t}),i.ZD.style.cursor="pointer",i.paint_())):"scroll-x"===i.AF&&(i.AX.iX=i.BF.iX,i.AX.iY=i.BF.iY+i.BF.F-i.AX.F-1,i.AX.I=i.BF.I,e=Math.ceil(i.BF.B6.length/i.KO-i.BF.EE/i.KO)+1,i.AZ.I=i.AX.I/e,i.AZ.iX=i.AX.iX,0!==i.BF.D2.min&&(i.AZ.iX+=i.BF.D2.min/i.KO*i.AZ.I),ZC.AK(i.K+"-legend-handle")?(ZC.A4("#"+i.K+"-legend-handle").css("left",i.AZ.iX+"px").css("top",i.AX.iY+"px").css("width",i.AZ.I-0*i.AZ.AT+"px"),ZC.A4("#"+i.K+"-legend-bar").css("left",i.AX.iX+"px").css("top",i.AX.iY+"px"),ZC.A4("#"+i.BF.K+"-frame").css("left",i.BF.iX+"px").css("top",i.BF.EJ+"px"),i.paint_()):(i.AAC=ZC.Q.HX({cls:"zc-abs zc-scroll zc-scroll-x-bar "+i.BF.K+"-scroll-x-legend-bar",id:i.K+"-legend-bar",wh:i.AX.I+"/"+i.AX.F,tl:i.AX.iY+"/"+i.AX.iX,background:"#fff",opacity:0,zidx:1,p:t}),i.ZG=ZC.Q.HX({cls:"zc-abs zc-scroll zc-scroll-x-handle "+i.BF.K+"-scroll-x-legend-handle",id:i.K+"-legend-handle",wh:i.AZ.I-0*i.AZ.AT+"/"+(i.AX.F-0*i.AZ.AT),tl:i.AX.iY+"/"+i.AZ.iX,background:"#fff",opacity:0,zidx:1,p:t}),i.ZG.style.cursor="pointer",i.paint_())),ZC.move||i.bind()}},paint_:function(){var e,i,t=this;"scroll-y"===t.AF?((e=new ZC.HS(t)).K=t.BF.K+"-scroll-y-legend-bar",e.copy(t.AX),e.Z=t.Z,e.iX=t.AX.iX,e.iY=t.AX.iY,e.I=t.AX.I,e.F=t.AX.F,e.paint(),(i=new ZC.HS(t)).K=t.BF.K+"-scroll-y-legend-handle",i.copy(t.AZ),i.Z=t.Z,i.iX=t.AX.iX,i.iY=t.AZ.iY,i.I=t.AZ.I,i.F=t.AZ.F,i.paint()):"scroll-x"===t.AF&&((e=new ZC.HS(t)).K=t.BF.K+"-scroll-x-legend-bar",e.copy(t.AX),e.Z=t.Z,e.iX=t.AX.iX,e.iY=t.AX.iY,e.I=t.AX.I,e.F=t.AX.F,e.paint(),(i=new ZC.HS(t)).K=t.BF.K+"-scroll-x-legend-handle",i.copy(t.AZ),i.Z=t.Z,i.iX=t.AZ.iX,i.iY=t.AX.iY,i.I=t.AZ.I,i.F=t.AX.F,i.paint())},update:function(e){var i,t,n,a,l,o,r=this,s=r.BF;if("scroll-y"===r.AF){if(e<r.AZ.iY&&!1,e===r.AZ.iY)return;r.AZ.iY=e,ZC.A4("#"+r.K+"-legend-handle").css("top",e+"px"),i=r.AZ.iY-r.AX.iY,a=Math.ceil(s.B6.length/r.GX-s.EE/r.GX)+1,t=r.AX.F/a,o=r.GX}else if("scroll-x"===r.AF){if(e>r.AZ.iX&&!1,e===r.AZ.iX)return;r.AZ.iX=e,ZC.A4("#"+r.K+"-legend-handle").css("left",e+"px"),i=r.AZ.iX-r.AX.iX,a=Math.ceil(s.B6.length/r.KO-s.EE/r.KO)+1,t=r.AX.I/a,o=r.KO}n=Math.round(i/t),l=s.B6.length-s.EE,s.B6.length%o&&(l+=o-s.B6.length%o),s.D2.min=Math.min(n*o,l),s.D2.max=s.D2.min+s.EE,s.VW(),s.clear(!1),s.parse(),s.paint(),r.paint_(),r.bind()},unbind:function(){var e=this;ZC.A4("."+e.BF.K+"-"+e.AF+"-legend-handle").unbind("mousedown touchstart",e.RB),ZC.A4("."+e.BF.K+"-"+e.AF+"-legend-bar").unbind("click",e.R7)},bind:function(){var e=this,i=e.H.K,t=0,n=0;e.RB=function(a){if(a.preventDefault(),!(a.button>1)){for(var l=a.target;l&&"BODY"!==l.tagName.toUpperCase()&&-1===ZC.Q.SV(l).indexOf("zc-"+e.AF+"-handle");)l=l.parentNode;if((ZC.mobile||!(a.which>1))&&l){var o=ZC.Q.M7(a),r=ZC.A4("#"+i+"-top").offset();if("scroll-y"===e.AF){var s=o[1]-r.top;n=s-e.AZ.iY}else if("scroll-x"===e.AF){var A=o[0]-r.left;t=A-e.AZ.iX}return ZC.A4(document.body).bind("mousemove touchmove",e.R6),ZC.A4(document.body).bind("mouseup touchend",e.NI),e.JA=!0,!1}}},e.R6=function(a){if(a.preventDefault(),e.JA){var l=ZC.Q.M7(a),o=ZC.A4("#"+i+"-top").offset();if("scroll-y"===e.AF){var r=l[1]-o.top;r-n<e.AX.iY&&(r=e.AX.iY+n),r-n+e.AZ.F>e.AX.iY+e.AX.F&&(r=e.AX.iY+e.AX.F+n-e.AZ.F),e.update(r-n)}else if("scroll-x"===e.AF){var s=l[0]-o.left;s-t<e.AX.iX&&(s=e.AX.iX+t),s-t+e.AZ.I>e.AX.iX+e.AX.I&&(s=e.AX.iX+e.AX.I+t-e.AZ.I),e.update(s-t)}}return!1},e.NI=function(){return e.H.KM=e.A70.split(","),e.JA&&(ZC.A4(document.body).unbind("mousemove touchmove",e.R6),ZC.A4(document.body).unbind("mouseup touchend",e.NI),e.JA=!1),!1},e.A33=function(i){(i.detail?-120*i.detail:i.wheelDelta)/120>0?e.update(ZC.BQ(e.AX.iY,e.AZ.iY-e.AZ.F)):e.update(ZC.CY(e.AX.iY+e.AX.F-e.AZ.F,e.AZ.iY+e.AZ.F))},e.R7=function(t){e.JA=!0;var n=ZC.Q.M7(t),a=ZC.A4("#"+i+"-top").offset();"scroll-y"===e.AF?n[1]-a.top>e.AZ.iY?e.update(ZC.CY(e.AX.iY+e.AX.F-e.AZ.F,e.AZ.iY+e.AZ.F)):e.update(ZC.BQ(e.AX.iY,e.AZ.iY-e.AZ.F)):"scroll-x"===e.AF&&(n[0]-a.left>e.AZ.iX?e.update(ZC.CY(e.AX.iX+e.AX.I-e.AZ.I,e.AZ.iX+e.AZ.I)):e.update(ZC.BQ(e.AX.iX,e.AZ.iX-e.AZ.I))),e.JA=!1},ZC.A4("."+e.BF.K+"-"+e.AF+"-legend-handle").bind("mousedown touchstart",e.RB),ZC.A4("."+e.BF.K+"-"+e.AF+"-legend-bar").bind("click",e.R7)}}),ZC.A1A=ZC.DS.C7({$i:function(e){this.b(e);var i=this;i.O8="legend",i.B6=null,i.PY=null,i.NB="x1",i.IH="hide",i.QX="",i.PL="",i.UK=!1,i.V0=!1,i.TB="none",i.U5="header",i.EE=9999,i.DC=null,i.BR=null,i.ZA=null,i.A2=null,i.NJ=null,i.FN=null,i.KI=null,i.PZ=0,i.MA=0,i.YM=!0,i.EJ=0,i.GL=0,i.sAlign="",i.JU="",i.D2={enabled:!1,min:-1,max:-1,page:-1,pages:-1},i.LX=!1,i.N7=!1,i.N4=-1,i.S3=!1,i.A4T=1,i.WD=0,i.L8=!1,i.XN=!1,i.YA=!1,i.XC=[]},highlightItem:function(e){var i,t,n=this,a=!1,l=ZC.move,o=n.L8;-1!==e&&(o=n.L8||n.A.AY.A6[e].L8),n.o.item&&null!==ZC._n_(i=n.o.item["highlight-item"])&&(a=ZC._b_(i),null===ZC._n_(n.o["highlight-legend"])&&null===n.A.AY.A6[e].o["highlight-legend"]&&(o=a)),(a||o)&&(a&&(n.E["highlight-item"]=e),o&&(n.E["highlight-legend"]=ZC._i_(e)),t=n.scrollTo(ZC._i_(e)),n.VW(),n.clear(!0,t),n.YM=!0,n.parse(),n.fixPlacement(!0),n.paint(),ZC.move=l)},scrollTo:function(e){var i,t,n=this,a=!1;return e>=0&&(e<n.D2.min||e>=n.D2.max)&&(a=!0,"scroll"===n.TB?(e%(t="scroll-y"===n.DC.AF?n.DC.GX:n.DC.KO)&&(e-=e%t),n.D2.min=e,n.D2.max=e+n.EE,n.D2.max>n.B6.length&&(n.D2.min=n.B6.length-n.EE,n.B6.length%t&&(n.D2.min=n.D2.min+(t-n.B6.length%t)),n.D2.max=n.B6.length)):"page"===n.TB&&(i=Math.floor(e/n.EE),n.D2.min=i*n.EE,n.D2.max=n.D2.min+n.EE,n.D2.page=i+1)),a},parse:function(){var e,i,t,n=this;n.E["force-margins"]=!0,n.PZ=0,n.MA=0,null!==ZC._n_(e=n.A.A.E["graph-"+n.A.K+"-legend-info"])&&(n.o.x=e.x-n.A.iX,n.o.y=e.y-n.A.iY);var a;if(ZC.move)n.FN&&n.FN.parse(),n.KI&&n.KI.parse();else{a=n.A.H.B7;var l="("+n.A.AF+")";n.b(),n.assign_a([["collapse","LX","b"],["minimize","UK","b"],["draggable","V0","b"],["shared","S3","b"],["overflow","TB"],["max-items","EE","i"],["group","A4T","i"],["drag-handler","U5"],["highlight-plot","WD","b"],["highlight-legend","L8","b"],["align","sAlign"],["vertical-align","JU"]]),n.LX&&!n.UK&&(n.LX=!1),zingchart.DEV.MEDIARULES&&(n.E["forced-align-position"]||(n.alignPosition({align:n.sAlign,"vertical-align":n.JU,layout:n.NB}),n.E["forced-align-position"]=!0)),n.WD&&null===ZC._n_(n.o["highlight-legend"])&&(n.L8=n.WD),n.BR=new ZC.DS(n),a.load(n.BR.o,l+".legend.item"),n.o.item&&null===ZC._n_(n.o.item.visible)&&(n.o.item.visible=!0),n.BR.append(n.o.item),n.BR.parse(),n.ZA=new ZC.DS(n),a.load(n.ZA.o,l+".legend.item-off"),n.o["item-off"]&&null===ZC._n_(n.o["item-off"].visible)&&(n.o["item-off"].visible=!0),n.ZA.append(n.o["item-off"]),n.ZA.parse(),n.A2=new ZC.DW(n),a.load(n.A2.o,l+".legend.marker"),n.o.marker&&null===ZC._n_(n.o.marker.visible)&&(n.o.marker.visible=!0),n.A2.append(n.o.marker),n.A2.E.type="default",n.A2.E["show-marker"]=!0,n.A2.E["show-line"]=!1,null!==ZC._n_(e=n.A2.o.type)&&(n.A2.E.type=e),null!==ZC._n_(e=n.A2.o["show-line"])&&(n.A2.E["show-line"]=ZC._b_(e)),null!==ZC._n_(e=n.BR.o["marker-style"])&&(n.A2.E.type=e),null!==ZC._n_(e=n.BR.o["show-line"])&&(n.A2.E["show-line"]=ZC._b_(e)),null!==ZC._n_(e=n.BR.o["show-marker"])&&(n.A2.o.visible=ZC._b_(e)),n.A2.parse(),n.NJ=new ZC.DW(n),a.load(n.NJ.o,l+".legend.marker-off"),n.o["marker-off"]&&(n.o["marker-off"].visible=!0),n.NJ.append(n.o["marker-off"]),n.NJ.E.type="default",n.NJ.E["show-marker"]=!0,n.NJ.E["show-line"]=!1,null!==ZC._n_(e=n.NJ.o.type)&&(n.NJ.E.type=e),null!==ZC._n_(e=n.NJ.o["show-line"])&&(n.NJ.E["show-line"]=ZC._b_(e)),null!==ZC._n_(e=n.BR.o["marker-style"])&&(n.NJ.E.type=e),null!==ZC._n_(e=n.BR.o["show-line"])&&(n.NJ.E["show-line"]=ZC._b_(e)),null!==ZC._n_(e=n.BR.o["show-marker"])&&(n.NJ.o.visible=ZC._b_(e)),n.NJ.parse(),(null!==ZC._n_(e=n.o.header)||n.V0||n.UK)&&(n.FN=new ZC.DS(n),n.FN.O8="legendheader",n.FN.GJ="zc-legend-item "+n.K+"-header",n.FN.K=n.K+"-header",a.load(n.FN.o,l+".legend.header"),n.FN.o.text=n.FN.o.text||" ",n.FN.append(e),n.FN.parse(),n.FN.AM||(n.FN=null)),null!==ZC._n_(e=n.o.footer)&&(n.KI=new ZC.DS(n),n.KI.O8="legendfooter",n.KI.GJ="zc-legend-item "+n.K+"-footer",n.KI.K=n.K+"-footer",a.load(n.KI.o,l+".legend.footer"),n.KI.append(e),n.KI.parse(),n.KI.AM||(n.KI=null));var o=n.A.AY.A6;null!==ZC._n_(e=n.o.layout)?n.NB=e:25*o.length>n.A.F&&(n.NB="x"+Math.ceil(25*o.length/n.A.F)),null!==ZC._n_(e=n.o["toggle-action"])&&(n.IH=e),n.QX=n.PL=n.IH,null!==ZC._n_(n.o.item)&&null!==ZC._n_(e=n.o.item["toggle-action"])&&(n.QX=e),null!==ZC._n_(n.o.marker)&&null!==ZC._n_(e=n.o.marker["toggle-action"])&&(n.PL=e);var r=[];for(n.B6=[],i=0,t=o.length;i<t;i++){var s=n.A.AY.M0[i],A=new ZC.DS(n);A.copy(n.BR),A.append(o[s].o["legend-item"]),null===ZC._n_(A.o.text)&&null!==ZC._n_(e=o[s].A64)&&(A.o.text=e),null===ZC._n_(A.o.text)&&null!==ZC._n_(e=o[s].AR)&&(A.o.text=e),A.AR=null===ZC._n_(A.o.text)?"Series "+(s+1):A.o.text,A.E.order=s,A.E.index=s,null!==ZC._n_(o[s].o["legend-item"])&&null!==ZC._n_(e=o[s].o["legend-item"].order)&&(A.E.order=ZC._i_(e)),r.push([i,s,A.E.order]),-1!==A.AR.indexOf("%")&&(A.KE=function(e){if(o[i]&&o[i].FP(0)){var t=ZC.AP.OQ(n.BR.o,o[i].o);e=o[i].FP(0).KE(e,t)}return e}),A.parse(),n.B6.push(A)}for(r.sort(function(e,i){return e[2]-i[2]}),i=0;i<r.length;i++)r[i][2]=i,o[r[i][1]].o["legend-item"]=o[r[i][1]].o["legend-item"]||{},o[r[i][1]].o["legend-item"].order=r[i][2],n.B6[r[i][0]].E.order=r[i][2];(e=n.A.E["legend-info"])&&(n.N7=e.collapsed)}if(n.B6&&n.A2){"page"===n.TB?((e=n.A.E["legend-info"])?(n.D2.min=e.min,n.D2.max=e.max,n.D2.page=e.page):(n.D2.min=0,n.D2.max=n.EE,n.D2.page=1),n.D2.pages=Math.ceil(n.B6.length/n.EE),n.D2.page>n.D2.pages&&(n.D2.page=n.D2.pages,n.D2.min=(n.D2.page-1)*n.EE,n.D2.max=n.D2.page*n.EE-1),n.D2.page=ZC.CY(n.D2.page,n.D2.pages)):"scroll"===n.TB?(e=n.A.E["legend-info"])?(n.D2.min=e.min,n.D2.max=e.max,n.D2.page=e.page):(n.D2.min=0,n.D2.max=n.EE,n.D2.page=1):(n.D2.min=0,n.D2.max="hidden"===n.TB?n.EE:n.B6.length,n.D2.page=1),n.VW(!1),n.B6.sort(function(e,i){return e.E.order-i.E.order}),n.o["reverse-series"]&&n.B6.reverse();var C=.9*n.A.I;null!==ZC._n_(n.o.width)&&(C=n.I);var c=0,u=0,p=-ZC.MAX,Z=-ZC.MAX,h=n.A2.E["show-line"]?3:2,d=0,f=1,_=1;if("float"===n.NB){for(i=0,t=n.B6.length;i<t;i++)if(d+=n.B6[i].AM?1:0,!(i<n.D2.min||i>=n.D2.max||n.N7)&&n.B6[i].AM){var g=n.B6[i].I+n.B6[i].DV+n.B6[i].E6+h*n.B6[i].DK;Z=ZC.BQ(Z,n.B6[i].F+n.B6[i].E5+n.B6[i].DP),c+g>C?(p=ZC.BQ(p,c),u+=Z,c=g,Z=ZC.BQ(Z,n.B6[i].F+n.B6[i].E5+n.B6[i].DP)):c+=g}p=ZC.BQ(p,c),Z!==-ZC.MAX&&(u+=Z),p!==-ZC.MAX&&(c=p)}else{var v=0;for(i=0,t=n.B6.length;i<t;i++)d+=n.B6[i].AM?1:0,i<n.D2.min||i>=n.D2.max||n.N7||(v+=n.B6[i].AM?1:0);var b=ZC.AO.A20(n.NB,v);for(f=b[0],_=b[1],i=0,t=n.B6.length;i<t;i++)(i<n.D2.min||i>=n.D2.max||n.N7)&&("scroll"!==n.TB||d<=n.EE)||n.B6[i].AM&&(p=ZC.BQ(p,n.B6[i].I+n.B6[i].DV+n.B6[i].E6+h*n.B6[i].DK),Z=ZC.BQ(Z,n.B6[i].F+n.B6[i].E5+n.B6[i].DP),1===_&&(u+=n.B6[i].F+n.B6[i].E5+n.B6[i].DP));c=_*p,u=f*Z}if("page"===n.TB&&d>n.EE&&(n.D2.enabled=!0),"scroll"===n.TB&&d>n.EE&&(n.DC||(!f||f>_?(n.DC=new ZC.A2G(n,"y"),a.load(n.DC.o,".scroll-y")):(n.DC=new ZC.A2G(n,"x"),a.load(n.DC.o,".scroll-x")),n.DC.append(n.o.scroll),n.DC.KO=f,n.DC.GX=_,n.DC.parse()),n.N7||("scroll-y"===n.DC.AF?c+=n.DC.AX.I:u+=n.DC.AX.F)),n.FN){var m=n.FN.I;n.V0&&"icon"===n.U5?(m+=15,n.UK&&(m+=25)):n.UK&&(m+=15),c=ZC.BQ(c,m)}n.KI&&(c=ZC.BQ(c,n.KI.I));var B=!1,E=!1;if(null===ZC._n_(n.o.width)&&(n.o.width=c,B=!0),null===ZC._n_(n.o.height)&&(n.o.height=u,E=!0),n.iX=-1,n.iY=-1,!ZC.move&&n.FN&&null!==ZC._n_(e=n.A.A.E["legend"+n.A.L+"-xy-ratio"])){n.locate();var K=n.I+n.EP+n.FK,F=n.F+n.FJ+n.FR,D=n.S3?n.A.A:n.A;n.iX=D.I*e[0],n.iX=ZC.BQ(n.iX,1.1),n.o.x=n.iX=ZC.CY(n.iX,D.I-K-2),n.iY=(D.F-n.FN.F)*e[1],n.iY=ZC.BQ(n.iY,1.1),n.o.y=n.iY=ZC.CY(n.iY,D.F-F-n.FN.F-2)}if(n.locate(),null!==ZC._n_(n.o.position)&&"undefined"!=typeof n.E["position-info"]?(n.E["position-info"][0]>.5&&(n.PZ+=n.EP+n.FK),n.E["position-info"][1]>.5?n.MA+=n.FJ+n.FR:(n.FN&&(n.MA-=n.FN.F),n.KI&&(n.MA-=n.KI.F),n.D2&&n.D2.enabled&&(n.MA-=20))):((0===n.A.iX||n.iX+n.I/2>n.A.iX+n.A.I/2)&&(n.PZ+=n.EP+n.FK),(0===n.A.iY||n.iY+n.F/2>n.A.iY+n.A.F/2)&&(n.MA+=n.FJ+n.FR)),!ZC.move&&(e=n.A.A.E["graph-"+n.A.K+"-legend-info"])&&(e.x&&(n.iX=e.x),e.y&&(n.iY=e.y)),n.GL=n.F,n.EJ=n.iY,n.FN&&(n.F+=n.FN.F,n.EJ+=n.FN.F,n.MA+=n.FN.F),n.KI&&(n.F+=n.KI.F,n.MA+=n.KI.F),n.D2.enabled&&!n.N7){var X=new ZC.DS(n);X.AR=" ",X.append(n.o["page-status"]),null!==ZC._n_(X.o.text)&&""!==X.o.text||(X.o.text="#"),X.parse(),n.F+=X.F+4,n.MA+=X.F+4}B&&(n.o.width=null),E&&(n.o.height=null),n.N7||(n.I+=n.EP+n.FK,n.F+=n.FJ+n.FR),n.E["default-width"]&&(n.I=n.E["default-width"])}},alignPosition:function(e){var i=this;if(null!==ZC._n_(e)){var t=i.A.H.B7.B7.graph.legend,n=e.align||t.align,a=e["vertical-align"]||t["vertical-align"],l=e.layout||t.layout;(n||a)&&("center"===n?(null===ZC._n_(i.o.layout)&&(l=i.o.layout="horizontal"),i.o.position="50% "):i.o.position="left"===n?"0% ":"100% ",i.o.position+="middle"===a?"50%":"bottom"===a?"100%":"0%","horizontal"!==l&&"middle"!==a||(i.o["adjust-layout"]=!0))}},VW:function(e){var i=this;void 0===e&&(e=!0),i.A.E["legend-info"]={collapsed:i.N7,min:i.D2.min,max:i.D2.max,page:i.D2.page},e&&(i.A.A.E["graph-"+i.A.K+"-legend-info"]={x:i.iX,y:i.iY})},clear:function(e,i){null===ZC._n_(e)&&(e=!1),null===ZC._n_(i)&&(i=!1);var t=this,n=t.A.K+"-legend-",a=null;ZC.A4("."+n+"item",a).remove(),ZC.A4("."+n+"header",a).remove(),ZC.A4("."+n+"footer",a).remove(),ZC.A4("#"+n+"page-status",a).remove(),e&&!i||(ZC.move||t.unbind(),ZC.A4("."+n+"page-area",a).remove(),ZC.A4("."+n+"header-area",a).remove(),ZC.A4("."+n+"item-area",a).remove(),ZC.A4("."+n+"marker-area",a).remove()),ZC.move?ZC.Q.IQ(ZC.AK(n+"c"),t.A.H.AC,t.A.iX,t.A.iY,t.A.I,t.A.F):ZC.Q.IQ(ZC.AK(n+"c"),t.A.H.AC,t.iX-2*t.AT-2*t.JP,t.iY-2*t.AT-2*t.JP,t.I+4*t.AT+4*t.JP,t.F+4*t.AT+4*t.JP),t.DC&&ZC.Q.IQ(ZC.AK(n+"scroll-c"),t.A.H.AC,t.A.iX,t.A.iY,t.A.I,t.A.F)},unbind:function(){var e=this;ZC.A4("#"+e.K+"-frame").die(ZC.Q.C0("mouseover"),e.zc_legend_mouseover).die(ZC.Q.C0("mouseout"),e.zc_legend_mouseout),ZC.A4("#"+e.K+"-move-area").die(ZC.Q.C0("mousedown"),e.YX),ZC.A4("#"+e.K+"-minimize-area").die(ZC.Q.C0("click"),e.XT),ZC.A4("."+e.K+"-page-area").die(ZC.Q.C0("click"),e.YC),e.DC&&e.DC.unbind(),e.BR&&e.BR.o.reorder&&ZC.A4("."+e.A.K+"-legend-item-area").die("mousedown",e.VH)},fixPlacement:function(e){var i=this;if(i.YM&&null===ZC._n_(i.o.y)||e){if(!i.o.position&&e||(i.iX-=i.PZ),i.iX<i.DV&&(i.DV<i.E6||-2===i.E6)&&(i.iX=i.DV),!i.o.position&&e||(i.iY-=i.MA,i.EJ-=i.MA),i.iY<i.E5&&(i.E5<i.DP||-2===i.DP)){var t=i.EJ-i.iY;i.iY=i.E5,i.EJ=i.E5+t}i.YM=!1}},EL:function(e){var i=this;i.FN&&i.FN.EL(e),i.KI&&i.KI.EL(e);for(var t=0;t<i.XC.length;t++)i.XC[t].EL(e)},paint:function(e){var i,t,n,a,l,o,r,s,A,C,c,u,p,Z,h,d,f=this;if(f.AM&&(f.E["default-width"]||(f.E["default-width"]=f.I),f.B6)){var _=ZC.AK(f.H.K+"-top"),g=f.A.AY.A6,v=0;for(o=0,r=f.B6.length;o<r;o++)o<f.D2.min||o>=f.D2.max||f.N7||(v+=f.B6[o].AM?1:0);f.A4K=!0,f.b(),f.FN&&(f.FN.iX=f.iX,f.FN.iY=f.iY,f.FN.I=f.I,f.FN.Z=f.FN.C6=f.Z,f.FN.paint(),ZC.move||"canvas"!==f.A.A.AC&&f.FN.EL(),f.V0&&"icon"===f.U5&&((n=new ZC.DW(f)).Z=f.Z,n.B9="#000",n.B0=1,n.DQ="line",n.append(f.o.icon),a=f.FN.iX+f.FN.I-10,l=f.FN.iY+f.FN.F/2,n.D=[[a-7,l],[a+7,l],null,[a,l-7],[a,l+7],null,[a-6,l-1],[a-6,l+1],null,[a-5,l-2],[a-5,l+2],null,[a+6,l-1],[a+6,l+1],null,[a+5,l-2],[a+5,l+2],null,[a-1,l-6],[a+1,l-6],null,[a-2,l-5],[a+2,l-5],null,[a-1,l+6],[a+1,l+6],null,[a-2,l+5],[a+2,l+5]],n.parse(),n.paint()),f.UK&&((t=new ZC.DW(f)).Z=f.Z,t.B9=ZC.AP.AA3(f.A0,"#fff","#000"),t.B0=1,t.append(f.o.icon),t.DQ="line",a=f.FN.iX+f.FN.I-10-(f.V0&&"icon"===f.U5?20:0),l=f.FN.iY+f.FN.F/2,t.D=[[a-7,l-2],[a+2,l-2],[a+2,l+7],[a-7,l+7],[a-7,l-2],[a+2,l-2],null,[a-4,l-5],[a+5,l-5],[a+5,l+4],[a-4,l+4],[a-4,l-5],[a+5,l-5]],t.parse(),t.paint())),f.KI&&(f.KI.iX=f.iX,f.KI.iY=f.iY+f.F-f.KI.F,f.KI.I=f.I,f.KI.Z=f.KI.C6=f.Z,f.KI.paint(),ZC.move||"canvas"!==f.A.A.AC&&f.KI.EL());var b=ZC.AO.A20(f.NB,v),m=b[0],B=b[1],E=f.I/B,K=f.GL/m,F=0,D=0;f.PY=[];var X,I=0,x=-ZC.MAX,y=f.A2.E["show-line"]?3:2,w=null,Y=0;for(f.XN=!1,o=0,r=f.B6.length;o<r;o++)if(!(o-Y<f.D2.min||o-Y>=f.D2.max||f.N7)){var M=new ZC.DS(f);M.copy(f.B6[o]),f.E["highlight-legend"]===o&&(M.append({bold:!0}),null!==ZC._n_(f.o.item)&&M.append(f.o.item["highlight-state"])),X=M.E.index;var H=new ZC.DS(f);H.O8="legenditem",H.K=f.K+"-item_"+X,H.GJ="zc-legend-item "+f.K+"-item",H.copy(M),f.A.E["plot"+X+".visible"]&&"off"!==g[X].o["legend-status"]||H.append(f.ZA.o),H.append(g[X].o["legend-item"]),H.KE=function(i){var t=i;if(null===ZC._n_(e)&&(e=0),g[X]&&g[X].R[e]){var n=ZC.AP.OQ(f.BR.o,g[X].o);i=g[X].FP(e).KE(i,n)}return f.XN=f.XN||i!==t,i},H.parse(),H.AM?("float"===f.NB?(x=ZC.BQ(x,M.F),null===ZC._n_(w)?(M.iX=f.iX+f.EP+M.DV+y*M.DK,M.iY=f.EJ+f.FJ+M.E5,I=f.EJ):(M.iX=w.iX+w.I+w.E6+M.DV+y*M.DK,ZC._i_(M.iX+M.I+M.E6)>ZC._i_(f.iX+f.I)&&(M.iX=f.iX+f.EP+M.DV+y*M.DK,I+=x+M.E5+M.DP,x=-ZC.MAX),M.iY=I+f.FJ+M.E5)):(M.iX=f.iX+(0===D?f.EP:0)+D*E+M.DV+y*M.DK,M.iY=f.EJ+f.FJ+F*K+M.E5,++D===B&&(D=0,F++)),w=M,H.iX=M.iX=ZC._i_(M.iX),H.iY=M.iY=ZC._i_(M.iY),H.Z=H.C6=f.Z,H.iX+=f.BJ,H.iY+=f.BH,X===f.N4&&(f.E["calculate-y"]&&(f.E["calculate-y"]=!1,f.E["dragged-offset-y"]=f.E["dragged-y"]-H.iY),H.iY=f.E["dragged-y"]-f.E["dragged-offset-y"]-H.DK/4),H.paint(),"undefined"!=typeof f.E.showhide&&null!==ZC._n_(f.E.showhide)||ZC.move||("canvas"!==f.A.A.AC?H.EL():f.XC.push(H))):Y++;var L=f.A2.E.type;null!==ZC._n_(i=g[X].o["legend-marker"])&&null!==ZC._n_(i.type)&&(L=i.type);var P=!1;"match"!==L&&"inherit"!==L||(P=!0,L=null!==ZC._n_(i=g[X].A2.o.type)?i:"default");var N;switch(-1!==ZC.AV(["default","square"],L)?N=new ZC.HS(f):(N=new ZC.DW(f)).DQ=L,N.O8="legendmarker",N.append(f.A2.o),f.A.E["plot"+X+".visible"]&&"off"!==g[X].o["legend-status"]||N.append(f.NJ.o),N.N8=g[X].N8,g[X].AF){case"pie":case"pie3d":case"nestedpie":case"vbar":case"vbar3d":case"hbar":case"hbar3d":case"vbullet":case"hbullet":case"area":case"area3d":case"gauge":case"vfunnel":case"hfunnel":case"venn":N.A0=g[X].A0,N.AE=g[X].AE,N.GQ=g[X].GQ,N.HJ=g[X].HJ;break;case"scatter":case"hscatter":case"bubble":case"hbubble":N.A0="-1"!==g[X].A2.A0?g[X].A2.A0:g[X].A0,N.AE="-1"!==g[X].A2.AE?g[X].A2.AE:g[X].AE,N.GQ=""!==g[X].A2.GQ?g[X].A2.GQ:g[X].GQ,N.HJ=""!==g[X].A2.HJ?g[X].A2.HJ:g[X].HJ;break;default:N.A0=g[X].B9,N.AE=g[X].B9}"line"!==N.DQ&&"area"!==N.DQ||(N.B9=N.A0,N.B0=2),P&&N.append(g[X].A2.o),N.o["line-style"]="solid",N.o.type=N.DQ,N.append(g[X].o["legend-marker"]),P&&(N.o.type=N.DQ),N.E["show-marker"]=!0,N.E["show-line"]=!1,null!==ZC._n_(i=N.o["show-line"])&&(N.E["show-line"]=ZC._b_(i)),null!==ZC._n_(i=H.o["show-line"])&&(N.E["show-line"]=ZC._b_(i)),null!==ZC._n_(i=H.o["show-marker"])&&(N.o.visible=ZC._b_(i)),-1!==ZC.AV(["default","square"],L)&&null!==ZC._n_(i=N.o.size)&&(null===ZC._n_(N.o.width)&&(N.o.width=2*ZC._i_(i)),null===ZC._n_(N.o.height)&&(N.o.height=2*ZC._i_(i))),N.K=f.K+"-marker_"+X,N.Z=N.C6=f.Z,N.iX=H.iX-y*H.DK+(y-1)*H.DK/2+H.DK/2,N.iY=H.iY+(H.F-H.DK)/2+H.DK/2,N.parse(),f.E["highlight-legend"]===o&&(N.append({size:N.AI+1,width:N.I+2,height:N.F+2}),g[X]&&g[X].R[e]&&g[X].R[e].GG&&N.append({A0:g[X].R[e].GG.A0,AE:g[X].R[e].GG.AE}),null!==ZC._n_(f.o.marker)&&N.append(f.o.marker["highlight-state"]),N.parse()),"line"===N.DQ?(N.o.points=[[N.iX-1.75*N.AI,N.iY],[N.iX+1.75*N.AI,N.iY]],N.parse()):"area"===N.DQ&&(N.o.points=[[N.iX-1.75*N.AI,N.iY+N.AI],[N.iX+1.75*N.AI,N.iY+N.AI],[N.iX+1*N.AI,N.iY-N.AI/2],[N.iX,N.iY],[N.iX-1.25*N.AI,N.iY-N.AI],[N.iX-1.75*N.AI,N.iY+N.AI]],N.parse());var O=N.iX+N.BJ,k=N.iY+N.BH;if(-1!==ZC.AV(["default","square"],L)&&(N.iX-=N.I/2,N.iY-=N.F/2),f.A.E["plot"+X+".visible"]&&"off"!==g[X].o["legend-status"]||(N.C5/=4),H.AM&&N.E["show-line"]){var Q=ZC.Q.E9(f.Z,f.A.H.AC),R=new ZC.D0(f);R.Z=f.Z,R.copy(g[X]),R.o["line-style"]=f.A2.G9,R.append(g[X].o),R.append(f.A2.o),R.append(g[X].o["legend-item"]),R.append(g[X].o["legend-marker"]),R.parse(),f.A.E["plot"+X+".visible"]||(R.C5=.25);var z=[],T=N.AM?2:1;s="box"===N.DQ?N.I/2:N.AI,z.push([O-T*s-(R.B0>1?1:0),k-(R.B0>1?.5:0)]),z.push([O+T*s,k-(R.B0>1?.5:0)]),R.CZ=!0,ZC.CS.paint(Q,R,z)}X===f.N4&&(N.iY=f.E["dragged-y"]-f.E["dragged-offset-y"]/2),N.AM&&H.AM&&N.paint(),f.PY.push(N);var G=!0;if(null!==ZC._n_(i=f.BR.o.toggle)&&(G=ZC._b_(i)),f.E["item.toggle"]=G,(H.AM||N.AM)&&-1===ZC.AV(f.A.H.KM,"skip_interactivity")){var S=N.BJ+("box"===N.DQ?N.iX+N.I/2:N.iX),J=N.BH+("box"===N.DQ?N.iY+N.F/2:N.iY);s="box"===N.DQ?N.I/2:N.AI,A="box"===N.DQ?N.F/2:N.AI;var V=(N.E["show-line"]?2:1)*s;ZC.AK(H.K+"-area")||(N.AM&&"disabled"!==f.PL&&"disabled"!==N.o["toggle-action"]&&(ZC.AK(N.K+"-area")||ZC.Q.HX({cls:f.K+"-marker-area zc-legend-marker-area zc-abs",id:N.K+"-area",wh:2*V+"/"+2*A,tl:J-A+"/"+(S-V),opacity:0,background:"#fff",cursor:N.IR,p:_,zidx:1})),H.AM&&"disabled"!==f.QX&&"disabled"!==H.o["toggle-action"]&&(ZC.AK(H.K+"-area")||ZC.Q.HX({cls:f.K+"-item-area zc-legend-item-area zc-abs",id:H.K+"-area",wh:H.I+"/"+H.F,tl:H.iY+H.BH+"/"+(H.iX+H.BJ),opacity:0,background:"#fff",cursor:H.IR,p:_,zidx:1})))}}if(f.DC&&!f.N7&&(f.DC.paint(),ZC.AK(f.K+"-scroll-c").style.display="block"),f.DC&&f.N7&&(ZC.AK(f.K+"-scroll-c").style.display="none"),f.D2.enabled&&!f.N7){var U=new ZC.DS(f);U.Z=U.C6=f.Z,U.K=f.K+"-page-status",U.AR=ZC.HI["legend-pagination"].replace("%page%",f.D2.page).replace("%pages%",f.D2.pages),U.append(f.o["page-status"]),U.parse(),f.I<U.I+48&&(U.AR=f.D2.page+"/"+f.D2.pages,U.parse()),U.iX=f.iX+f.I/2-U.I/2,U.iY=f.iY+f.F-(f.KI?f.KI.F:0)-U.F-4,U.AM&&U.paint();var W=f.A.H.B7,j="("+f.A.AF+")",q={"background-color":"#999"},$={"background-color":"#f90"};W.load(q,j+".legend.page-off"),W.load($,j+".legend.page-on"),(c=new ZC.DW(f)).Z=c.C6=f.Z,c.K=f.K+"-page-prev",c.A0=c.AE=f.D2.page>1?$["background-color"]:q["background-color"],c.append(f.D2.page>1?f.o["page-on"]:f.o["page-off"]),C=f.iX+f.I/2-U.I/2-6,u=U.iY+U.F/2,c.parse(),c.AI=ZC.BQ(c.AI,8),d=ZC._i_(.75*c.AI),c.D=[[C,u-d],[C,u+d],[C-c.AI,u],[C,u-d]],c.parse(),c.AM&&c.paint(),(Z=new ZC.DW(f)).Z=Z.C6=f.Z,Z.K=f.K+"-page-next",Z.A0=Z.AE=f.D2.page<f.D2.pages?$["background-color"]:q["background-color"],Z.append(f.D2.page<f.D2.pages?f.o["page-on"]:f.o["page-off"]),p=f.iX+f.I/2+U.I/2+6,h=U.iY+U.F/2,Z.parse(),Z.AI=ZC.BQ(Z.AI,8),d=ZC._i_(.75*Z.AI),Z.D=[[p,h-d],[p,h+d],[p+Z.AI,h],[p,h-d]],Z.parse(),Z.AM&&Z.paint()}if(!ZC.move){var ee=f.F,ie=f.iY;f.FN&&(ee-=f.FN.F,ie+=f.FN.F),ZC.AK(f.K+"-frame")?ZC.A4("#"+f.K+"-frame").css("top",ie+"px").css("left",f.iX+"px").css("width",f.I+"px").css("height",ee+"px"):ZC.Q.HX({cls:"zc-abs zc-legend-frame "+f.K+"-frame",id:f.K+"-frame",wh:f.I+"/"+ee,tl:ie+"/"+f.iX,opacity:0,background:"#fff",p:_,zidx:0}),f.D2.enabled&&!f.N7&&(f.D2.page>1&&ZC.Q.HX({cls:f.K+"-page-area zc-legend-page-area zc-abs",id:f.K+"-page-prev-area",wh:c.AI+"/"+2*c.AI,tl:ZC._i_(u+c.BH-c.AI)+"/"+ZC._i_(C+c.BJ-c.AI),opacity:0,p:_,zidx:1}),f.D2.page<f.D2.pages&&ZC.Q.HX({cls:f.K+"-page-area zc-legend-page-area zc-abs",id:f.K+"-page-next-area",wh:Z.AI+"/"+2*Z.AI,tl:ZC._i_(h+c.BH-Z.AI)+"/"+ZC._i_(p+Z.BJ),opacity:0,p:_,zidx:1}));var te,ne;f.FN&&f.V0&&("icon"===f.U5?(ne=ZC._i_(f.FN.iY+ZC.MAPTX+n.BH)+"/"+ZC._i_(f.FN.iX+f.FN.I-20+ZC.MAPTX+n.BJ),te="20/"+f.FN.F):(ne=ZC._i_(f.FN.iY+ZC.MAPTX)+"/"+ZC._i_(f.FN.iX+ZC.MAPTX),te=f.FN.I-(f.UK?23:0)+"/"+f.FN.F),ZC.Q.HX({cls:f.K+"-header-area zc-legend-header-area zc-abs",id:f.K+"-move-area",wh:te,tl:ne,opacity:0,p:_,zidx:1})),f.UK&&(f.V0&&"icon"===f.U5?(ne=ZC._i_(f.FN.iY+ZC.MAPTX+t.BH)+"/"+ZC._i_(f.FN.iX+f.FN.I-41+ZC.MAPTX+t.BJ),te="20/"+f.FN.F):(ne=ZC._i_(f.FN.iY+ZC.MAPTX+t.BH)+"/"+ZC._i_(f.FN.iX+f.FN.I-22+ZC.MAPTX+t.BJ),te="20/"+f.FN.F),ZC.Q.HX({cls:f.K+"-header-area zc-legend-header-area zc-abs",id:f.K+"-minimize-area",wh:te,tl:ne,opacity:0,p:_,zidx:1})),f.ON=0,f.ZW=0,f.zc_legend_mouseover=function(){f.YA=!0},f.zc_legend_mouseout=function(){f.YA=!1},f.YX=function(e){if(e.preventDefault(),f.H.hideCM(),ZC.move=!0,ZC.mobile||!(e.which>1)){f.A.A.E["graph-"+f.A.K+"-legend-info"]=null;var i=ZC.Q.M7(e),t=ZC.A4("#"+f.A.A.K+"-top").offset();f.ON=i[0]-t.left-f.FN.iX,f.ZW=i[1]-t.top-f.FN.iY,f.oldcursor=document.body.style.cursor,document.body.style.cursor="move",ZC.A4(document.body).bind(ZC.Q.C0("mousemove"),f.YZ),ZC.A4(document.body).bind(ZC.Q.C0("mouseup"),f.A0K)}},f.YZ=function(e){var i=ZC.Q.M7(e),t=ZC.A4("#"+f.A.A.K+"-top").offset(),n=i[0]-t.left-f.ON,a=i[1]-t.top-f.ZW;if(f.S3?(n=ZC.BQ(n,f.H.iX+2),n=ZC.CY(n,f.H.iX+f.H.I-f.I-2),a=ZC.BQ(a,f.H.iY+2),a=ZC.CY(a,f.H.iY+f.H.F-f.F-4)):(n=ZC.BQ(n,f.A.iX+2),n=ZC.CY(n,f.A.iX+f.A.I-f.I-2),a=ZC.BQ(a,f.A.iY+2),a=ZC.CY(a,f.A.iY+f.A.F-f.F-4)),f.S3||(n-=f.A.iX,a-=f.A.iY),f.o.x=n,f.o.y=a,f.o.position=null,f.clear(!0),f.parse(),f.paint(),f.FN){var l=f.S3?f.A.A:f.A;f.A.A.E["legend"+f.A.L+"-xy-ratio"]=[n/l.I,a/(l.F-f.FN.F)]}},f.A0K=function(){ZC.move=!1,document.body.style.cursor=f.oldcursor,delete f.oldcursor,ZC.A4(document.body).unbind(ZC.Q.C0("mousemove"),f.YZ),ZC.A4(document.body).unbind(ZC.Q.C0("mouseup"),f.A0K),f.XC=[],f.clear(!1),f.parse(),f.paint(),f.VW()},f.YC=function(e){f.E["default-width"]=null,-1!==(e.targetid||e.target.id).indexOf("-page-next-area")?(f.D2.min+=f.EE,f.D2.max+=f.EE,f.D2.page+=1):(f.D2.min-=f.EE,f.D2.max-=f.EE,f.D2.page-=1),(!(i=f.A.A.E["graph-"+f.A.K+"-legend-info"])||null===ZC._n_(i.x)&&null===ZC._n_(i.y))&&(f.iX=null,f.iY=null),f.VW(),f.A.K3()},f.XT=function(e){var i=f.N7?"legendmaximize":"legendminimize";e&&(f.A.A.E["legend-toggling"]=1),zingchart.exec(f.A.H.K,i,{graphid:f.A.L}),e&&(f.A.A.E["legend-toggling"]=0),e&&(f.A.A.E["g"+f.A.L+"-legend-collapsed"]="legendminimize"===i)},f.MH=function(e){ZC.move=!0;var i=ZC.Q.M7(e),t=ZC.A4("#"+f.A.A.K+"-top").offset(),n=i[0]-t.left,a=i[1]-t.top;f.E["dragged-x"]=n,f.E["dragged-y"]=a,f.VW(),f.clear(!1),f.parse(),f.paint()},f.VH=function(e){if(e.preventDefault(),f.H.hideCM(),f.IR=document.body.style.cursor,document.body.style.cursor="move",ZC.mobile||!(e.which>1)){var i=new RegExp("-legend-item_([0-9]+)-area","g").exec(e.target.id);i&&(f.E["dragged-offset-y"]=0,f.E["calculate-y"]=!0,f.E["dragged-x"]=0,f.E["dragged-y"]=0,f.N4=ZC._i_(i[1]),f.iDragPos=ZC.AV(f.A.AY.M0,f.N4),ZC.A4(document.body).bind(ZC.Q.C0("mousemove"),f.MH),ZC.A4(document.body).bind(ZC.Q.C0("mouseup"),f.X4))}},f.X4=function(){var e=f.N4,i=f.iDragPos;if(f.N4=-1,f.iDragPos=-1,f.E["calculate-y"]=!1,document.body.style.cursor=f.IR,ZC.move||(e=-1,i=-1),ZC.A4(document.body).unbind(ZC.Q.C0("mousemove"),f.MH),ZC.A4(document.body).unbind(ZC.Q.C0("mouseup"),f.X4),ZC.move&&-1!==e){for(var t=f.A.AY.A6,n=f.A.AY.M0,a=0,l=t.length;a<l;a++)t[a].o["legend-item"]=t[a].o["legend-item"]||{},null===ZC._n_(t[a].o["legend-item"].order)&&(t[a].o["legend-item"].order=ZC._i_(t[a].o["z-index"]||a+1));for(var o=t[e].o["legend-item"].order,r=-1,s=0,A=f.PY.length;s<A;s++)f.E["dragged-y"]-f.E["dragged-offset-y"]/2>f.PY[s].iY&&(r=s);for(t[e].o["legend-item"].order=-1===r?.5:t[n[r]].o["legend-item"].order+.5,s=0,A=f.PY.length;s<A;s++)r>i?t[s].o["legend-item"].order<t[e].o["legend-item"].order&&t[s].o["legend-item"].order>o&&t[s].o["legend-item"].order--:t[s].o["legend-item"].order>t[e].o["legend-item"].order&&t[s].o["legend-item"].order<o&&t[s].o["legend-item"].order++;for(t[e].o["legend-item"].order=r>i?Math.floor(t[e].o["legend-item"].order):Math.ceil(t[e].o["legend-item"].order),s=0,A=f.PY.length;s<A;s++)f.A.o.series[s]["z-index"]=t[s].o["legend-item"].order}f.A.AY.E["plot-sort"]=!0,ZC.move=!1,f.clear(!1),f.A.K3()},ZC.A4("#"+f.K+"-frame").live(ZC.Q.C0("mouseover"),f.zc_legend_mouseover).live(ZC.Q.C0("mouseout"),f.zc_legend_mouseout),ZC.A4("#"+f.K+"-move-area").live(ZC.Q.C0("mousedown"),f.YX),ZC.A4("#"+f.K+"-minimize-area").live(ZC.Q.C0("click"),f.XT),ZC.A4("."+f.K+"-page-area").live(ZC.Q.C0("click"),f.YC),f.BR.o.reorder&&ZC.A4("."+f.A.K+"-legend-item-area").live("mousedown",f.VH)}f.E.showhide=null,1===f.A.A.E["legend-toggling"]||ZC.move||(f.LX&&null===ZC._n_(f.A.A.E["g"+f.A.L+"-legend-collapsed"])||f.A.A.E["g"+f.A.L+"-legend-collapsed"]&&!f.N7)&&(window.setTimeout(function(){f.XT(!0)},0),f.A.A.E["g"+f.A.L+"-legend-collapsed"]=!0)}},gc:function(){ZC.AP.gc(this,["B6","D","PY","Z","C6","o","J5","I0","KI","FN","BR","ZA","H","A","A2","NJ","D2"])}}),ZC.AC6=ZC.DW.C7({$i:function(e){this.b(e);var i=this;i.MS=null,i.BB=null,i.M=null,i.JN=0,i.BE=null,i.GB="bottom",i.KY=40,i.A2Z=[2,4]},parse:function(){var e,i=this;if(i.assign_a([["z-index","JN","i"],["length","KY","i"],["aspect","A2Z"],["direction","GB"]]),null===ZC._n_(i.o.from)&&null===ZC._n_(i.o.to)&&null!==ZC._n_(i.o.x)&&null!==ZC._n_(i.o.y)&&null!==ZC._n_(i.o.length)&&null!==ZC._n_(i.o.angle)){var t,n;t="string"==typeof i.o.x?i.A.UV(i.o.x)[0]:ZC._i_(i.o.x),n="string"==typeof i.o.y?i.A.UV(i.o.y)[1]:ZC._i_(i.o.y),i.o.from={x:t+i.KY*ZC.EO(i.AA+180),y:n+i.KY*ZC.EF(i.AA+180)},i.o.to={x:t+i.KY*ZC.EO(i.AA),y:n+i.KY*ZC.EF(i.AA)}}null!==ZC._n_(e=i.o.from)&&(i.MS=new ZC.DW(i.A),i.MS.append(e),null!==e.hook&&(i.MS.E.hook=e.hook),i.MS.parse(),"string"==typeof e&&(i.MS.E.hook=e)),null!==ZC._n_(e=i.o.to)&&(i.BB=new ZC.DW(i.A),i.BB.append(e),null!==e.hook&&(i.BB.E.hook=e.hook),i.BB.parse(),"string"==typeof e&&(i.BB.E.hook=e)),(null!==ZC._n_(e=i.o.label)||""!==i.o.text&&"undefined"!=typeof i.o.text)&&(i.M=new ZC.DS(i),i.M.append(i.o),i.M.append(e),i.M.parse()),i.b()},paint:function(){var e,i,t=this;if(t.AM&&(null!==t.MS||null!==t.BB))if(t.AI<1&&(t.AI=1),!t.MS||null===ZC._n_(e=t.MS.E.hook)||(i=t.A.UV(e),t.MS.iX=i[0],t.MS.iY=i[1],t.MS.iX+=t.MS.BJ,t.MS.iY+=t.MS.BH,ZC.DT(t.MS.iX,t.A.P.iX-2,t.A.P.iX+t.A.P.I+2)&&ZC.DT(t.MS.iY,t.A.P.iY-2,t.A.P.iY+t.A.P.F+2)))if(!t.BB||null===ZC._n_(e=t.BB.E.hook)||(i=t.A.UV(e),t.BB.iX=i[0],t.BB.iY=i[1],t.BB.iX+=t.BB.BJ,t.BB.iY+=t.BB.BH,ZC.DT(t.BB.iX,t.A.P.iX-2,t.A.P.iX+t.A.P.I+2)&&ZC.DT(t.BB.iY,t.A.P.iY-2,t.A.P.iY+t.A.P.F+2))){var n,a;if(t.MS&&t.BB)n=[t.MS.iX,t.MS.iY],a=[t.BB.iX,t.BB.iY];else if(t.MS&&!t.BB)switch(n=[t.MS.iX,t.MS.iY],t.GB){case"top":a=[t.MS.iX,t.MS.iY+t.KY];break;case"right":a=[t.MS.iX+t.KY,t.MS.iY];break;case"bottom":a=[t.MS.iX,t.MS.iY-t.KY];break;case"left":a=[t.MS.iX-t.KY,t.MS.iY]}else if(!t.MS&&t.BB)switch(a=[t.BB.iX,t.BB.iY],t.GB){case"top":n=[t.BB.iX,t.BB.iY+t.KY];break;case"right":n=[t.BB.iX-t.KY,t.BB.iY];break;case"bottom":n=[t.BB.iX,t.BB.iY-t.KY];break;case"left":n=[t.BB.iX+t.KY,t.BB.iY]}var l,o=a[0]-n[0],r=a[1]-n[1],s=ZC.TO(Math.atan2(r,o)),A=Math.sqrt(o*o+r*r),C=[];if(C.push(n),l=ZC.AO.BK(n[0],n[1],t.AI/2,s+90),C.push(l),l=ZC.AO.BK(l[0],l[1],A-t.A2Z[1]*t.AI/2,s),C.push(l),l=ZC.AO.BK(l[0],l[1],t.A2Z[0]*t.AI/2,s+90),C.push(l),C.push(a),l=ZC.AO.BK(l[0],l[1],(2*t.A2Z[0]+2)*t.AI/2,s-90),C.push(l),l=ZC.AO.BK(l[0],l[1],t.A2Z[0]*t.AI/2,s+90),C.push(l),l=ZC.AO.BK(n[0],n[1],t.AI/2,s-90),C.push(l),C.push(n),t.BE=new ZC.DW(t.A),t.BE.K=t.K,t.BE.Z=t.BE.C6=t.Z,t.BE.copy(t),t.BE.D=C,t.BE.CZ=!1,t.BE.parse(),t.BE.paint(),null!==t.M&&t.M.AM){t.M.Z=t.Z,t.M.K=t.A.K+"-arrow-label-"+t.H2,t.M.GJ=t.A.K+"-arrow-label zc-arrow-label";var c=ZC.AO.JO(n[0],n[1],a[0],a[1]);t.M.iX=c[0],t.M.iY=c[1],t.M.BJ-=t.M.I/2,t.M.BH-=t.M.F/2,null!==ZC._n_(t.M.o["font-angle"])&&"inherit"===t.M.o["font-angle"]&&(t.M.AA=s),t.M.paint(),t.M.EL()}}else t.AM=!1;else t.AM=!1}}),ZC.K1=ZC.C8.C7({$i:function(e){var i=this;i.H=e,i.S4=!1,i.C3=null,i.YL=null,i.Q6=null,i.zc_guide_touchend=null},unbind:function(){var e=this;e.C3&&window.clearInterval(e.C3),e.YL&&window.clearInterval(e.YL),ZC.A4(document.body).unbind("mousemove touchstart touchmove",e.Q6),ZC.A4(document.body).unbind("touchend",e.zc_guide_touchend)},bind:function(){function e(){!c&&u&&(u.E["guide-active-plot"]=null),ZC.K1.GUIDES&&ZC.K1.GUIDES[n]&&!ZC.K1.GUIDES[n].blocked&&ZC.K1.clearGuide(n),c=null}var i,t=this,n=t.H.K,a=ZC.AK(n+"-guide-c"),l=ZC.Q.E9(a,t.H.AC),o={},r={},s={},A={},C=null,c=null,u=null;ZC.mobile||null!==ZC._n_(ZC.YL)||(t.YL=window.setInterval(function(){for(var i=!0,a=0,l=zingchart.HU.length;a<l;a++)if(n===zingchart.HU[a].K)if(ZC.AK(zingchart.HU[a].K+"-top")){var o=ZC._tx_(n),r=ZC.A4("#"+zingchart.HU[a].K+"-top").offset();ZC.DX[0]>=r.left&&ZC.DX[0]<=r.left+zingchart.HU[a].I*o[0]&&ZC.DX[1]>=r.top&&ZC.DX[1]<=r.top+zingchart.HU[a].F*o[1]&&(i=!1)}else window.clearInterval(t.YL);i&&(e(),ZC.K1.GUIDES&&ZC.K1.GUIDES[n]&&ZC.K1.GUIDES[n].active&&(ZC.AP.BZ("guide_mouseout",t.H,t.H.FH()),ZC.K1.GUIDES[n].active=!1))},500)),t.Q6=function(p){if(zingchart.GUIDE_EV=p,!p.target.id||-1===p.target.id.indexOf("-menu-item-")){var Z,h,d,f,_,g,v,b,m,B,E,K,F,D,X,I,x,y,w,Y,M,H,L,P,N;ZC.MAX,ZC.MAX;for(Z=0;Z<zingchart.HU.length;Z++)if(zingchart.HU[Z].K!==t.H.K&&-1!==zingchart.HU[Z].K.indexOf("-fullscreen"))return;if((ZC.ie67||"mousemove"!==p.type||!ZC.TOUCHEVENTS)&&-1!==p.target.id.indexOf(t.H.K+"-")&&(!ZC.move||ZC.mobile)){if(t.H.ZM||!ZC.AK(n+"-top"))return!1;if(!ZC.Q.AAW(ZC.AK(n+"-top")))return!1;var O=[],k=ZC.Q.M7(p),Q=k[0],R=k[1];if(null!==ZC._n_(p._pageX_)&&(Q=p._pageX_),null!==ZC._n_(p._pageY_)&&(R=p._pageY_),null===ZC._n_(p._pageX_)&&null===ZC._n_(p._pageY_)){var z=ZC.A4("#"+n+"-top").offset();d=Q-z.left,f=R-z.top}else d=Q,f=R;var T=ZC._tx_(t.H.K);for(d/=T[0],f/=T[1],Z=0,h=t.H.AH.length;Z<h;Z++)_=t.H.AH[Z].P,ZC.DT(d,_.iX-15,_.iX+_.I+15)&&ZC.DT(f,_.iY-15,_.iY+_.F+15)&&(c=t.H.AH[Z]),ZC.DT(d,t.H.AH[Z].iX,t.H.AH[Z].iX+t.H.AH[Z].I)&&ZC.DT(f,t.H.AH[Z].iY,t.H.AH[Z].iY+t.H.AH[Z].F)&&(C=t.H.AH[Z]);var G=null,S=!1;if(c){if(ZC.K1.GUIDES=ZC.K1.GUIDES||{},ZC.K1.GUIDES[n]=ZC.K1.GUIDES[n]||{},p.fromAPI||(ZC.K1.GUIDES[n].blocked=!1,ZC.K1.GUIDES[n].active=!0),u=c,c.CX&&"hover"===c.CX.o.trigger){null!==ZC._n_(c.E["guide-active-plot"])&&(G=c.E["guide-active-plot"]);var J=/(.+)-plotset-plot-(.+)-node-(.+)/.exec(p.target.id);if(J&&J.length&&(G=parseInt(J[2],10),c.E["guide-active-plot"]=G),null===ZC._n_(G))return}if(!c.A1G)return void e();for(O.push(c),c&&c.CX&&(S=null!==ZC._n_(c.CX.o.shared)&&ZC._b_(c.CX.o.shared)),Z=0,h=t.H.AH.length;Z<h;Z++)if(t.H.AH[Z]!==c){_=t.H.AH[Z].P;var V=t.H.AH[Z].CX,U=t.H.AH[Z].H7,W=V&&null!==ZC._n_(V.o.shared)&&ZC._b_(V.o.shared);W&&("xy"===c.AJ.layout&&"xy"===t.H.AH[Z].AJ.layout&&(V||U)&&ZC.DT(d,_.iX-5,_.iX+_.I+5)&&(ZC.DT(f,_.iY-5,_.iY+_.F+5)||S&&W)||"yx"===c.AJ.layout&&"yx"===t.H.AH[Z].AJ.layout&&(V||U)&&ZC.DT(f,_.iY-5,_.iY+_.F+5)&&(ZC.DT(d,_.iX-5,_.iX+_.I+5)||S&&W))&&O.push(t.H.AH[Z])}}else if(ZC.K1.GUIDES)for(var j in ZC.K1.GUIDES)if(ZC.K1.GUIDES[j]&&ZC.K1.GUIDES[j].active){var q=zingchart.getLoader(j);L=q.FH(),ZC.AP.BZ("guide_mouseout",q,L),ZC.K1.GUIDES[j].active=!1}if(0===O.length&&(o={},r={},s={},t.S4&&(null===ZC._n_(p._pageX_)&&e(),t.S4=!1),u&&u.A.A8&&C&&C.K!==u.K&&u.A.A8.hide()),O.length>0){t.S4=!0;for(var $=!1,ee=0,ie=O.length;ee<ie;ee++){var te=!1;if(null===ZC._n_(o[ee])&&(o[ee]={}),null===ZC._n_(r[ee])&&(r[ee]={}),null===ZC._n_(s[ee])&&(s[ee]={}),(O[ee].CX||O[ee].H7)&&"ready"===O[ee].M9){var ne,ae=[],le=[],oe=[],re=!1,se="",Ae=[],Ce=[],ce=[],ue=[],pe={},Ze={},he=[];_=O[ee].P;var de=O[ee].CX&&null!==ZC._n_(O[ee].CX.o.exact)&&ZC._b_(O[ee].CX.o.exact),fe=-1;O[ee].CX&&(fe=ZC._i_(ZC._c_(O[ee].CX.o.tolerance||-1))),ZC.MAX,ZC.MAX;var _e=!0,ge=[],ve="";O[ee].CX&&(null!==ZC._n_(O[ee].CX.o["plot-label"])&&ZC._n_(null!==(i=O[ee].CX.o["plot-label"].multiple))&&(_e=ZC._b_(i)),null!==ZC._n_(O[ee].CX.o["value-label"])&&ZC._n_(null!==(i=O[ee].CX.o["value-label"].multiple))&&(_e=ZC._b_(i)));var be,me,Be={};for(Y=0,M=O[ee].AY.A6.length;Y<M;Y++)if(!O[ee].AY.A6[Y].LJ&&(Z=Y,O[ee].CX&&O[ee].CX.o["reverse-series"]&&(Z=M-Y-1),O[ee].E["plot"+Z+".visible"])){if(null!==ZC._n_(G)&&Z!==G)continue;if(!(be=O[ee].BN(O[ee].AY.A6[Z].BT("k")[0])))continue;if(be.CQ){var Ee=be.AU?be.iY+be.BW:be.iY+be.A5,Ke=be.AU?be.iY+be.F-be.BW:be.iY+be.F-be.A5;f=ZC._l_(f,Ee,Ke),g=be.ED&&O[ee].AY.A6[Z].ED?be.O9(f,O[ee].AY.A6[Z]):be.O9(f)}else{var Fe=be.AU?be.iX+be.BW:be.iX+be.A5,De=be.AU?be.iX+be.I-be.A5:be.iX+be.I-be.BW;d=ZC._l_(d,Fe,De),g=be.ED&&O[ee].AY.A6[Z].ED?be.O9(d,O[ee].AY.A6[Z]):be.O9(d)}if(null===ZC._n_(g))continue;var Xe=[];if(Xe="undefined"==typeof g.length||0===g.length?[g]:g,O[ee].CX){for(var Ie=0,xe=Xe.length;Ie<xe;Ie++)if(g=Xe[Ie],v=O[ee].AY.A6[Z].FP(g)){ne=v,v.setup(),v.N?(ZC.COLORS=[v.N.C1,v.N.A0,v.N.AE,v.N.BV,v.N.B9],v.N3&&ZC.COLORS.push(v.N3.A0,v.N3.AE,v.N3.BV,v.N3.B9)):ZC.COLORS=[],v.A.IP&&"undefined"!=typeof v.E.A5C&&v.paint(!0),D=v.iX,X=v.iY,"undefined"!=typeof v.E.A5C&&(D=parseInt(v.E.A5C,10)),"undefined"!=typeof v.E.A7O&&(X=parseInt(v.E.A7O,10)),K=D,F=X,pe[Z]={index:g,y:X},O[ee].BF&&O[ee].BF.XN&&(O[ee].BF.clear(!0),O[ee].BF.parse(),O[ee].BF.paint(g)),(b=new ZC.DS(be)).Z=b.C6=a,b.K=O[ee].K+"-guide-label-"+g+"-"+Z,b.GJ=O[ee].A.K+"-guide-label "+O[ee].K+"-guide-label zc-guide-label",_e&&(w=v.A7U(),b.AR=v.A.JV),_e?b.append(O[ee].CX.o["plot-label[multiple]"]):b.append(O[ee].CX.o["plot-label[single]"]),b.append(O[ee].CX.o["plot-label"]),b.append(O[ee].CX.o["value-label"]),b.append(O[ee].AY.A6[Z].o["guide-label"]),E=ZC.AP.OQ(b.o,O[ee].AY.A6[Z].o),b.KE=function(e){return v?v.KE(e,E):e},v.AAO();var ye="auto";if(null!==ZC._n_(i=b.o.placement)&&(ye=i),b.E.placement=ye,b.KP=_e,b.E.plotidx=v.A.L,b.E.nodeidx=v.L,b.parse(),H=null!==ZC._n_(b.o.distance)?ZC._i_(b.o.distance):6,b.E7&&b.E7.length&&(b.JE=function(e){return e=v?v.KE(e,E):e.replace(/(%i)|(%node-index)/g,g)},b.DE()&&b.parse()),b.HT&&v&&(b.GZ(b,b,null,v.LQ(null,!1),b.N2),b.parse()),ZC.DT(v.iX,_.iX-.5,_.iX+_.I+.5)){switch(_e||(0===le.length&&(null===ZC._n_(b.o["header-text"])||re||(re=!0,ve+=v.KE(b.o["header-text"],E)+"<br>"),null!==ZC._n_(b.o["footer-text"])&&""===se&&(se=v.KE(b.o["footer-text"],E)+"<br>")),b.AM&&""!==b.AR&&(ZC._b_(b.o["single-text"])?ge.push(v.KE(b.AR,E)):ge.push(v.KE(b.AR,E)+"<br>"))),b.E.pos=le.length,b.E["node-value"]=v.AD,b.E["marker-x"]=D,b.E["marker-y"]=X,b.E["guide-style"]=v.A7U(),ye){default:null===ZC._n_(b.o.x)?be.CQ?v.iY<=_.iY+_.F/2?(b.iY=X-b.F-H,b.ES="bottom"):(b.iY=X+H,b.ES="top"):v.iX>=_.iX+_.I/2?(b.iX=D-b.I-H,b.ES="right"):(b.iX=D+H,b.ES="left"):b.iX-=_.iX,null===ZC._n_(b.o.y)?be.CQ?(b.iX=D-b.I/2,b.iX<_.iX&&(b.iX=_.iX),b.iX+b.I>_.iX+_.I&&(b.iX=_.iX+_.I-b.I)):(b.iY=X-b.F/2,b.iY<_.iY&&(b.iY=_.iY),b.iY+b.F>_.iY+_.F&&(b.iY=_.iY+_.F-b.F)):b.iY-=_.iY,b.DM=[D,X];break;case"left":b.iX=D-b.I-H,b.iY=X-b.F/2,b.DM=[D,X];break;case"right":b.iX=D+H,b.iY=X-b.F/2,b.DM=[D,X];break;case"top":be.CQ?(b.iX=_.iX+_.I-b.I,b.iY=X-b.F/2,b.ES="left",b.DM=[_.iX+_.I-b.I-H,X]):(b.iX=D-b.I/2,b.iY=_.iY,b.ES="bottom",b.DM=[D,b.iY+b.F+H]);break;case"node-top":be.CQ?(b.iX=D+2*H,b.iY=X-b.F/2,b.ES="left",b.DM=[D+H,X]):(b.iX=D-b.I/2,b.iY=X-b.F-2*H,b.ES="bottom",b.DM=[D,X-H]);break;case"bottom":be.CQ?(b.iX=_.iX,b.iY=X-b.F/2,b.ES="right",b.DM=[_.iX+b.I+H,X]):(b.iX=D-b.I/2,b.iY=_.iY+_.F-b.F,b.ES="top",b.DM=[D,b.iY-H])}ae.push({plotindex:v.A.L,nodeindex:v.L,keyvalue:v.BU||be.X[v.L],value:v.AD,text:b.AR,x:b.iX,y:b.iY,refx:D,refy:X}),-1===ZC.AV(oe,b.AR)&&(A[b]=v,oe.push(b.AR)),be.CQ?b.E.diff=de||-1!==fe?ZC._a_(X-f):-1:b.E.diff=de||-1!==fe?ZC._a_(D-d):-1,b.AM&&le.push(b),r[ee][Z]=b,te=!0}}if(!v)continue}var we,Ye,Me,He,Le,Pe,Ne,Oe;if(O[ee].CX&&ZC.DT(v.iX,_.iX-1,_.iX+_.I+1)){if(B=new ZC.DS(be),B.Z=B.C6=a,B.K=O[ee].K+"-guide-scale-x-label-"+Z,B.GJ=O[ee].A.K+"-guide-label "+O[ee].K+"-guide-label zc-guide-label",B.A0=B.AE=be.B9,B.C1=O[ee].AJ["3d"]?"#999":"#fff",B.append(O[ee].CX.o["scale-label"]),B.append(O[ee].CX.o[be.BC+"-label"]),B.append(O[ee].AY.A6[Z].o["scale-label"]),B.KP=!0,B.E.nodeidx=v.L,E=ZC.AP.OQ(B.o),null===ZC._n_(E.decimals)){Se=Math.floor(ZC.H0(null!==v.BU?v.BU:v.L,10));E.decimals=Se<0?1-Se:0}if(B.KE=function(e){e=be.KE(e,g,be.ED&&O[ee].AY.A6[Z].ED?O[ee].AY.A6[Z]:null,E,!0);var i=O[ee].AY.A6[Z].KB;if(v&&i)for(var t in i){var n;n=i[t]instanceof Array?ZC._c_(i[t][v.L],""):ZC._c_(i[t],""),e=e.replace("%data-"+t,n,"g")}return e},B.parse(),H=null!==ZC._n_(B.o.distance)?ZC._i_(B.o.distance):6,B.E7&&B.E7.length&&(B.JE=function(e){return e=v?v.KE(e,E):e.replace(/(%i)|(%node-index)/g,g)},B.DE()&&B.parse()),B.HT&&v&&(B.GZ(B,B,null,v.LQ(null,!1),B.N2),B.parse()),Ze[be.BC]=B.AR,we=ZC._b_(B.o["callout-position"]),Ye=B.o.x,Me=B.o.y,"opposite"!==be.B8?be.CQ?(He="right",Pe=be.E.iX-B.I-H,Le=[be.E.iX,F],Ne=F-B.F/2):(He="top",Pe=K-B.I/2,Le=[K,be.E.iY],Ne=be.E.iY+H):be.CQ?(He="left",Pe=be.E.iX+H,Le=[be.E.iX,F],Ne=F-B.F/2):(He="bottom",Pe=K-B.I/2,Le=[K,be.E.iY],Ne=be.E.iY-B.F-H),we||(B.ES=He),Ye||(B.iX=Pe),we||Ye||Me||(B.DM=Le),Me||(B.iY=Ne),B.AM&&be.AM&&""!==B.AR){var ke=!1;if(he.length)for(var Qe=0;Qe<he.length;Qe++)B.AR+"@"+be.BC===he[Qe]&&(ke=!0);ke||(he.push(B.AR+"@"+be.BC),be.CQ?B.E.diff=de||-1!==fe?ZC._a_(F-f):-1:B.E.diff=de||-1!==fe?ZC._a_(K-d):-1,ce.push(B)),ue.push(be.BC),s[ee][Z]=B,te=!0}-1!==String(O[ee].CX.o["line-width"]).indexOf("%")&&(Oe=ZC.IG(O[ee].CX.o["line-width"]))>0&&Oe<=1&&(O[ee].CX.B0=ZC._i_(Oe*be.A9)),be.CQ?Ae.push([de||-1!==fe?ZC._a_(F-f):-1,[null,[be.E.iX,F],[O[ee].P.iX+("opposite"===be.B8?0:O[ee].P.I),F]]]):Ae.push([de||-1!==fe?ZC._a_(K-d):-1,[null,[K,be.E.iY],[K,O[ee].P.iY+("opposite"===be.B8?O[ee].P.F:0)]]])}if(me=O[ee].BN(O[ee].AY.A6[Z].BT("v")[0]),-1===ZC.AV(ue,me.BC)&&O[ee].H7&&("xy"===O[ee].AJ.layout&&ZC.DT(f,me.iY,me.iY+me.F)||"yx"===O[ee].AJ.layout&&ZC.DT(f,me.iX,me.iX+me.I))){var Re="single";O[ee].H7.o.type&&"multiple"===O[ee].H7.o.type&&(Re="multiple"),"multiple"===Re&&null!==ZC._n_(pe[Z])&&(me.CQ?d=pe[Z].x:f=pe[Z].y),(B=new ZC.DS(me)).Z=B.C6=a,B.K=O[ee].K+"-guide-scale-y-label-"+Z,B.GJ=O[ee].A.K+"-guide-label "+O[ee].K+"-guide-label zc-guide-label";var ze=me.B9;"multiple"===Re&&(ze=O[ee].AY.A6[Z].B9),B.A0=B.AE=ze,B.C1=O[ee].AJ["3d"]&&"multiple"!==Re?"#999":"#fff",B.append(O[ee].H7.o["scale-label"]),B.append(O[ee].H7.o[me.BC+"-label"]),B.KP=!0;var Te=me.CQ?me.NA(d,!0):me.NA(f,!0),Ge=Te;if(E=me.ML(),ZC._cp_(ZC.AP.OQ(B.o,me.o),E),null===ZC._n_(E.decimals)){var Se=Math.floor(ZC.H0(Te,10));E.decimals=Se<=0?1-Se:0}Te=me.FO(0,Te,E),B.o.text=Te,B.parse(),H=null!==ZC._n_(B.o.distance)?ZC._i_(B.o.distance):6,B.E7&&B.E7.length&&(B.JE=function(e){return e=e.replace(/(%v)|(%scale-value)/g,Ge).replace(/(%t)|(%scale-text)/g,Te).replace(/(%coord)/,me.CQ?d:f)},B.DE()&&B.parse()),B.HT&&v&&(Be={value:Ge,text:Te,coord:me.CQ?d:f},B.GZ(B,B,null,Be,B.N2),B.parse()),Ze[me.BC]=B.AR,we=ZC._b_(B.o["callout-position"]),Ye=B.o.x,Me=B.o.y,"opposite"!==me.B8?me.CQ?(He="top",Pe=d-B.I/2,Ne=me.E.iY+H,Le=[d,me.E.iY]):(He="right",Pe=me.E.iX-B.I-H,Ne=f-B.F/2,Le=[me.E.iX,f]):me.CQ?(He="bottom",Pe=d-B.I/2,Ne=me.E.iY-B.F-H,Le=[d,me.E.iY]):(He="left",Pe=me.E.iX+H,Ne=f-B.F/2,Le=[me.E.iX,f]),we||(B.ES=He),Ye||(B.iX=Pe),we||Ye||Me||(B.DM=Le),Me||(B.iY=Ne),B.AM&&me.AM&&(B.E.diff=-1,ce.push(B),"multiple"===Re&&null!==ZC._n_(pe[Z])||ue.push(me.BC),s[ee][Z]=B,te=!0),-1!==String(O[ee].H7.o["line-width"]).indexOf("%")&&(Oe=ZC.IG(O[ee].H7.o["line-width"]))>0&&Oe<=1&&(O[ee].H7.B0=ZC._i_(Oe*me.A9)),me.CQ?Ce.push(null,[d,me.E.iY],[d,O[ee].P.iY+("opposite"===me.B8?O[ee].P.F:0)]):Ce.push(null,[me.E.iX,f],[O[ee].P.iX+("opposite"===me.B8?0:O[ee].P.I),f])}}if(!de&&ce.length>1)for(var Je=ce[ce.length-1],Ve=ZC._i_((Je.FJ+Je.FR+Je.EP+Je.FK)/4),Ue=ce.length-1;Ue>=0;Ue--)for(var We=Ue;We>=0;We--)Ue!==We&&ZC.AO._boxoverlap2_(ce[Ue],ce[We],-Ve)&&(ce[We].C5=.3,ce[We].UX=.1);for(m=ZC.MAX,Z=0,h=le.length;Z<h;Z++)le[Z].E.diff>=0&&(m=ZC.CY(le[Z].E.diff,m));-1!==fe&&(m=ZC.BQ(m,fe));var je=!1,qe=1,$e=!1;le[0]&&($e=ZC._b_(le[0].o["single-text"]),le[0].o["table-columns"]&&ZC._b_(le[0].o["html-mode"])&&(je=!0,qe=ZC._i_(le[0].o["table-columns"]||"1"),ve+='<table class="zc-guide-label-table '+t.H.K+'-guide-label-table">')),!_e&&le.length>0&&("asc"!==le[0].o["sort-by-value"]&&"desc"!==le[0].o["sort-by-value"]||le.sort(function(e,i){return(e.E["node-value"]-i.E["node-value"])*("asc"===le[0].o["sort-by-value"]?1:-1)}));var ei=0;for(P=0,N=le.length;P<N&&(!(-1===le[P].E.diff||le[P].E.diff<=m)||(je?(ei%qe==0&&(ve+="<tr>"),ve+="<td>"+ge[P]+"</td>",ei%qe==qe-1&&(ve+="</tr>"),ei++):ve+=ge[le[P].E.pos],je||!$e));P++);if(je&&(ei%qe!=qe-1&&(ve+="</tr>"),ve+="</table>"),""!==se&&(ve+=se),!_e&&le.length>0&&(d=D=K,f=X=F,""!==ve&&(le[0].o.text=je||$e?ve:ve.substring(0,ve.length-4),le[0].parse()),H=null!==ZC._n_(b.o.distance)?ZC._i_(b.o.distance):6,null===ZC._n_(b.o.x)?be.CQ?d<O[ee].iX+O[ee].I/2?le[0].iX=d+H+14:le[0].iX=d-le[0].I-H-14:ne&&ne.iX>=_.iX+_.I/2?le[0].iX=D-le[0].I-H:le[0].iX=D+H:le[0].iX-=_.iX,null===ZC._n_(b.o.y)?be.CQ?ne&&ne.iY>=_.iY+_.F/2?le[0].iY=X-le[0].F-H:le[0].iY=X+H:f<O[ee].iY+O[ee].F/2?le[0].iY=f+H+14:le[0].iY=f-le[0].F-H-14:le[0].iY-=_.iY),te){var ii=-1,ti=-1;if($||(null===ZC._n_(p._pageX_)&&e(),$=!0),Ae.length>0){var ni=[];for(m=ZC.MAX,I=0,x=Ae.length;I<x;I++)Ae[I][0]>=0&&(m=ZC.CY(Ae[I][0],m));for(-1!==fe&&(m=ZC.BQ(m,fe)),I=0,x=Ae.length;I<x;I++)null!==ZC._n_(Ae[I])&&(-1===Ae[I][0]||Ae[I][0]<=m)&&(O[ee].CX&&O[ee].CX.o["single-line"]&&ZC._b_(O[ee].CX.o["single-line"])?(ni=[].concat(Ae[I][1]),"xy"===O[ee].AJ.layout?ii=ZC._x_(Ae[I][1][1][0]):"yx"===O[ee].AJ.layout&&(ti=ZC._x_(Ae[I][1][1][1]))):ni=ni.concat(Ae[I][1]));if(O[ee].CX.o.mask){var ai=-1;ni.length>1&&ni[1]&&(ai=ni[1][0]||-1),O[ee].CX.oMask||(O[ee].CX.oMask=new ZC.HS(O[ee]),O[ee].CX.oMask.append({"background-color":"#fff",alpha:.85}),O[ee].CX.oMask.append(O[ee].CX.o.mask),O[ee].CX.oMask.Z=a,O[ee].CX.oMask.parse()),O[ee].CX.oMask.iX=ai,O[ee].CX.oMask.iY=O[ee].P.iY,O[ee].CX.oMask.I=Math.max(2,O[ee].P.iX+O[ee].P.I-ai+2),O[ee].CX.oMask.F=O[ee].P.F,O[ee].CX.oMask.paint()}if(O[ee].AJ["3d"])for(O[ee].NW(),I=0,x=ni.length;I<x;I++)ni[I]&&(y=new ZC.CF(O[ee],ni[I][0]-ZC.AN.E3,ni[I][1]-ZC.AN.E2,0),ni[I][0]=y.EB[0],ni[I][1]=y.EB[1]);O[ee].CX.K=O[ee].K+"-crosshair-x",O[ee].CX.HT&&v&&(O[ee].CX.GZ(O[ee].CX,O[ee].CX,null,v.LQ(null,!1),O[ee].CX.N2),O[ee].CX.parse()),O[ee].CX.AM&&ZC.CS.paint(l,O[ee].CX,ni)}if(Ce.length>0){if(O[ee].AJ["3d"])for(O[ee].NW(),I=0,x=Ce.length;I<x;I++)null!==ZC._n_(Ce[I])&&(y=new ZC.CF(O[ee],Ce[I][0]-ZC.AN.E3,Ce[I][1]-ZC.AN.E2,0),Ce[I][0]=y.EB[0],Ce[I][1]=y.EB[1]);O[ee].H7.HT&&v&&(O[ee].H7.GZ(O[ee].H7,O[ee].H7,null,Be,O[ee].H7.N2),O[ee].H7.parse()),O[ee].H7.AM&&ZC.CS.paint(l,O[ee].H7,Ce)}if(_e){for(Z=le.length-1;Z>=0;Z--)ZC.DT(le[Z].DM[0],_.iX-5,_.iX+_.I+5)&&ZC.DT(le[Z].DM[1],_.iY-5,_.iY+_.F+5)||le.splice(Z,1);if(le.length>1)for(var li=!0;li;)for(li=!1,Z=0;Z<le.length-1;Z++)if(le[Z].AM&&(me.CQ&&le[Z].iX>le[Z+1].iX||!me.CQ&&le[Z].iY>le[Z+1].iY)){var oi=le[Z];le[Z]=le[Z+1],le[Z+1]=oi,li=!0}if(le.length>0){var ri=[],si=[];for(Z=0;Z<le.length;Z++)null!==ZC._n_(le[Z].o.x)&&null!==ZC._n_(le[Z].o.y)&&si.push(le[Z]);for(var Ai,Ci,ci,ui=!0,pi=0,Zi=le.length*le.length;ui&&pi<Zi;)for(pi++,ui=!1,Z=0;Z<le.length-1;Z++)if(le[Z].AM&&-1===ZC.AV(si,le[Z]))if(be.CQ){if(le[Z+1].iX<le[Z].iX+le[Z].I){if(le[Z+1].iX-le[Z].I-4<_.iX&&-1===ZC.AV(ri,le[Z])&&(ri.push(le[Z]),le[Z].iX=_.iX),le[Z+1].iX=le[Z].iX+le[Z].I+4,le[Z+1].iX+le[Z+1].I>_.iX+_.I)for(ci=le[Z+1].iX-(_.iX+_.I-le[Z+1].I),Ai=0,Ci=le.length;Ai<Ci;Ai++)le[Ai].iX-ci>=_.iX?le[Ai].iX-=ci:(le[Ai].iX=_.iX,Ai>0&&(le[Z+1].E["marker-y"]<_.iY+_.F/2?le[Ai].iY=le[Ai-1].iY+le[Ai-1].F+4:le[Ai].iY=le[Ai-1].iY-le[Ai].F-4));ui=!0}}else if(le[Z+1].iY<le[Z].iY+le[Z].F){if(le[Z+1].iY-le[Z].F-4<_.iY&&-1===ZC.AV(ri,le[Z])&&(ri.push(le[Z]),le[Z].iY=_.iY),le[Z+1].iY=le[Z].iY+le[Z].F+4,le[Z+1].iY+le[Z+1].F>_.iY+_.F)for(ci=le[Z+1].iY-(_.iY+_.F-le[Z+1].F),Ai=0,Ci=le.length;Ai<Ci;Ai++)le[Ai].iY-ci>=_.iY?le[Ai].iY-=ci:(le[Ai].iY=_.iY,Ai>0&&(le[Z+1].E["marker-x"]<_.iX+_.I/2?le[Ai].iX=le[Ai-1].iX+le[Ai-1].I+4:le[Ai].iX=le[Ai-1].iX-le[Ai].I-4));ui=!0}}}var hi=!1;for(Z=0,h=ce.length;Z<h;Z++)if(-1===ce[Z].E.diff||ce[Z].E.diff<=m){var di=ce[Z];O[ee].AJ["3d"]&&(O[ee].NW(),y=new ZC.CF(O[ee],di.iX+di.I/2-ZC.AN.E3,di.iY+di.F/2-ZC.AN.E2,0),di.iX=y.EB[0]-di.I/2,di.iY=y.EB[1]-di.F/2,y=new ZC.CF(O[ee],di.DM[0]-ZC.AN.E3,di.DM[1]-ZC.AN.E2,0),di.DM[0]=y.EB[0],di.DM[1]=y.EB[1]),O[ee].CX&&O[ee].CX.o["single-line"]&&ZC._b_(O[ee].CX.o["single-line"])?("xy"===O[ee].AJ.layout&&ii===ZC._x_(di.iX+di.I/2)||"yx"===O[ee].AJ.layout&&ti===ZC._x_(di.iY+di.F/2))&&!hi&&(di.paint(),hi=!0):di.paint()}for(m=ZC.MAX,P=0,N=le.length;P<N;P++)le[P].E.diff>=0&&(m=ZC.CY(le[P].E.diff,m));for(-1!==fe&&(m=ZC.BQ(m,fe)),Y=0,P=0,N=le.length;P<N;P++)if(-1===le[P].E.diff||le[P].E.diff<=m){var fi=ZC.DT(le[P].DM[0],_.iX-5,_.iX+_.I+5)&&ZC.DT(le[P].DM[1],_.iY-5,_.iY+_.F+5);if(!_e||fi){if(le[P].AM){switch(le[P].E.placement){case"top":be.CQ?le[P].DM[0]=le[P].iX-le[P].G3:le[P].DM[1]=le[P].iY+le[P].F+le[P].G3;break;case"bottom":be.CQ?le[P].DM[0]=le[P].iX+le[P].I+le[P].G3:le[P].DM[1]=le[P].iY-le[P].G3}if(-1!==ZC.AV(["top","bottom"],le[P].E.placement)){var _i=le[P].iX+le[P].I/2;le[P].iX=ZC.BQ(le[P].iX,0),le[P].iX=ZC.CY(le[P].iX,t.H.I-le[P].I),le[P].iY=ZC.BQ(le[P].iY,0),le[P].iY=ZC.CY(le[P].iY,t.H.F-le[P].F),null===ZC._n_(le[P].o["callout-offset"])&&(le[P].EV=parseInt(100*(_i-le[P].iX-le[P].I/2)/(le[P].I-le[P].H6),10))}if(O[ee].AJ["3d"]&&(O[ee].NW(),y=new ZC.CF(O[ee],le[P].iX+le[P].I/2-ZC.AN.E3,le[P].iY+le[P].F/2-ZC.AN.E2,0),le[P].iX=y.EB[0]-le[P].I/2,le[P].iY=y.EB[1]-le[P].F/2,y=new ZC.CF(O[ee],le[P].DM[0]-ZC.AN.E3,le[P].DM[1]-ZC.AN.E2,0),le[P].DM[0]=y.EB[0],le[P].DM[1]=y.EB[1],"left"===le[P].ES?le[P].iX=le[P].DM[0]+H:le[P].iX=le[P].DM[0]-le[P].I-H),O[ee].AJ["3d"]||_e||0!==Y||(le[P].iX=ZC.BQ(_.iX-5,le[P].iX),le[P].iY=ZC.BQ(_.iY-5,le[P].iY),le[P].iX=ZC.CY(_.iX+_.I-le[P].I+5,le[P].iX),le[P].iY=ZC.CY(_.iY+_.F-le[P].F+5,le[P].iY)),_e||!_e&&0===Y){var gi=_e?P:0;(!_e||"canvas"===t.H.AC&&le[gi].o["background-image"]&&""!==le[gi].o["background-image"])&&le[gi].parse(),0!==le[gi].C5&&le[gi].paint(),Y++}}if(fi){var vi=new ZC.DW(O[ee]);if(t.H.B7.load(vi.o,"("+O[ee].AF+").guide.marker"),vi.K=le[P].K+"-marker",vi.Z=vi.C6=a,vi.iX=le[P].E["marker-x"],vi.iY=le[P].E["marker-y"],O[ee].AJ["3d"]&&(O[ee].NW(),y=new ZC.CF(O[ee],vi.iX-ZC.AN.E3,vi.iY-ZC.AN.E2,0),vi.iX=y.EB[0],vi.iY=y.EB[1]),w=le[P].E["guide-style"],vi.A0=vi.AE=ZC.AP.JH(w["background-color"]),vi.BV=w.color,vi.append(O[ee].CX.o.marker),vi.append(O[ee].AY.A6[le[P].E.plotidx].o["guide-marker"]),"inherit"===vi.o.type){var bi=O[ee].AY.A6[le[P].E.plotidx];bi.A2&&bi.A2.o.type&&(vi.o.type=bi.A2.o.type)}vi.parse(),vi.AM&&"none"!==vi.DQ&&vi.AI>1&&vi.paint()}}}(L=O[ee].I3()).items=ae,L.guide={x:D,y:X},L.ev=p,L["scale-label"]=Ze,ZC.AP.BZ("guide_mousemove",t.H,L),O[ee].QK(!0)}else(L={}).guide={x:D,y:X},L.ev=p,ZC.AP.BZ("guide_mousemove",t.H,L)}}}}}},t.zc_guide_touchend=function(){0!==zingchart.DEV.GUIDETIMEOUT&&window.setTimeout(function(){e()},ZC._i_(zingchart.DEV.GUIDETIMEOUT))},ZC.A4(document.body).bind("mousemove touchstart touchmove",t.Q6),ZC.A4(document.body).bind("touchend",t.zc_guide_touchend)}}),ZC.K1.clearGuide=function(e){var i=zingchart.getLoader(e);if(i){zingchart.GUIDE_EV=null;var t=ZC.AK(e+"-guide-c"),n=ZC.A4(t).width(),a=ZC.A4(t).height();ZC.A4("."+e+"-guide-label").remove(),ZC.Q.IQ(t,i.AC,0,0,n,a),ZC.A4("#"+e+"-defs").children().each(function(){this.id&&-1!==this.id.indexOf("-guide-label-")&&ZC.Q.EU(this.id)})}},zingchart.extendAPI("resetguide",function(e,i){"string"==typeof(i=i||{})&&(i=JSON.parse(i)),ZC.K1.GUIDES[e]=ZC.K1.GUIDES[e]||{},ZC.K1.GUIDES[e].blocked=!1,ZC.K1.clearGuide(e)}),zingchart.extendAPI("setguide",function(e,i){"string"==typeof(i=i||{})&&(i=JSON.parse(i));var t,n,a=zingchart.getLoader(e),l=a.C9(i.graphid),o=l.BN("scale-x");"xy"===l.AJ.layout?(t=i.x||o.B2(i.keyvalue),n=l.iY+l.F/2):(t=l.iX+l.I/2,n=i.y||o.B2(i.keyvalue));var r={_pageX_:t,_pageY_:n,type:ZC.mobile?"touchstart":"mousemove",target:{id:e+"-img"}};ZC.K1.GUIDES=ZC.K1.GUIDES||{},ZC.K1.GUIDES[e]=ZC.K1.GUIDES[e]||{},ZC.K1.GUIDES[e].blocked=!0,ZC.K1.clearGuide(e),r.fromAPI=!0,a.D5.Q6(r)}),ZC.AAB=ZC.C8.C7({$i:function(e,i){var t=this;t.o=null,t.C=e,t.NT=i},parse:function(){var e,i=this;i.o=i.C.o;var t,n,a,l,o,r,s,A,C,c=i.NT,u="\r\n",p=",",Z=!1,h=null,d=null,f=null,_=null,g=null,v=!1,b=!1,m=null,B={};if(null!==ZC._n_(e=i.o["html5-csv"])&&(B=e),null!==ZC._n_(e=i.o.csv)&&(B=e),null!==ZC._n_(e=B.separator)&&(p=e),null!==ZC._n_(e=B.mirrored)&&(Z=ZC._b_(e)),null!==ZC._n_(e=B.title)&&(h=ZC._b_(e)),null!==ZC._n_(e=B["string-values"])&&(b=ZC._b_(e)),Z?(null!==ZC._n_(e=B["horizontal-labels"])&&(f=ZC._b_(e)),null!==ZC._n_(e=B["vertical-labels"])&&(d=ZC._b_(e))):(null!==ZC._n_(e=B["horizontal-labels"])&&(d=ZC._b_(e)),null!==ZC._n_(e=B["vertical-labels"])&&(f=ZC._b_(e))),null!==ZC._n_(e=B["smart-scales"])&&(_=ZC._b_(e)),null!==ZC._n_(e=B["separate-scales"])&&(g=ZC._b_(e)),null!==ZC._n_(e=B["keyval-format"])&&(v=ZC._b_(e)),null!==ZC._n_(e=B.columns)&&(m=e),null!==ZC._n_(m)&&m.length>0){t=[],null!==ZC._n_(e=B["row-separator"])?u=e:c.split(/\n/).length>0?u="\n":c.split(/\r/).length>0&&(u="\r");var E=c.split(u),K=0;for(l=0,o=E.length;l<o;l++)if(""!==E[l].replace(/\s+/g,"")){t[K]=[];for(var F=0,D=0;F<E[l].length-1;)a=E[l].substring(F,F+m[D]),t[K].push(a),F+=m[D],D++;K++}}else{t=[[]],n=null!==ZC._n_(e=B["row-separator"])?new RegExp("(\\"+p+"|"+e+'|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+p+e+"]*))","gi"):new RegExp("(\\"+p+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+p+"\\r\\n]*))","gi");for(var X=null;X=n.exec(c);){var I=X[1];I.length&&I!==p&&t.push([]),a=X[2]?X[2].replace(new RegExp('""',"g"),'"'):X[3],t[t.length-1].push(a)}}var x=[];for(l=0,o=t.length;l<o;l++)0!==t[l].join("").replace(/\s+/g,"").length&&x.push(t[l]);var y=0,w=0;if((null===ZC._n_(h)||h)&&(x.length>1&&1===x[0].length?(null===ZC._n_(i.o.title)?i.o.title={text:x[0][0]}:null===ZC._n_(i.o.title.text)&&(i.o.title.text=x[0][0]),h=!0):h=!1),h&&y++,Z){for(t=[],h&&t.push(x[0]),r=y,s=x.length;r<s;r++)for(A=0,C=x[r].length;A<C;A++)null===ZC._n_(t[A+y])&&(t[A+y]=[]),t[A+y].push(x[r][A]);x=t}if("function"==typeof zingchart.csvParser)for(r=0,s=x.length;r<s;r++)for(A=0,C=x[r].length;A<C;A++)x[r][A]=zingchart.csvParser.call(this,x[r][A],r,A,i.C.A.K);var Y=0;for(l=0,o=x.length;l<o;l++)Y=ZC.BQ(Y,x[l].length);var M=[];if(null===ZC._n_(d)){var H=x[y].join("").length;d=x[y].join("").replace(/[0-9]/g,"").length/H>.75}d&&(M=x[y],y++);var L=[];if(null===ZC._n_(f))if(d&&-1!==M[0].indexOf("\\"))f=!0;else{var P="";for(r=y,s=x.length;r<s;r++)P+=x[r][0];var N=P.length;f=P.replace(/[0-9]/g,"").length/N>.75}if(f){for(r=y,s=x.length;r<s;r++)v?L.push(ZC._i_(x[r][w])):L.push(x[r][w]);w++}var O=[],k=[];for(A=w;A<Y;A++){k[A-w]=[];var Q=null,R=null,z=0,T=null;for(r=y,s=x.length;r<s;r++)if(null!==ZC._n_(x[r][A])&&""!==x[r][A]&&"undefined"!=typeof x[r][A]){a=x[r][A],null!==ZC._n_(T)||b||(T=a.replace(/[0-9\-\,\.\+\e]+/g,"%v")),b||(a=a.replace(/[^0-9\-\,\.\+\e]+/g,""));var G=a.indexOf("."),S=a.indexOf(",");-1!==G&&-1!==S?G<S?(Q=".",R=",",z=ZC.BQ(0,a.length-S)):(Q=",",R=".",z=ZC.BQ(0,a.length-G)):-1===G&&-1!==S?a.length-S-1==3?(Q=",",R="."):(Q=".",R=",",z=ZC.BQ(0,a.length-S)):-1!==G&&-1===S&&(a.length-G-1==3?(Q=".",R=","):(Q=",",R=".",z=ZC.BQ(0,a.length-G))),"."===Q&&(a=a.replace(/\./g,"").replace(/,/g,".")),","===Q&&(a=a.replace(/,/g,"")),k[A-w].push(b?a:ZC._f_(a))}else k[A-w].push(null);O[A-w]={},null!==ZC._n_(T)&&(O[A-w].format=T),null!==ZC._n_(Q)&&(O[A-w]["thousands-separator"]=Q),null!==ZC._n_(Q)&&(O[A-w]["decimals-separator"]=R),0!==z&&(O[A-w].decimals=z)}if(v)for(l=0,o=k.length;l<o;l++)for(var J=0;J<k[l].length;J++)k[l][J]=[L[J],k[l][J]];var V=[];switch(i.C.AF){case"line":case"area":case"vbar":case"hbar":case"line3d":case"area3d":case"vbar3d":case"hbar3d":case"mixed":null===ZC._n_(i.o["scale-x"])&&(i.o["scale-x"]={});var U=[];f&&null!==ZC._n_(M[0])&&(U=M[0].split(/\\/)),null!==ZC._n_(U[0])&&(null===ZC._n_(i.o["scale-x"].label)&&(i.o["scale-x"].label={}),null===ZC._n_(i.o["scale-x"].label.text)&&(i.o["scale-x"].label.text=U[0])),f&&(null===ZC._n_(i.o["scale-x"].values)?i.o["scale-x"].values=L:null===ZC._n_(i.o["scale-x"].labels)&&(i.o["scale-x"].labels=L));var W=[];if(null!==ZC._n_(g)&&g)for(l=0,o=k.length;l<o;l++)W[l]="scale-y"+(0===l?"":"-"+(l+1));else if(null!==ZC._n_(_)&&_){var j={},q=0,$=[];for(l=0,o=k.length;l<o;l++){for(var ee=0,ie=0,te=k[l].length;ie<te;ie++)ee+=k[l][ie];ee/=k[l].length;var ne=Math.round(ZC.H0(ee)/Math.LN10/2);null===ZC._n_(j[ne])&&(j[ne]="scale-y"+(0===q?"":"-"+(q+1))),-1===ZC.AV($,O[l].format)?(W[l]="scale-y"+(0===q?"":"-"+(q+1)),q++):(W[l]=j[ne],q++),$.push(O[l].format)}}for(0===W.length&&(W[0]="scale-y"),null===ZC._n_(i.o.series)&&(i.o.series=[]),l=0,o=k.length;l<o;l++)null===ZC._n_(i.o.series[l])&&(i.o.series[l]={}),i.o.series[l].values=k[l],d&&(null===ZC._n_(i.o.series[l].text)&&(i.o.series[l].text=M[l+w],V.push(M[l+w])),null===ZC._n_(i.o.series[l]["legend-text"])&&(i.o.series[l]["legend-text"]=M[l+w],V.push(M[l+w])),null===ZC._n_(i.o.series[l]["tooltip-text"])&&null!==ZC._n_(O[l].format)&&(i.o.series[l]["tooltip-text"]=O[l].format)),null!==ZC._n_(W[l])&&(null===ZC._n_(i.o[W[l]])&&(i.o[W[l]]={}),null!==ZC._n_(U[1])&&(null===ZC._n_(i.o[W[l]].label)&&(i.o[W[l]].label={}),null===ZC._n_(i.o[W[l]].label.text)&&(i.o[W[l]].label.text=U[1])),null===ZC._n_(i.o.series[l].scales)&&(i.o.series[l].scales="scale-x,"+W[l]),null===ZC._n_(i.o[W[l]].decimals)&&null!==ZC._n_(O[l].decimals)&&(i.o[W[l]].decimals=O[l].decimals),null===ZC._n_(i.o[W[l]]["thousands-separator"])&&null!==ZC._n_(O[l]["thousands-separator"])&&(i.o[W[l]]["thousands-separator"]=O[l]["thousands-separator"]),null===ZC._n_(i.o[W[l]]["decimals-separator"])&&null!==ZC._n_(O[l]["decimals-separator"])&&(i.o[W[l]]["decimals-separator"]=O[l]["decimals-separator"]),null===ZC._n_(i.o[W[l]].format)&&null!==ZC._n_(O[l].format)&&(i.o[W[l]].format=O[l].format));break;case"pie":case"pie3d":case"gauge":case"nestedpie":if(null===ZC._n_(i.o.scale)&&(i.o.scale={}),f&&null!==ZC._n_(M[0])){var ae=M[0].split(/\\/);null===ZC._n_(i.o.scale.label)&&(i.o.scale.label={}),null===ZC._n_(i.o.scale.label.text)&&(i.o.scale.label.text=ae[0])}for(f&&(null===ZC._n_(i.o.scale.values)?i.o.scale.values=L:null===ZC._n_(i.o.scale.labels)&&(i.o.scale.labels=L)),null===ZC._n_(i.o.series)&&(i.o.series=[]),l=0,o=k.length;l<o;l++)null===ZC._n_(i.o.series[l])&&(i.o.series[l]={}),i.o.series[l].values=k[l],d&&(null===ZC._n_(i.o.series[l].text)&&(i.o.series[l].text=M[l+w],V.push(M[l+w])),null===ZC._n_(i.o.series[l]["legend-text"])&&(i.o.series[l]["legend-text"]=M[l+w],V.push(M[l+w])),null===ZC._n_(i.o.series[l]["tooltip-text"])&&null!==ZC._n_(O[l].format)&&(i.o.series[l]["tooltip-text"]=O[l].format)),null===ZC._n_(i.o["scale-v"])&&(i.o["scale-v"]={}),null===ZC._n_(i.o["scale-v"].decimals)&&null!==ZC._n_(O[l].decimals)&&(i.o["scale-v"].decimals=O[l].decimals),null===ZC._n_(i.o["scale-v"]["thousands-separator"])&&null!==ZC._n_(O[l]["thousands-separator"])&&(i.o["scale-v"]["thousands-separator"]=O[l]["thousands-separator"]),null===ZC._n_(i.o["scale-v"]["decimals-separator"])&&null!==ZC._n_(O[l]["decimals-separator"])&&(i.o["scale-v"]["decimals-separator"]=O[l]["decimals-separator"]),null===ZC._n_(i.o["scale-v"].format)&&null!==ZC._n_(O[l].format)&&(i.o["scale-v"].format=O[l].format)}return""!==V.join("")&&null===ZC._n_(i.o.legend)&&(i.o.legend={}),i.o=JSON.parse(JSON.stringify(i.o).replace(/\\\\/g,"\\")),i.o}}),ZC.JS=ZC.HS.C7({$i:function(e){this.b(e);var i=this;i.O4="zcgraph",i.H=e,i.AF="",i.IX=null,i.KJ=null,i.MP=null,i.RZ=null,i.P=null,i.BA=null,i.I9=null,i.I6=null,i.A5F=1,i.VB=1,i.A4Z=1,i.L=0,i.HM=null,i.M8=[1,0],i.A9Y=null,i.CB=!1,i.KQ="normal",i.BM=[],i.BX=[],i.XX=[],i.FE=[],i.LD=[],i.AY=new ZC.LF(i),i.H9=null,i.BF=null,i.A8=null,i.CX=null,i.H7=null,i.A1K="always",i.ABK=!0,i.M9="",i.RF=null,i.LG=!1,i.U9=!1,i.N6=0,i.Y8=!1,i.PX=!1,i.F0={true3d:1,angle:45,depth:40,"x-angle":0,"y-angle":0,"z-angle":0,zoom:1},i.AJ={"enable-guide":!1,"enable-preview":!1,"enable-scroll":!1,"enable-zooming":!0,"3d":!1,clip:!1,layout:"","enable-animation":!0,"angle-min":15,"angle-max":75,"x-angle-min":-65,"x-angle-max":65,"y-angle-min":-65,"y-angle-max":65,"z-angle-min":-65,"z-angle-max":65},i.O7=!1,i.A0X=!1,i.A93=[],i.A1G=!0,"undefined"!=typeof ZC.PB&&(i.LT=new ZC.PB(i)),i.GA=!1,i.CH={},i.IT=[],i.KD=!1,i.HF=!1,i.L4=0,i.BP=[],i.A43=!0,i.U8=zingchart.DEV.STACKINGLOGIC,-1===i.U8&&(i.U8=0)},getPMap:function(){var e=this.b();return this.addPMap(e,"index","L"),e},getToggleAction:function(){var e,i=this,t="hide";return i.BF&&""!==i.E["legend-last-trigger"]&&"undefined"!=typeof i.E["legend-last-trigger"]?t="item"===i.E["legend-last-trigger"]?i.BF.QX:i.BF.PL:(i.o.legend&&(e=i.o.legend["toggle-action"])&&(t=e),i.o.legend&&i.o.legend.item&&(e=i.o.legend.item["toggle-action"])&&(t=e)),(i.A.K5||i.E["toggle-action-remove"])&&(t="remove"),t},BT:function(e,i){void 0===i&&(i=!1);for(var t=[],n=this,a=0,l=n.BM.length;a<l;a++)n.BM[a].AF===e&&(!i||i&&n.BM[a].X.length>0)&&t.push(n.BM[a]);return t},BN:function(e){for(var i=this,t=0,n=i.BM.length;t<n;t++)if(i.BM[t].BC===e)return i.BM[t];return null},A2A:function(e){return e},ACF:function(e){return new ZC.AAB(this,e)},ACI:function(){for(var e=this,i=0,t=e.BM.length;i<t;i++){var n=e.BM[i],a=n.BC;e.A.B7.load(n.o,["("+e.AF+").SCALE","("+e.AF+")."+a.replace(/\-[0-9]+/,""),"("+e.AF+")."+a.replace(/\-[0-9]+/,"-n"),"("+e.AF+")."+a],!1,!0);var l=a.replace(/\-[0-9]+/,"")+"-n";e.o[l]&&n.append(e.o[l]),e.o[a]&&n.append(e.o[a]),e.AJ["3d"]&&e.A.B7.load(n.o,["("+e.AF+").SCALE[3d]","("+e.AF+")."+a.replace(/\-[0-9]+/,"")+"[3d]","("+e.AF+")."+a.replace(/\-[0-9]+/,"-n")+"[3d]","("+e.AF+")."+a+"[3d]"],!1,!0),e.AJ["3d"]&&n.append(e.o[a+"[3d]"]),n.parse()}},ABD:function(){return null},A99:function(e){var i,t,n=this,a=0,l=n.AY.A6.length;for(i=0;i<l;i++)a=ZC.BQ(a,n.AY.A6[i].R.length);var o;for(i=0,t=n.BM.length;i<t;i++)(o=n.BM[i]).A9L(e),2===e&&(o.JE=function(e){return e=e.replace(/(%N|%node-count)/g,a),e=e.replace(/(%P|%plot-count)/g,l),e=e.replace(/(%S|%scale-values-count)/g,o.X.length)},o.DE()&&o.parse()),null===ZC._n_(o.o["max-items"])&&null===ZC._n_(o.o["max-labels"])&&o.A7I(),null===ZC._n_(o.o["max-ticks"])&&o.AC4()},UV:function(){},NW:function(){},ADC:function(){},ABQ:function(){},setupPlotArea:function(){var e=this,i=e.A.B7,t="("+e.AF+")";e.P=new ZC.HS(e),e.P.O8="plotarea",e.P.K=e.K+"-plotarea";var n=[t+".plotarea"];if(e.BA&&n.push(t+".plotarea[preview]"),e.AJ["3d"]&&n.push(t+".plotarea[3d]"),i.load(e.P.o,n),e.P.append(e.o.chart),e.P.append(e.o.plotarea),e.BA&&e.P.append(e.o["plotarea[preview]"]),e.AJ["3d"]&&e.P.append(e.o["plotarea[3d]"]),"dynamic"===e.P.o["margin-top"]||"dynamic"===e.P.o["margin-right"]||"dynamic"===e.P.o["margin-bottom"]||"dynamic"===e.P.o["margin-left"]){var a=String(e.P.o.margin||"").split(/\s+|;|,/),l=a.length>0?a[0]:"",o=a.length>1?a[1]:"",r=a.length>0?a[2]||a[0]:"",s=a.length>1?a[3]||a[1]:"";"dynamic"===e.P.o["margin-top"]&&(l="dynamic"),"dynamic"===e.P.o["margin-right"]&&(o="dynamic"),"dynamic"===e.P.o["margin-bottom"]&&(r="dynamic"),"dynamic"===e.P.o["margin-left"]&&(s="dynamic"),e.P.o.margin=[l,o,r,s].join(" ")}if(e.E["plotarea-margins"]?e.P.o.margin=e.E["plotarea-margin"]:(e.E["plotarea-margins"]=!0,e.E["plotarea-margin"]=e.P.o.margin,e.E["plotarea-margin-top"]=e.P.o["margin-top"],e.E["plotarea-margin-right"]=e.P.o["margin-right"],e.E["plotarea-margin-bottom"]=e.P.o["margin-bottom"],e.E["plotarea-margin-left"]=e.P.o["margin-left"]),"undefined"!=typeof e.E["plotarea-p-x"]&&(e.P.E["p-x"]=e.E["plotarea-p-x"],e.P.E["p-y"]=e.E["plotarea-p-y"],e.P.E["p-width"]=e.E["plotarea-p-width"],e.P.E["p-height"]=e.E["plotarea-p-height"]),null!==ZC._n_(e.P.o["adjust-layout"])&&ZC._b_(e.P.o["adjust-layout"])&&(e.P.o.margin="dynamic"),e.P.parse(),e.AJ["3d"]&&!e.F0.true3d){var A=ZC._a_(ZC._i_(e.F0.depth*ZC.EO(e.F0.angle)));e.P.iY+=A,e.P.F-=A,e.P.I-=ZC._i_(e.F0.depth*ZC.EF(e.F0.angle))}if("undefined"!=typeof e.E["plotarea-p-x"])for(var C=0,c=e.BM.length;C<c;C++)e.BM[C].A44(),e.BM[C].IW()},setupDynamicPlotArea:function(){var e,i,t,n=this,a=["top","right","bottom","left"],l={};for(i=0;i<a.length;i++)l[a[i]]=!1,n.E["plotarea.d-margin-"+a[i]]&&(n.o.plotarea["margin-"+a[i]]=null),n.o.plotarea&&"dynamic"===n.o.plotarea["margin-"+a[i]]&&(l[a[i]]=!0,n.o.plotarea["margin-"+a[i]]="20");var o=!1,r={};if("xy"===n.AJ.layout&&(o=!0),("xy"===n.AJ.layout||"yx"===n.AJ.layout)&&(n.P.E["d-margin"]||n.E["plotarea.d-margin"])){for(var s=0,A=n.BM.length;s<A;s++){var C=0,c=0,u="",p=n.BM[s];if(p.AM&&p.T3){"k"===p.AF?u=p.CQ?"default"===p.B8?"left":"right":"default"===p.B8?"bottom":"top":"v"===p.AF&&(u=p.CQ?"default"===p.B8?"bottom":"top":"default"===p.B8?"left":"right");var Z=0;if(n.P.E["d-margin-"+u]||n.E["plotarea.d-margin-"+u]){var h=new ZC.DS(p);h.copy(p.BR);var d=ZC.BQ(1,ZC._i_((p.A1-p.V)/p.EE));for(i=p.V;i<=p.A1;i+=d)if(h.AR=p.FO(i),h.A21&&("k"===p.AF&&!p.CQ||"v"===p.AF&&p.CQ)&&(h.o.width=ZC._i_(.9*p.A9)),h.parse(),h.AM)if(c=ZC.BQ(c,h.AA%180==0?h.F:h.I),C=ZC.BQ(C,h.AA%180==0?h.I:h.F),Z=ZC.BQ(Z,1.5*h.DK*(h.AR||"").split(/<br>|<br\/>|<br \/>|\n/).length),"top"===u||"bottom"===u){if(Z=ZC.BQ(Z,.465*h.DK+1.025*ZC._a_(ZC.EO(h.AA))*ZC.BQ(h.I,h.F)),C=h.I,c=Z,o&&"k"===p.AF){r[p.BC]||(r[p.BC]=[]);var f=null===ZC._n_(h.o["auto-align"])||ZC._b_(h.o["auto-align"]),_=.465*h.DK+1.025*ZC._a_(ZC.EF(h.AA))*ZC.BQ(h.I,h.F);"default"===p.B8?(f&&(ZC.DT(ZC._ang_(h.AA),90,180)||ZC.DT(ZC._ang_(h.AA),270,360))&&r[p.BC].push(_),f||r[p.BC].push(_/2)):(f&&(ZC.DT(ZC._ang_(h.AA),0,90)||ZC.DT(ZC._ang_(h.AA),180,270))&&r[p.BC].push(_),f||r[p.BC].push(_/2))}}else C=Z=ZC.BQ(Z,.465*h.DK+1.025*ZC._a_(ZC.EF(h.AA))*ZC.BQ(h.I,h.F)),c=h.F;var g=new ZC.DS(p);g.copy(p.M),g.AR=p.M.AR,g.parse(),""!==g.AR&&g.AM&&(c+=g.AA%180==0?g.F:g.I,C+=g.AA%180==0?g.I:g.F)}if(n.o.plotarea||(n.o.plotarea={}),("dynamic"===n.o.plotarea["margin-"+u]||n.P.E["d-margin-"+u])&&(n.P.E["d-margin-"+u]=!1,l[u]=!0,n.o.plotarea["margin-"+u]="0"),l[u]){n.o.plotarea["margin-"+u]=ZC._f_(n.o.plotarea["margin-"+u]||"0"),n.E[p.BC+"-distance"]=n.o.plotarea["margin-"+u];var v=("top"===u||"bottom"===u?ZC._i_(c):ZC._i_(C))+10+(n.AJ["3d"]?20:0);if(p.V7?n.o.plotarea["margin-"+u]=ZC.BQ(n.o.plotarea["margin-"+u],v):n.o.plotarea["margin-"+u]+=v,null!==ZC._n_(n.o.plotarea["margin-"+u+"-offset"])&&(n.o.plotarea["margin-"+u]+=ZC._i_(n.o.plotarea["margin-"+u+"-offset"])),!n.A.TF){var b={},m=n.A.DF.watermark;n.A.B7.load(b,"loader.gui.watermark"),m&&ZC._cp_(m,b),1===n.A.o.graphset.length&&n.A.o.graphset[0].gui&&(e=n.A.o.graphset[0].gui.watermark)&&ZC._cp_(e,b);var B=b.position||"br";-1===ZC.AV(["tl","tr","br","bl"],B)&&(B="br"),("bottom"!==u||"bl"!==B&&"br"!==B)&&("top"!==u||"tl"!==B&&"tr"!==B)||(n.o.plotarea["margin-"+u]+=15)}"bottom"===u&&("xy"===n.AJ.layout&&n.I9||"yx"===n.AJ.layout&&n.I6)&&(n.o.plotarea["margin-"+u]+=15),"left"===u&&("xy"===n.AJ.layout&&n.I6||"yx"===n.AJ.layout&&n.I9)&&(n.o.plotarea["margin-"+u]+=15),n.E["plotarea.d-margin-"+u]=!0}}}if(o&&l.left&&null!==ZC._n_(n.o.plotarea["margin-left"]))for(var E in r){var K=n.BN(E);for(i=0;i<r[E].length;i++)ZC._i_(n.o.plotarea["margin-left"])+i*K.A9+(K.DL?K.A9/2:0)-r[E][i]<0&&(n.o.plotarea["margin-left"]=r[E][i]-i*K.A9-(K.DL?K.A9/2:0))}ZC.Q.IQ(ZC.AK(n.K+"-plotarea-c"),n.H.AC,n.P.iX,n.P.iY,n.P.I,n.P.F,n.K),n.E["plotarea.paint"]=!0,n.setupPlotArea();var F=2,D=6;null!==ZC._n_(e=n.P.o["mask-tolerance"])&&(e instanceof Array?(F=D=ZC._i_(e[0]),e.length>1&&(D=ZC._i_(e[1]))):F=D=ZC._i_(e)),"svg"===n.H.AC?((e=ZC.AK(n.K+"-clip-shape"))&&e.setAttribute("points",n.M3(F,"svg")),(e=ZC.AK(n.K+"-clip-hover-shape"))&&e.setAttribute("points",n.M3(D,"svg"))):(ZC.A4("#"+n.K+" div").each(function(){""!==this.style.clip&&(this.style.clip=n.M3(F))}),(e=ZC.AK(n.K+"-hover"))&&""!==e.style.clip&&(e.style.clip=n.M3(D)))}for(i=0,t=n.BM.length;i<t;i++)n.BM[i].A44(),n.BM[i].IW()},parse:function(){var e,i,t,n,a,l,o,r,s,A=this,C=A.A.B7,c="("+A.AF+")";(e=A.A.E["graph-state-"+A.L])&&(A.E=JSON.parse(e),null===ZC._n_(A.E["guide-on"])||ZC._b_(A.E["guide-on"])||(A.A1G=!1)),A.E.legend_toggle_action||(A.A.E["graph-"+A.K+"-legend-info"]=null),A.E.legend_toggle_action=null,A.M9="parse.init",A.b(),A.ADC(),-1!==JSON.stringify(A.o).indexOf("zingchart.maps")&&(A.o.plotarea=A.o.plotarea||{},A.o.plotarea.margin=0);var u=null;if(!zingchart.SKIP.CSV&&((e=A.o["html5-csv"])&&(A.RF=e["html5-url"]),(e=A.o.csv)&&("object"==typeof e?e.url?A.RF=e.url:e["data-string"]&&(u=e["data-string"]):A.RF=e),""!==A.RF&&null!==ZC._n_(A.A.A9K[A.RF])&&(u=A.A.A9K[A.RF]),A.H.NT&&(u=A.H.NT),u)){var p=A.ACF(u);A.o=p.parse()}if(A.LG=zingchart.ASYNC,A.assign_a([["utc","U9","b"],["timezone","N6","f"],["async","LG","b"],["stacked","CB","b"],["stack-type","KQ"],["animate-type","A1K"],["url-data","A9Y"],["page","L4","i"],["palette","BP"],["sort-objects","A43","b"]]),A.BP.length>0)for(C.B7.palette=[],n=0;n<A.BP.length;n++){var Z=A.BP[n],h=ZC.AP.JH(A.BP[n],10),d=ZC.AP.QT(A.BP[n],10);C.B7.palette.push(["#fff",Z,h,d])}"pie3d"===A.AF&&(A.F0.true3d=!0),(A.AJ["3d"]||A.A.A10)&&(A.LG=!1),A.ABQ(),-1===ZC.AV(A.H.KM,"skip_interactivity")&&((null!==ZC._n_(e=A.o.preview)||C.PF("preview",A.AF))&&A.AJ["enable-preview"]&&(A.BA&&!A.E["force-preview-parse"]||"undefined"==typeof ZC.A8E||(A.E["force-preview-parse"]=!1,A.BA=new ZC.A8E(A),A.BA.O8="preview",C.load(A.BA.o,c+".preview"),"yx"===A.AJ.layout&&C.load(A.BA.o,c+".preview[yx]"),(i=A.o.plotarea)&&A.BA.append({"background-color":i["background-color"],"background-color-1":i["background-color-1"],"background-color-2":i["background-color-2"],"gradient-stops":i["gradient-stops"],"gradient-colors":i["gradient-colors"]}),A.BA.append(e),A.BA.parse())),(null!==ZC._n_(e=A.o["scroll-x"])||C.PF("scroll-x",A.AF))&&A.AJ["enable-scroll"]&&(A.I9||"undefined"==typeof ZC.A3A||(A.I9=new ZC.A3A(A,"x"),A.I9.O8="scrollx",C.load(A.I9.o,c+".scroll-x"),A.I9.append(e),A.I9.parse())),(null!==ZC._n_(e=A.o["scroll-y"])||C.PF("scroll-y",A.AF))&&A.AJ["enable-scroll"]&&(A.I6||"undefined"==typeof ZC.A3A||(A.I6=new ZC.A3A(A,"y"),A.I6.O8="scrolly",C.load(A.I6.o,c+".scroll-y"),A.I6.append(e),A.I6.parse()))),A.setupPlotArea(),A.NW(),A.BM=[],A.ACI(),A.A99(1),null!==ZC._n_(e=A.o.series)&&(A.AY.o=e);var f=A.AY.o;for(n=0;n<f.length;n++)if(f[n].rel)for(s=0;s<f.length;s++)f[s].id&&f[s].id===f[n].rel&&(A.AY.o[n].values=[].concat(A.AY.o[s].values));if(A.AY.parse(),A.A99(2),(null!==ZC._n_(e=A.o.title)||C.PF("title",A.AF))&&(A.IX=new ZC.DS(A),A.IX.O8="title",C.load(A.IX.o,c+".title"),A.IX.append(e),A.IX.K=A.K+"-title",A.IX.K5=!0,A.IX.parse(),null===ZC._n_(A.IX.o.x))){var _=A.iX,g=A.I;switch("plotarea"===A.IX.o["center-point"]&&(_=A.P.iX,g=A.P.I),A.IX.OB){case"left":A.IX.iX=_;break;case"center":A.IX.iX=_+g/2-A.IX.I/2;break;case"right":A.IX.iX=_+g-A.IX.I}}(null!==ZC._n_(e=A.o.subtitle)||C.PF("subtitle",A.AF))&&(A.KJ=new ZC.DS(A),A.KJ.O8="subtitle",C.load(A.KJ.o,c+".subtitle"),A.KJ.append(e),A.KJ.K=A.K+"-subtitle",A.KJ.parse()),null!==ZC._n_(e=A.o.source)&&(A.MP=new ZC.DS(A),A.MP.O8="source",C.load(A.MP.o,c+".source"),A.MP.append(e),A.MP.K=A.K+"-source",A.MP.parse()),"undefined"!=typeof ZC.A1A&&(null!==ZC._n_(e=A.o.legend)||C.PF("legend",A.AF))&&(A.BF=new ZC.A1A(A),A.BF.K=A.K+"-legend","undefined"!=typeof e.alpha&&e.alpha<.1&&"undefined"==typeof e["border-width"]&&"undefined"==typeof e["border-alpha"]&&(e["border-alpha"]=e.alpha),C.load(A.BF.o,c+".legend"),A.BF.alignPosition(e),(null!==ZC._n_(e)&&null!==ZC._n_(e.position)||null!==ZC._n_(A.BF.o.position))&&C.load(A.BF.o,c+".legend[position]"),A.BF.append(e),ZC._b_(A.BF.o.shared)&&(A.BF.E["p-x"]=A.A.iX,A.BF.E["p-y"]=A.A.iY,A.BF.E["p-width"]=A.A.I,A.BF.E["p-height"]=A.A.F),A.BF.alignPosition(e),A.BF.parse());var v=!1,b=A.iX,m=A.iY,B=A.I,E=A.F,K="";if(A.IX&&A.IX.AM&&A.IX.o["adjust-layout"]&&(v=!0,(t=A.IX.iY+A.IX.F/2)<m+E/2&&(K="top",E=m+E-A.IX.F-A.IX.iY,m=A.IX.iY+A.IX.F,A.KJ&&A.KJ.o["adjust-layout"]))){var F=A.KJ.iY+A.KJ.F/2;F<m+E/2&&F>t&&(E-=A.KJ.F,m+=A.KJ.F)}if(A.MP&&A.MP.AM&&A.MP.o["adjust-layout"]&&(v=!0,(t=A.MP.iY+A.MP.F/2)>m+E/2&&(E-=A.MP.F)),A.BA&&A.BA.AM&&A.BA.o["adjust-layout"]&&(v=!0,"xy"===A.AJ.layout?(t=A.BA.AQ.iY+A.BA.AQ.F/2)>m+E/2?E-=A.BA.AQ.F+A.BA.AQ.DP:(m=A.BA.AQ.iY+A.BA.AQ.F,E-=A.BA.AQ.F):(_=A.BA.AQ.iX+A.BA.AQ.I/2)<b+B/2?(B-=A.BA.AQ.I+A.BA.AQ.DV,b+=A.BA.AQ.I+A.BA.AQ.DV):(b=A.BA.AQ.iX+A.BA.AQ.I,B-=A.BA.AQ.I)),A.BF&&A.BF.AM&&A.BF.o["adjust-layout"]){v=!0;var D=A.BF.D2&&A.BF.D2.enabled?15:5;if("top"===K&&A.BF.iY<A.IX.iY+A.IX.F+5){if(null!==ZC._n_(A.BF.o.position)){var X=(""+A.BF.o.position).split(" ");A.BF.o.position=X[0]+" "+(A.IX.iY-A.iY+A.IX.F+A.BF.MA+D)}else A.BF.o["margin-top"]=A.IX.iY-A.iY+A.IX.F+A.BF.MA;A.BF.parse()}A.BF.fixPlacement(),t=A.BF.iY+A.BF.F/2;var I="",x=(ZC.MAX,A.BF.E["position-info"]),y={Bottom:A.BF.iY-A.iY,Top:A.iY+A.F-A.BF.iY-A.BF.F,Right:A.BF.iX-A.iX,Left:A.iX+A.I-A.BF.iX-A.BF.I},w="";w=A.BF.I/A.BF.F>2?"v":A.BF.F/A.BF.I>2?"h":Math.max(y.Left*A.F,y.Right*A.F)/Math.max(y.Top*A.I,y.Bottom*A.I)>1?"h":"v",x?x[0]>=.8?I=x[1]<=.2?"v"===w?"top":"right":x[1]>=.8&&"v"===w?"bottom":"right":x[0]<=.2?I=x[1]<=.2?"v"===w?"top":"left":x[1]>=.8&&"v"===w?"bottom":"left":x[1]<=.2?I="top":x[1]>=.8&&(I="bottom"):Math.min(y.Top,y.Bottom)/Math.max(y.Top,y.Bottom)<Math.min(y.Left,y.Right)/Math.max(y.Left,y.Right)?y.Top>y.Bottom?(I="top",A.BF.E5):(I="bottom",A.BF.DP):y.Left>y.Right?(I="left",A.BF.DV):(I="right",A.BF.E6);var Y=0;"top"===I&&(E=m+E-A.BF.F-A.BF.iY,m=A.BF.iY+A.BF.F),"bottom"===I&&(E-=Y=E-A.BF.iY+m+A.BF.FJ+A.BF.FR),"left"===I&&(b+=Y=A.BF.iX-A.iX+A.BF.I,B-=Y),"right"===I&&(B-=Y=B-(A.BF.iX-A.iX)+A.BF.EP+A.BF.FK)}else A.BF&&A.BF.fixPlacement();v&&(A.E["plotarea-p-x"]=b,A.E["plotarea-p-y"]=m,A.E["plotarea-p-width"]=B,A.E["plotarea-p-height"]=E,A.setupPlotArea()),A.setupDynamicPlotArea(),A.AY.parseLayout&&A.AY.parseLayout(!0),A.BA&&A.BA.o["adjust-layout"]&&("xy"===A.AJ.layout?(null===ZC._n_(A.BA.J5.x)&&(A.BA.AQ.iX=A.P.iX),null===ZC._n_(A.BA.J5.width)&&(A.BA.AQ.I=A.P.I)):(null===ZC._n_(A.BA.J5.y)&&(A.BA.AQ.iY=A.P.iY),null===ZC._n_(A.BA.J5.height)&&(A.BA.AQ.F=A.P.F)));var M=0;for(n=0;n<A.AY.A6.length;n++)M+=A.AY.A6[n].R.length;null!==ZC._n_(e=A.o["no-data"])&&0===M?(A.RZ=new ZC.DS(A),A.RZ.O8="nodata",C.load(A.RZ.o,c+".noData"),A.RZ.append({x:A.P.iX,y:A.P.iY,width:A.P.I,height:A.P.F}),A.RZ.append(e),A.RZ.K=A.K+"-nodata",A.RZ.parse()):A.RZ=null,A.E["plotarea-margins"]&&(A.E["plotarea-margins"]=null,A.o.plotarea=A.o.plotarea||{},A.o.plotarea.margin=A.E["plotarea-margin"],A.o.plotarea["margin-top"]=A.E["plotarea-margin-top"],A.o.plotarea["margin-right"]=A.E["plotarea-margin-right"],A.o.plotarea["margin-bottom"]=A.E["plotarea-margin-bottom"],A.o.plotarea["margin-left"]=A.E["plotarea-margin-left"]);var H=["top","right","bottom","left"];for(n=0;n<H.length;n++)A.E["plotarea.d-margin-"+H[n]]=null;if(ZC.Q.EU(A.A.K+"-tooltip"),"undefined"!=typeof A.E.datalength&&null!==ZC._n_(A.E.datalength)&&A.E.datalength.length>0&&"canvas"!==A.H.AC&&A.AY.A6)for(var L=0,P=A.AY.A6.length;L<P;L++){if(A.AY.A6[L].R.length<A.E.datalength[L])for(o=A.AY.A6[L].R.length,r=A.E.datalength[L];o<r;o++)l=A.K+"-plotset-plot-"+L+"-node-"+o,ZC.Q.EU([l+"-path",l+"-area-path",l+"-sh-path"]),-1!==ZC.AV(["scatter","bubble"],A.AF)&&ZC.Q.EU([l+"-marker-gradient",l+"-marker-path",l+"-marker-sh-path",l+"-marker-circle",l+"-marker-sh-circle"]),A.EM[L+"-"+o]=null;if(-1===ZC.AV(["scatter","bubble"],A.AF)||ZC.A4.browser.webkit)for(o=0,r=A.E.datalength[L];o<r;o++)l=A.K+"-plotset-plot-"+L+"-node-"+o,ZC.Q.EU([l+"-marker-gradient",l+"-marker-path",l+"-marker-sh-path",l+"-marker-circle",l+"-marker-sh-circle"])}for(A.E.datalength=null,n=0,a=A.AY.A6.length;n<a;n++)A.GA=A.GA||A.AY.A6[n].GA;(A.HF||"undefined"==typeof ZC.PB)&&(A.GA=!1),A.GA&&(A.LT.onStop=function(){A.M9="ready"}),-1===ZC.AV(A.H.KM,"skip_interactivity")&&(A.H9=new ZC.HS(A),A.H9.K=A.K+"-zoom",C.load(A.H9.o,c+".zoom"),A.H9.append(A.o.zoom),A.A8=new ZC.DS(A),A.A8.O8="tooltip",A.o.tooltip&&A.o.tooltip.placement&&A.o.tooltip.placement.indexOf("node")>-1?C.load(A.A8.o,c+".tooltip[dynamic]"):C.load(A.A8.o,c+".tooltip"),A.A8.append(A.o.tooltip),A.A8.PR=!0,A.A8.parse(),null!==ZC._n_(e=A.o.guide)&&(A.o["crosshair-x"]=e),(null!==ZC._n_(e=A.o["crosshair-x"])||C.PF("guide",A.AF)||C.PF("crosshair-x",A.AF))&&A.AJ["enable-guide"]&&(A.CX=new ZC.D0(A),A.CX.O8="crosshairx",C.load(A.CX.o,[c+".guide",c+".crosshair-x"],!0,!0),A.CX.append(e),A.CX.parse(),A.E["guide-on"]=!0),(null!==ZC._n_(e=A.o["crosshair-y"])||C.PF("crosshair-y",A.AF))&&A.AJ["enable-guide"]&&(A.H7=new ZC.D0(A),A.H7.O8="crosshairy",C.load(A.H7.o,[c+".guide",c+".crosshair-y"],!0,!0),A.H7.append(e),A.H7.parse(),A.E["guide-on"]=!0)),A.OU(),ZC.AP.BZ("gparse",A.A,A.I3()),null!==ZC._n_(e=A.o.refresh)&&(A.HM={type:"full",interval:10,transport:"http",method:"pull","adjust-scale":!1,"max-ticks":20,"reset-timeout":100,"stop-timeout":0,storage:!1,"storage-size":1e3},ZC._cp_(e,A.HM),A.U8=1),A.M9="parse.complete"},OU:function(){},PS:function(){},M3:function(e,i,t){var n=this,a=(t=t||n.P).iX,l=t.iY,o=t.I,r=t.F;if("svg"===i){if(n.AJ["3d"]){var s,A=[];e=1;var C,c,u,p,Z=[],h=a-ZC.AN.E3,d=l-ZC.AN.E2;s=new ZC.CF(n,h+o/2-e,d-e,ZC.AN.FS),p=ZC._i_(s.EB[1]),s=new ZC.CF(n,h+o/2-e,d-e,0),u=ZC._i_(s.EB[1]),Z.push(new ZC.CF(n,h-e,d-e,p<u?ZC.AN.FS:0),new ZC.CF(n,h+o+e,d-e,p<u?ZC.AN.FS:0)),s=new ZC.CF(n,h+o-e,d+r/2-e,ZC.AN.FS),C=ZC._i_(s.EB[0]),s=new ZC.CF(n,h+o-e,d+r/2-e,0),c=ZC._i_(s.EB[0]),Z.push(new ZC.CF(n,h+o+e,d-e,C>c?ZC.AN.FS:0),new ZC.CF(n,h+o+e,d+r+e,C>c?ZC.AN.FS:0)),s=new ZC.CF(n,h+o/2-e,d+r+e,ZC.AN.FS),p=ZC._i_(s.EB[1]),s=new ZC.CF(n,h+o/2-e,d+r+e,0),u=ZC._i_(s.EB[1]),Z.push(new ZC.CF(n,h+o+e,d+r+e,p>u?ZC.AN.FS:0),new ZC.CF(n,h-e,d+r+e,p>u?ZC.AN.FS:0)),s=new ZC.CF(n,h-e,d+r/2-e,ZC.AN.FS),C=ZC._i_(s.EB[0]),s=new ZC.CF(n,h-e,d+r/2-e,0),c=ZC._i_(s.EB[0]),Z.push(new ZC.CF(n,h-e,d+r+e,C<c?ZC.AN.FS:0),new ZC.CF(n,h-e,d-e,C<c?ZC.AN.FS:0)),Z.push(Z[0]);for(var f=0;f<Z.length;f++)s=Z[f],A.push([ZC._i_(s.EB[0]),ZC._i_(s.EB[1])].join(","));return A.join(" ")}return[[a-e,l-e].join(","),[a+o+e,l-e].join(","),[a+o+e,l+r+e].join(","),[a-e,l+r+e].join(","),[a-e,l-e].join(",")].join(" ")}return"box"===i?a-e+","+(l-e)+","+(o+2*e)+","+(r+2*e):(n.AJ["3d"]&&(e+=10),"rect("+(l-e)+"px,"+(a+o+e)+"px,"+(l+r+e)+"px,"+(a-e)+"px)")},autoFit:function(){var e,i=this;if(i.AJ["3d"]&&i.F0["auto-fit"]){var t=!1;for(i.F0.zoom=1;!t&&i.F0.zoom>.25;){t=!0;var n=i.M3(0,"svg").split(" ");for(e=0;e<n.length;e++){var a=n[e].split(",");(ZC._i_(a[0])<i.iX+i.P.DV||ZC._i_(a[0])>i.iX+i.I-i.P.E6||ZC._i_(a[1])<i.iY+i.P.E5||ZC._i_(a[1])>i.iY+i.F-i.P.DP)&&(t=!1)}t||(i.F0.zoom-=.05),t&&(i.F0.zoom-=.025)}}},build:function(){var e,i,t,n,a,l,o,r,s=this,A=s.A.I+"/"+s.A.F,C="0/0";if(s.autoFit(),!s.H.usc()){var c=2,u=6;if(null!==ZC._n_(e=s.P.o["mask-tolerance"])&&(e instanceof Array?(c=u=ZC._i_(e[0]),e.length>1&&(u=ZC._i_(e[1]))):c=u=ZC._i_(e)),"svg"===s.A.AC&&s.AJ.clip&&(ZC.Q.EU([s.K+"-clip",s.K+"-clip-hover",s.K+"-clip-preview"]),s.A.K7.appendChild(ZC.Q.XA({id:s.K+"-clip",path:s.M3(c,"svg")})),s.A.K7.appendChild(ZC.Q.XA({id:s.K+"-clip-hover",path:s.M3(u,"svg")})),s.BA)){var p=s.AJ["3d"];s.AJ["3d"]=!1,s.A.K7.appendChild(ZC.Q.XA({id:s.K+"-clip-preview",path:s.M3(0,"svg",s.BA.AQ)})),s.AJ["3d"]=p}var Z=!s.AJ.clip,h=Z?null:s.M3(c),d=Z?null:"url(#"+s.K+"-clip)",f=Z?null:s.M3(u),_=Z?null:"url(#"+s.K+"-clip-hover)";if(s.BA&&(a=Z?null:s.M3(0,s.A.AC,s.BA.AQ),l=Z?null:"url(#"+s.K+"-clip-preview)"),ZC.Q.JW({cls:"zc-abs",id:s.K,p:ZC.AK(s.A.K+"-graphset"),tl:C,wh:A},s.A.AC),s.A.NS.graph&&ZC.Q.HE({cls:"zc-abs zc-layer zc-persistent",id:s.K+"-c",p:ZC.AK(s.K),wh:A},s.A.AC),ZC.Q.JW({id:s.K+"-plotarea",p:ZC.AK(s.K),tl:C,wh:A,position:"absolute"},s.A.AC),s.o.plotarea&&s.A.NS.plotarea&&ZC.Q.HE({cls:"zc-abs zc-layer",id:s.K+"-plotarea-c",p:ZC.AK(s.K+"-plotarea"),wh:A},s.A.AC),"null"!==s.AF&&s.A.NS.plots){for(ZC.Q.JW({id:s.K+"-scales-bl",p:ZC.AK(s.K),tl:C,wh:A,position:"absolute","clip-path":d,clip:h},s.A.AC),i=0;i<s.A5F;i++)ZC.Q.HE({cls:"zc-abs zc-layer",id:s.K+"-scales-bl-"+i+"-c",p:ZC.AK(s.K+"-scales-bl"),wh:A},s.A.AC);if(s.AY.E["plot-sort"]){for(i=0,t=s.AY.A6.length;i<t;i++){for(s.AY.A6[i].UJ={},n=0;n<s.AY.A6[i].SO;n++)ZC.Q.EU(s.K+"-plots-bl-"+n);for(n=0;n<s.AY.A6[i].A19;n++)ZC.Q.EU(s.K+"-plots-fl-"+n)}delete s.AY.E["plot-sort"]}if(s.A.K5||s.AJ["3d"])ZC.AK(s.K+"-plots-bl")||ZC.Q.JW({id:s.K+"-plots-bl",p:ZC.AK(s.K),after:ZC.AK(s.K+"-scales-bl"),tl:C,wh:A,position:"absolute","clip-path":d,clip:h},s.A.AC),(o=ZC.Q.HE({cls:"zc-abs zc-layer zc-bl",id:s.K+"-plots-bl-c",p:ZC.AK(s.K+"-plots-bl"),wh:A},s.A.AC)).setAttribute("data-clip",s.M3(c,"box"));else for(i=0,t=s.AY.A6.length;i<t;i++)for(r=s.AY.M0[i],n=s.AY.A6[i].SO-1;n>=0;n--)ZC.AK(s.K+"-plots-bl-"+n)||ZC.Q.JW({id:s.K+"-plots-bl-"+n,p:ZC.AK(s.K),after:ZC.AK(s.K+"-scales-bl"),tl:C,wh:A,position:"absolute","clip-path":d,clip:h},s.A.AC),(o=ZC.Q.HE({cls:"zc-abs zc-layer zc-bl",id:s.K+"-plot-"+r+"-bl-"+n+"-c",p:ZC.AK(s.K+"-plots-bl-"+n),wh:A},s.A.AC)).setAttribute("data-clip",s.M3(c,"box")),o.style.display="block";for(i=0;i<s.VB;i++)ZC.Q.HE({cls:"zc-abs zc-layer",id:s.K+"-scales-ml-"+i+"-c",p:ZC.AK(s.K),wh:A},s.A.AC);if(s.A.K5||s.AJ["3d"])ZC.AK(s.K+"-plots-fl")||ZC.Q.JW({id:s.K+"-plots-fl",p:ZC.AK(s.K),after:ZC.AK(s.K+"-scales-ml-"+(s.VB-1)+"-c"),tl:C,wh:A,position:"absolute"},s.A.AC),(o=ZC.Q.HE({cls:"zc-abs zc-layer zc-fl",id:s.K+"-plots-fl-c",p:ZC.AK(s.K+"-plots-fl"),wh:A},s.A.AC)).setAttribute("data-clip",s.M3(u,"box"));else for(i=0,t=s.AY.A6.length;i<t;i++)for(r=s.AY.M0[i],n=s.AY.A6[i].A19-1;n>=0;n--)ZC.AK(s.K+"-plots-fl-"+n)||ZC.Q.JW({id:s.K+"-plots-fl-"+n,p:ZC.AK(s.K),after:ZC.AK(s.K+"-scales-ml-"+(s.VB-1)+"-c"),tl:C,wh:A,position:"absolute"},s.A.AC),(o=ZC.Q.HE({cls:"zc-abs zc-layer zc-fl",id:s.K+"-plot-"+r+"-fl-"+n+"-c",p:ZC.AK(s.K+"-plots-fl-"+n),wh:A},s.A.AC)).setAttribute("data-clip",s.M3(u,"box")),o.style.display="block";for(zingchart.DEV.PLOTSHLAYER&&(ZC.Q.JW({id:s.K+"-plots-hover",p:ZC.AK(s.K),tl:C,wh:A,position:"absolute"},s.A.AC),ZC.Q.HE({cls:"zc-abs zc-layer zc-fl",id:s.K+"-plots-hover-c",p:ZC.AK(s.K+"-plots-hover"),wh:A},s.A.AC)),ZC.Q.JW({id:s.K+"-scales-fl",p:ZC.AK(s.K),tl:C,wh:A,position:"absolute","clip-path":d,clip:h},s.A.AC),i=0;i<s.A4Z;i++)ZC.Q.HE({cls:"zc-abs zc-layer",id:s.K+"-scales-fl-"+i+"-c",p:ZC.AK(s.K+"-scales-fl"),wh:A},s.A.AC);if(s.BA&&(ZC.Q.JW({id:s.K+"-preview",p:ZC.AK(s.A.K+"-tools"),tl:C,wh:A,position:"absolute","clip-path":l,clip:a},s.A.AC),ZC.Q.HE({cls:"zc-abs",id:s.K+"-preview-c",p:ZC.AK(s.K+"-preview"),wh:A},s.A.AC)),ZC.Q.JW({id:s.K+"-scroll",p:ZC.AK(s.K),tl:C,wh:A,position:"absolute"},s.A.AC),s.o["scroll-x"]&&ZC.Q.HE({cls:"zc-abs",id:s.K+"-scroll-x-c",p:ZC.AK(s.K+"-scroll"),wh:A},s.A.AC),s.o["scroll-y"]&&ZC.Q.HE({cls:"zc-abs",id:s.K+"-scroll-y-c",p:ZC.AK(s.K+"-scroll"),wh:A},s.A.AC),ZC.Q.JW({id:s.K+"-plots-vb",p:ZC.AK(s.K),tl:C,wh:A,position:"absolute"},s.A.AC),s.A.NS["value-box"])if(s.A.K5||s.AJ["3d"])ZC.Q.HE({cls:"zc-abs zc-layer zc-vb",id:s.K+"-plots-vb-c",p:ZC.AK(s.K+"-plots-vb"),wh:A},s.A.AC);else for(i=0,t=s.AY.A6.length;i<t;i++)ZC.Q.HE({cls:"zc-abs zc-layer zc-vb",id:s.K+"-plot-"+i+"-vb-c",p:ZC.AK(s.K+"-plots-vb"),wh:A},s.A.AC)}(s.o.title||s.o.subtitle||s.o.source||s.o["no-data"])&&(ZC.Q.JW({id:s.K+"-titles",p:ZC.AK(s.K),tl:C,wh:A,position:"absolute"},s.A.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:s.K+"-titles-c",p:ZC.AK(s.K+"-titles"),wh:A},s.A.AC)),ZC.Q.JW({cls:"zc-abs",wh:A,id:s.K+"-hover",p:ZC.AK(s.A.K+"-hover"),"clip-path":_,clip:f},s.A.AC),"canvas"===s.A.AC&&(ZC.AK(s.K+"-hover").style.clip=f),ZC.Q.HE({cls:"zc-abs zc-layer",id:s.K+"-hover-c",p:ZC.AK(s.K+"-hover"),wh:A},s.A.AC),s.A.NS.maps&&-1!==JSON.stringify(s.o).indexOf("zingchart.maps")&&(ZC.Q.JW({cls:"zc-abs",wh:A,id:s.K+"-objects-maps",p:ZC.AK(s.A.K+"-objects-maps"),"clip-path":_,clip:f},s.A.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:s.K+"-objects-maps-sh-c",p:ZC.AK(s.K+"-objects-maps"),wh:A},s.A.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:s.K+"-objects-maps-c",p:ZC.AK(s.K+"-objects-maps"),wh:A},s.A.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:s.K+"-objects-maps-click-c",p:ZC.AK(s.K+"-objects-maps"),wh:A},s.A.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:s.K+"-objects-maps-hover-c",p:ZC.AK(s.K+"-objects-maps"),wh:A},s.A.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:s.K+"-objects-maps-print-c",p:ZC.AK(s.K+"-objects-maps"),wh:A,display:"none"},s.A.AC)),s.initObjectsLayers(),s.o.legend&&(ZC.Q.HE({cls:"zc-abs zc-layer",id:s.K+"-legend-c",p:ZC.AK(s.A.K+"-legend"),wh:A},s.A.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:s.K+"-legend-scroll-c",p:ZC.AK(s.A.K+"-legend"),wh:A},s.A.AC))}s.Z=s.H.usc()?s.H.mc():ZC.AK(s.K+"-c")},initObjectsLayers:function(){var e=this,i=e.A.I+"/"+e.A.F;!ZC.AK(e.K+"-objects-bottom")&&e.A.NS["objects-bottom"]&&(e.o.shapes||e.o.labels||e.o.arrows||e.o.images)&&(ZC.Q.JW({cls:"zc-abs",wh:i,id:e.K+"-objects-bottom",p:ZC.AK(e.A.K+"-objects-bottom")},e.A.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:e.K+"-objects-bottom-sh-c",p:ZC.AK(e.K+"-objects-bottom"),wh:i},e.A.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:e.K+"-objects-bottom-c",p:ZC.AK(e.K+"-objects-bottom"),wh:i},e.A.AC)),!ZC.AK(e.K+"-objects-top")&&e.A.NS["objects-top"]&&(e.o.shapes||e.o.labels||e.o.arrows||e.o.images)&&(ZC.Q.JW({cls:"zc-abs",wh:i,id:e.K+"-objects-top",p:ZC.AK(e.A.K+"-objects-top")},e.A.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:e.K+"-objects-top-sh-c",p:ZC.AK(e.K+"-objects-top"),wh:i},e.A.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:e.K+"-objects-top-c",p:ZC.AK(e.K+"-objects-top"),wh:i},e.A.AC)),(e.A.NS["objects-bottom"]||e.A.NS["objects-top"])&&(e.o.shapes||e.o.labels||e.o.arrows)&&ZC.Q.HE({cls:"zc-abs zc-layer",id:e.K+"-objects-print-c",p:ZC.AK(e.K+"-objects-top"),wh:i,display:"none"},e.A.AC),!ZC.AK(e.K+"-objects-click")&&(e.A.NS["objects-bottom"]||e.A.NS["objects-top"])&&(e.o.shapes||e.o.labels||e.o.arrows||e.o.images)&&(ZC.Q.JW({cls:"zc-abs",wh:i,id:e.K+"-objects-click",p:ZC.AK(e.A.K+"-hover")},e.A.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:e.K+"-objects-click-c",p:ZC.AK(e.K+"-objects-click"),wh:i},e.A.AC)),!ZC.AK(e.K+"-objects-hover")&&(e.A.NS["objects-bottom"]||e.A.NS["objects-top"])&&(e.o.shapes||e.o.labels||e.o.arrows||e.o.images)&&(ZC.Q.JW({cls:"zc-abs",wh:i,id:e.K+"-objects-hover",p:ZC.AK(e.A.K+"-hover")},e.A.AC),ZC.Q.HE({cls:"zc-abs zc-layer",id:e.K+"-objects-hover-c",p:ZC.AK(e.K+"-objects-hover"),wh:i},e.A.AC))},A0E:function(){},clear_:function(){},destroy:function(){var e,i=this;null!==ZC._n_(e=i.A.S6[i.K])&&"feed"===i.HM.type&&(e.send("zingchart.stopfeed"),e.close(),i.A.S6[i.K]=null),i.GA&&i.LT.stop(!0),i.M9="clear.init",i.unbind(),i.BF&&i.BF.unbind(),i.BA&&i.BA.unbind(),i.I9&&i.I9.unbind(),i.I6&&i.I6.unbind(),i.M9="clear.complete"},clear:function(e,i){null===ZC._n_(e)&&(e=!1),null===ZC._n_(i)&&(i=!1);var t,n,a,l,o=this;o.T7={},null===ZC._n_(t=o.A.S6[o.K])||e||"feed"===o.HM.type&&(t.send("zingchart.stopfeed"),t.close(),o.A.S6[o.K]=null),o.GA&&o.LT.stop(!0),o.M9="clear.init",o.unbind(e),o.A0E(!1,!0),o.LN(),o.LN("click"),o.LN("guide",!0),o.LN("print",!0),o.LN("textprint",!0),e||(!o.BA||o.BA&&!o.BA.LG)&&o.LN("static",!0),o.AY.YH=[],o.A.SP=[],zingchart.SKIP.LEGEND||o.BF&&o.BF.clear(),o.E.datalength=[];var r=ZC.ie67?ZC.AK(o.A.K):null;if(ZC.mobile||ZC.ie67)ZC.A4("."+o.K+"-node-area",r).remove();else if(ZC.AK(o.A.K+"-img")&&ZC.AK(o.A.K+"-map")){ZC.AK(o.A.K+"-img").setAttribute("useMap","");var s=ZC.AK(o.A.K+"-map").cloneNode(!0);for(n=(a=s.childNodes.length)-1;n>=0;n--)-1!==s.childNodes[n].className.indexOf(o.K+"-node-area")&&s.removeChild(s.childNodes[n]);ZC.Q.EU(o.A.K+"-map"),ZC.AK(o.A.K+"-top").appendChild(s),ZC.AK(o.A.K+"-img").setAttribute("useMap","#"+o.A.K+"-map")}switch(o.AY.HN=[],ZC.A4("."+o.K+"-value-box",r).remove(),ZC.A4("."+o.K+"-scale-marker-label",r).remove(),ZC.A4("."+o.K+"-scale-item",r).remove(),ZC.A4("."+o.K+"-scale-label",r).remove(),ZC.A4("."+o.K+"-guide-label",r).remove(),ZC.A4("."+o.K+"-shape-label",r).remove(),ZC.A4("."+o.K+"-mapshape-label",r).remove(),e||ZC.A4("."+o.K+"-preview-item",r).remove(),o.A.AC){case"svg":for(n=0,a=o.AY.A6.length;n<a;n++)o.AY.A6[n].HG=null;ZC.A4("#"+o.A.K+"-defs").children().each(function(){"LINK"!==this.tagName.toUpperCase()&&(0!==this.id.indexOf(o.K+"-")&&1!==o.A.AH.length||(e?this.id!==o.K+"-gradient"&&-1===this.id.indexOf("-preview-gradient")&&-1===this.id.indexOf("-menu-trigger-gradient")&&-1!==this.id.indexOf(o.K+"-plotset-plot-")&&(i&&o.GA||(-1!==this.id.indexOf(o.K+"-legend-")?zingchart.SKIP.LEGEND||ZC.A4(this).remove():ZC.A4(this).remove())):-1===this.id.indexOf("zc-menu-")&&-1===this.id.indexOf("-menu-trigger-")&&(-1!==this.id.indexOf(o.K+"-legend-")?zingchart.SKIP.LEGEND||ZC.A4(this).remove():o.BA&&o.BA.LG?-1===this.id.indexOf("-preview-gradient")&&ZC.A4(this).remove():ZC.A4(this).remove())))}),e||ZC.Q.EU([o.K+"-clip",o.K+"-clip-hover",o.K+"-clip-preview"]),ZC.A4("#"+o.A.K+"-svg").children().each(function(){var e=o.K+"-";"clippath"===this.tagName.toLowerCase()&&this.id.substring(0,e.length)===e&&this.id!==o.K+"-clip"&&this.id!==o.K+"-clip-hover"&&this.id!==o.K+"-clip-preview"&&ZC.Q.EU(this.id)})}if(ZC.Q.EU(o.K+"-nodata"),ZC.Q.EU(o.A.K+"-tooltip-text-float"),e||(ZC.Q.EU([o.K+"-title",o.K+"-subtitle",o.K+"-source",o.K+"-hover"]),zingchart.SKIP.LEGEND||o.BF&&(ZC.Q.EU(o.K+"-legend-c"),ZC.Q.EU(o.K+"-legend-scroll-c"),ZC.A4("."+o.K+"-legend-item-area",r).remove(),ZC.A4("."+o.K+"-legend-marker-area",r).remove(),ZC.A4("."+o.K+"-legend-item",r).remove(),ZC.A4("."+o.K+"-legend-header",r).remove(),ZC.A4("."+o.K+"-legend-footer",r).remove(),ZC.A4("."+o.K+"-legend-frame",r).remove(),o.BF.gc(),o.BF=null),o.BA&&(o.BA.LG&&!o.A.E.resize||(o.BA.unbind(),ZC.A4("."+o.K+"-preview-handler").remove(),ZC.A4("."+o.K+"-preview-mask").remove(),ZC.A4("#"+o.K+"-preview").remove(),o.BA.gc(),o.BA=null)),o.I9&&(o.I9.unbind(),o.I9=null),ZC.Q.IQ(ZC.AK(o.K+"-scroll-x-c"),o.A.AC,o.iX,o.iY,o.I,o.F,o.K),ZC.Q.IQ(ZC.AK(o.K+"-scroll-y-c"),o.A.AC,o.iX,o.iY,o.I,o.F,o.K),ZC.A4("#"+o.K+"-scroll-x-handle").remove(),ZC.A4("#"+o.K+"-scroll-x-bar").remove(),o.I6&&(o.I6.unbind(),o.I6=null),ZC.A4("#"+o.K+"-scroll-y-handle").remove(),ZC.A4("#"+o.K+"-scroll-y-bar").remove(),ZC.A4("#"+o.K+"-c").empty(),o.H.QL[0]!==o.H.QL[1]&&""!==o.H.QL[1]&&("canvas"===o.H.AC&&ZC.A4("#"+o.K+" canvas").each(function(){this.width=1,this.height=1,ZC.Q.EU(this)}),ZC.A4("#"+o.K+" div").each(function(){ZC.Q.EU(this)}),ZC.Q.EU(o.K))),ZC.A4("#"+o.K+" .zc-layer").each(function(){var t=ZC.Q.SV(this);if(-1===t.indexOf("zc-persistent")){if(e&&(this.id===o.K+"-plotarea-c"||this.id===o.K+"-titles-c"))return;if(-1===this.id.indexOf(o.K+"-plot-")&&-1===this.id.indexOf(o.K+"-plots-"))ZC.Q.IQ(this,o.H.AC,o.iX,o.iY,o.I,o.F,o.K);else if(i&&o.GA&&!o.HF){if("canvas"!==o.H.AC)for(var n=0,a=o.AY.A6.length;n<a;n++)o.E.datalength[n]=o.AY.A6[n].R.length;(l=o.A.K5?new RegExp("-plots-[a-z]+-c","g").exec(this.id):new RegExp("-plot-(\\d+)-[a-z]+-\\d+-","g").exec(this.id))&&(!o.E["plot"+l[1]+".visible"]&&"remove"===o.getToggleAction()||o.A.K5)&&ZC.Q.IQ(this,o.H.AC,o.iX,o.iY,o.I,o.F,o.K),-1===t.indexOf("zc-vb")&&-1===t.indexOf("zc-fl")||ZC.Q.IQ(this,o.H.AC,o.iX,o.iY,o.I,o.F,o.K)}else ZC.Q.IQ(this,o.H.AC,o.iX,o.iY,o.I,o.F,o.K)}}),-1!==ZC.AV(o.H.KM,"use_single_canvas")){var A,C,c;(A=ZC.AK(o.H.K+"-main-c"))&&ZC.Q.IQ(A,o.H.AC,o.iX,o.iY,o.I,o.F,o.K),(C=ZC.AK(o.H.K+"-main-c-top"))&&ZC.Q.IQ(C,o.H.AC,o.iX,o.iY,o.I,o.F,o.K),(c=ZC.AK(o.H.K+"-print-c"))&&ZC.Q.IQ(c,o.H.AC,o.iX,o.iY,o.I,o.F,o.K)}o.clear_(),o.A.E.resize=!1,o.M9="clear.complete"},unbind:function(e,i){null===ZC._n_(e)&&(e=!1);var t=this;(-1===ZC.AV(t.H.KM,"skip_interactivity")||i)&&(ZC.A4("."+t.K+"-node-area").die("mousedown mouseover touchstart",t.WU).die("mouseup mouseout touchend",t.A16).die("mousemove touchmove",t.A0L).die("click",t.T5).die("contextmenu",t.T5).die("dblclick",t.A1E),t.BF&&(zingchart.SKIP.LEGEND||(ZC.A4("."+t.K+"-legend-item-area").die("mouseup touchstart",t.SG).die("DOMMouseScroll",t.zc_legend_mousescroll).die("mousewheel",t.zc_legend_mousescroll),ZC.A4("."+t.K+"-legend-marker-area").die("mouseup touchstart",t.SG).die("DOMMouseScroll",t.zc_legend_mousescroll).die("mousewheel",t.zc_legend_mousescroll),ZC.A4("#"+t.K+"-legend-frame").die("DOMMouseScroll",t.zc_legend_mousescroll).die("mousewheel",t.zc_legend_mousescroll),ZC.mobile||(ZC.A4("."+t.K+"-legend-item-area").die(ZC.Q.C0("mouseover"),t.QR).die(ZC.Q.C0("mouseout"),t.R4).die(ZC.Q.C0("mousemove"),t.PI),ZC.A4("."+t.K+"-legend-marker-area").die(ZC.Q.C0("mouseover"),t.QR).die(ZC.Q.C0("mouseout"),t.R4).die(ZC.Q.C0("mousemove"),t.PI))))),t.AC5()},AC5:function(){},S5:function(){},QK:function(){},KF:function(){},SD:function(){},RP:function(){},LN:function(e,i){var t=this;e=e||"hover",null===ZC._n_(i)&&(i=!1);var n=ZC.AK((i?t.A.K:t.K)+"-"+e+"-c");n&&(ZC.Q.IQ(n,t.H.AC,t.iX,t.iY,t.I,t.F,t.K,"textprint"===e),ZC.A4("."+t.K+"-label-hover").remove()),"hover"===e&&(ZC.Q.IQ(ZC.AK(t.K+"-objects-hover-c"),t.H.AC,t.iX,t.iY,t.I,t.F,t.K),ZC.Q.IQ(ZC.AK(t.K+"-objects-maps-hover-c"),t.H.AC,t.iX,t.iY,t.I,t.F,t.K),zingchart.DEV.PLOTSHLAYER&&ZC.Q.IQ(ZC.AK(t.K+"-plots-hover-c"),t.H.AC,t.iX,t.iY,t.I,t.F,t.K)),"click"===e&&(ZC.Q.IQ(ZC.AK(t.K+"-objects-click-c"),t.H.AC,t.iX,t.iY,t.I,t.F,t.K),ZC.Q.IQ(ZC.AK(t.K+"-objects-maps-click-c"),t.H.AC,t.iX,t.iY,t.I,t.F,t.K)),t.hideLayer_(e,i)},hideLayer_:function(){},A66:function(e,i){var t,n=this;if(null!==ZC._n_(e)&&null!==ZC._n_(i)){var a=n.AY.A6[e].IY,l=n.AY.A6[e].RI;if("none"===a)return;if(null!==ZC._n_(n.CH["p"+e])){if(null!==ZC._n_(n.CH["p"+e]["n"+i])){if(delete n.CH["p"+e]["n"+i],l)for(t=0;t<n.AY.A6.length;t++)delete n.CH["p"+t]["n"+i]}else if("graph"===a?(n.CH={},n.CH["p"+e]={}):"plot"===a&&(n.CH["p"+e]={}),n.CH["p"+e]["n"+i]=!0,l)for(t=0;t<n.AY.A6.length;t++)n.CH["p"+t]=n.CH["p"+t]||{},n.CH["p"+t]["n"+i]=!0}else if("graph"===a&&(n.CH={}),n.CH["p"+e]={},n.CH["p"+e]["n"+i]=!0,l)for(t=0;t<n.AY.A6.length;t++)n.CH["p"+t]=n.CH["p"+t]||{},n.CH["p"+t]["n"+i]=!0}null!==ZC._n_(e)&&null!==ZC._n_(i)&&(n.HF=!0,n.K3(!0,!0))},paint:function(e){function i(){if(s.AJ["3d"]){var e=ZC.DH.DA(s.P,s,s.P.iX-ZC.AN.E3,s.P.iX-ZC.AN.E3+s.P.I,s.P.iY-ZC.AN.E2,s.P.iY-ZC.AN.E2+s.P.F,ZC.AN.FS+10,ZC.AN.FS+10,"y"),i=ZC.DH.DA(s.P,s,s.P.iX-ZC.AN.E3,s.P.iX-ZC.AN.E3+s.P.I,s.P.iY-ZC.AN.E2,s.P.iY-ZC.AN.E2+s.P.F,ZC.AN.FS,ZC.AN.FS,"y");i.K=s.K+"-plotarea",i.P3=e.D,s.CK.add(i)}else{s.P.Z=s.P.C6=s.H.usc()?s.H.mc():ZC.AK(s.K+"-plotarea-c");var n,a=[s.P.iX,s.P.iY,s.P.I,s.P.F],l=s.P.AT,o=s.P.AT,r=s.P.AT,A=s.P.AT;""!==(t=s.P.PQ)&&(n=t.split(/\s/),l=ZC._i_(n[0])),""!==(t=s.P.OC)&&(n=t.split(/\s/),o=ZC._i_(n[0])),""!==(t=s.P.NL)&&(n=t.split(/\s/),r=ZC._i_(n[0])),""!==(t=s.P.P6)&&(n=t.split(/\s/),A=ZC._i_(n[0])),s.P.iX-=A+1,s.P.iY-=l+1,s.P.I+=A+o+1,s.P.F+=l+r+1,s.P.paint(),s.P.iX=a[0],s.P.iY=a[1],s.P.I=a[2],s.P.F=a[3]}}null===ZC._n_(e)&&(e=!1);var t,n,a,l,o,r,s=this;s.A.GRAPHID=s.K,s.UW=e,window.clearTimeout(ZC.ASYNC_TICK[s.K]),s.A.clearLabelBoxes("vb"+s.L);var A,C,c,u,p,Z,h,d=s.BT("k")[0],f=ZC.MAX,_=-ZC.MAX,g={},v=s.AY.A6,b=0;for(u=0;u<v.length;u++)if(v[u].o.rel)for(c=0;c<v.length;c++)if(v[c].o.id&&v[c].o.id===v[u].o.rel){b++,h=!0;var m=[];for(o=0;o<v[c].R.length;o++)(d.ED?v[c].R[o].BU>=d.B4&&v[c].R[o].BU<=d.BL:v[c].R[o].L>=d.V&&v[c].R[o].L<=d.A1)?(A=v[c].R[o].AD,f=Math.min(f,A),_=Math.max(_,A),h?(h=!1,v[c].R[o].BU?m.push([v[c].R[o].BU,0]):m.push(0),Z=A):v[c].R[o].BU?m.push([v[c].R[o].BU,100*(A-Z)/Z]):m.push(100*(A-Z)/Z)):v[c].R[o].BU?m.push([v[c].R[o].BU,0]):m.push(0);g["p-"+u]=[].concat(m)}if(b>0){for(f=ZC.MAX,_=-ZC.MAX,u=0;u<v.length;u++)if(v[u].o.rel&&g["p-"+u])for(o=0;o<v[u].R.length;o++)2===(C=g["p-"+u][o]).length?(A=C[1],v[u].X[o]=C,v[u].R[o].AD=v[u].R[o].CR=C[1]):(A=C,v[u].X[o]=v[u].R[o].AD=v[u].R[o].CR=C),v[u].FP(o),f=Math.min(f,A),_=Math.max(_,A);var B=s.BT("v")[0];B.RN(f,_,!0),B.IW()}for(s.A.E["g-"+s.L+"-selection"]&&(s.CH=JSON.parse(s.A.E["g-"+s.L+"-selection"])),s.KD=!1,n=0,a=s.AY.A6.length;n<a;n++)s.IT[n]=!1;for(n in s.CH)if(s.CH.hasOwnProperty(n)){var E=ZC._i_(n.replace("p",""));for(p in s.CH[n])if(s.CH[n].hasOwnProperty(p)){s.IT[E]=!0,s.KD=!0;break}}if(s.A.A0G(),s.NW(),s.UW?s.E["plotarea.paint"]&&(i(),s.E["plotarea.paint"]=null):(s.build(),s.Z&&(s.C6=s.Z,s.b()),i()),"xy"===s.AJ.layout||"yx"===s.AJ.layout){var K=s.BT("v"),F=null;for(o=0;o<K.length;o++)(0===o||K[o].o["ref-zero"])&&K[o].FU<=0&&K[o].GY>=0&&K[o].T3&&(F=o);if(null!==ZC._n_(F)){var D=K[F].B2(0);for(o=0;o<K.length;o++)if(o!==F&&K[o].o["sync-zero"]&&K[o].FU<=0&&K[o].GY>=0&&K[o].T3){var X=K[o].B2(0);if(ZC._a_(X-D)>=1)for(var I=!0,x=0;I;)X>D?K[o].CQ?K[o].AU?K[o].A5+=1:K[o].BW+=1:K[o].AU?K[o].BW+=1:K[o].A5+=1:K[o].CQ?K[o].AU?K[o].BW+=1:K[o].A5+=1:K[o].AU?K[o].A5+=1:K[o].BW+=1,x++,K[o].IW(),K[o].A7I(),(x>(K[o].CQ?s.P.I:s.P.F)||ZC._a_(K[o].B2(0)-D)<1)&&(I=!1)}}}for(o=0,r=s.BM.length;o<r;o++)s.BM[o].Z=s.BM[o].C6=s.H.usc()?s.H.mc():ZC.AK(s.K+"-scales-bl-0-c"),s.A.O3=!0,s.BM[o].paint(),s.A.ZI(),s.A.O3=!1;var y="undefined"!=typeof s.E["shared-zoom"]&&null!==ZC._n_(s.E["shared-zoom"])&&s.E["shared-zoom"];if(s.BA&&s.BA.LG?s.BA.HY&&(s.BA.HY=!0,s.BA.paint()):s.E["skip-preview"]||!s.BA||s.UW&&!s.BA.HY||y||(s.BA.HY=!0,s.BA.paint()),s.E["shared-zoom"]=null,s.E["skip-preview"]=null,s.I9&&s.I9.paint(),s.I6&&s.I6.paint(),s.UW||(l=s.H.usc()?s.H.mc():ZC.AK(s.K+"-titles-c"),s.IX&&s.IX.AM&&null!==ZC._n_(s.IX.AR)&&(s.IX.Z=s.IX.C6=l,s.IX.paint(),!s.IX.K5&&ZC.AK(s.A.K+"-map")&&(ZC.AK(s.A.K+"-map").innerHTML+=ZC.AP.O1(s.K,s.IX))),s.KJ&&s.KJ.AM&&null!==ZC._n_(s.KJ.AR)&&(s.KJ.Z=s.KJ.C6=l,s.KJ.paint(),!s.KJ.K5&&ZC.AK(s.A.K+"-map")&&(ZC.AK(s.A.K+"-map").innerHTML+=ZC.AP.O1(s.K,s.KJ))),s.MP&&s.MP.AM&&null!==ZC._n_(s.MP.AR)&&(s.MP.Z=s.MP.C6=l,s.MP.paint(),!s.MP.K5&&ZC.AK(s.A.K+"-map")&&(ZC.AK(s.A.K+"-map").innerHTML+=ZC.AP.O1(s.K,s.MP))),s.RZ&&s.RZ.AM&&null!==ZC._n_(s.RZ.AR)&&(s.RZ.Z=s.RZ.C6=l,s.RZ.paint())),s.IX&&s.IX.EL(),s.KJ&&s.KJ.EL(),s.MP&&s.MP.EL(),s.AJ["3d"]||s.U3(),s.A.O3=!s.GA,zingchart.DEV.SKIPTRACKERS&&(s.A.O3=!1),s.A.E["graph."+s.K+".disableanimation"])for(o=0,r=s.AY.A6.length;o<r;o++)s.AY.A6[o].GA=!1;s.AY.paint(),s.H.paintHistory()},U3:function(){},clearPreview:function(){var e=this;e.BA&&(ZC.Q.IQ(ZC.AK(e.K+"-preview-c"),e.A.AC,e.iX,e.iY,e.I,e.F,e.K),e.A.H9&&!e.A.H9.A04&&e.BA.reset(),e.BA.HY=!0)},flatten:function(){},_end_:function(){function e(e){var i,t,n=(e.targetid||e.target.id).replace("-area-path","").replace("-path","").replace(/--([a-zA-Z0-9]+)/,"").replace("-marker","").replace("-circle","").split("-").reverse();return"node"===n[1]&&(i=n[2],t=n[0]),[i,t]}var i,t,n,a,l=this;for(l.E["toggle-action-remove"]=null,l.GA||l.A.ZI(),l.A.O3=!1,(l.LG||!l.GA||l.H.E["graph."+l.K+".disableanimation"]||!l.AJ["enable-animation"]||-1!==ZC.AV(l.H.KM,"skip_interactivity")||zingchart.SKIP.ANIMATION)&&(l.M9="ready"),"initial"===l.A1K&&(l.ABK=!1,l.H.E["graph."+l.K+".disableanimation"]=!0),t=0,n=l.BM.length;t<n;t++)l.BM[t].paint_();if(!l.A.E["fire-load"]){var o=ZC.AP.BZ("objectsinit",l.A,l.I3(),!0);if(o)for(var r=["labels","shapes","imges","arrows"],s=0;s<r.length;s++)o[r[s]]&&(l.o[r[s]]=(l.o[r[s]]||[]).concat(o[r[s]]))}if(l.AJ["3d"]||(l.flatten(),l.PS(),l.KF(),-1===ZC.AV(l.H.KM,"skip_interactivity")&&l.RP()),-1===ZC.AV(l.H.KM,"skip_interactivity")){var A=ZC.A4("."+l.K+"-node-area");l.WU=function(i){if(!(zingchart.NODE_EV&&"mouseover"===zingchart.NODE_EV_TYPE&&"mouseover"===i.type||(zingchart.NODE_EV_CHART=l.A.K,zingchart.NODE_EV=i,zingchart.NODE_EV_TYPE=i.type,ZC.move||l.BF&&l.BF.YA||-1===ZC.Q.SV(i.target).indexOf("zc-node-area")||"ready"!==l.M9))){ZC.mobile&&(l.E["node-target-id"]=i.target.id,ZC.move=!1,l.H.hideCM(),null===l.H.DF||null===ZC._n_(l.H.DF["page-scroll"])||l.H.DF["page-scroll"]||i.preventDefault(),l.A.YS(i));var a=e(i);if(l.AY.A6[a[0]]){var o=l.AY.A6[a[0]].FP(a[1]);if(o&&(o.N?(ZC.COLORS=[o.N.C1,o.N.A0,o.N.AE,o.N.BV,o.N.B9],o.N3&&ZC.COLORS.push(o.N3.A0,o.N3.AE,o.N3.BV,o.N3.B9)):ZC.COLORS=[],l.E["plot"+a[0]+".visible"])){var r=ZC.mobile?"mousedown":i.xtype||i.type;(ZC.mobile||"mousedown"!==r)&&l.A.A8&&l.A8&&l.A8.AM&&l.A.A8.onmouseover(i);var s=l.AY.A6[a[0]];if("plot"===s.A3G)for(t=0,n=s.R.length;t<n;t++)s.R[t]&&s.FP(t).A3H("hover");else o.A3H("hover");if(o.WX(i,r),o.A.WW(i,r),l.BF){ZC.move=!0;var A=a[0];l.AY.A6[A].o["legend-item"]&&null!==ZC._n_(l.AY.A6[A].o["legend-item"].order)&&(A=ZC._i_(l.AY.A6[A].o["legend-item"].order)),l.BF.S3?l.L===l.A.AH.length-1&&l.BF.highlightItem(A):l.BF.highlightItem(A),ZC.move=!1}}}}},A.live("mousedown mouseover touchstart",l.WU),l.A16=function(i){if(zingchart.NODE_EV=zingchart.NODE_EV_TYPE=null,zingchart.NODE_EV_CHART=null,!(ZC.move||l.BF&&l.BF.YA)){var t=i.target;if(ZC.mobile&&document.elementFromPoint){var n=ZC.Q.M7(i),a=Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),o=Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop);if((t=document.elementFromPoint(n[0]-a,n[1]-o))&&l.E["node-target-id"]&&l.E["node-target-id"]!==t.id)return}if(-1!==ZC.Q.SV(i.target).indexOf("zc-node-area")&&"ready"===l.M9){ZC.mobile&&l.A.OP(i);var r=e(i),s=l.AY.A6[r[0]].FP(r[1]);if(s){if(l.E["plot"+r[0]+".visible"]){l.A.A8&&l.A8&&l.A8.AM&&l.A.A8.onmouseout(i),l.AY.A6[r[0]].D=[],s.LN(),l.LN();var A=ZC.mobile?"mouseup":i.xtype||i.type;s.WX(i,A),s.A.WW(i,A),l.BF&&(ZC.move=!0,l.BF.S3?l.L===l.A.AH.length-1&&l.BF.highlightItem(-1):l.BF.highlightItem(-1),ZC.move=!1)}!ZC.mobile||l.H.A9B||ZC.move||(zingchart.SA(i),l.T5(i))}}}},A.live("mouseup mouseout touchend",l.A16),l.A0L=function(i){if(zingchart.NODE_EV=i,zingchart.NODE_EV_CHART=l.A.K,zingchart.NODE_EV_TYPE=i.type,-1!==ZC.Q.SV(i.target).indexOf("zc-node-area")&&"ready"===l.M9){ZC.mobile&&l.A.OP(i);var t=e(i);l.E["plot"+t[0]+".visible"]&&l.A.A8&&l.A8&&l.A8.AM&&l.A.A8.onmousemove(i)}},A.live("mousemove touchmove",l.A0L),l.T5=function(i){if((i.targetid||-1!==ZC.Q.SV(i.target).indexOf("zc-node-area"))&&"ready"===l.M9){var t=e(i),n=l.AY.A6[t[0]].FP(t[1]);if(n&&("none"===n.A.IY||!ZC.mobile&&0!==i.button||(l.A.E.preservezoom=!0,l.clearPreview(),l.A66(n.A.L,n.L)),n.WX(i,"click"),n.A.WW(i,"click"),null!==ZC._n_(n.A.E8)&&"NULL"!==n.A.E8))if(n.A.E8 instanceof Array)for(var a=0;a<n.A.E8.length;a++){var o=n.A.FC;n.A.FC instanceof Array&&(o=n.A.FC[a]||"graph="+(l.o.id||"")),a===n.L&&l.UQ(i,n.KE(n.A.E8[a],null,null,!0),o)}else l.UQ(i,n.KE(n.A.E8,null,null,!0),n.A.FC||"graph="+(l.o.id||""))}},l.A1E=function(i){if(-1!==ZC.Q.SV(i.target).indexOf("zc-node-area")&&"ready"===l.M9){var t=e(i),n=l.AY.A6[t[0]].FP(t[1]);n&&(n.WX(i,"doubleclick"),n.A.WW(i,"doubleclick"))}},ZC.mobile||A.live("click",l.T5).live("contextmenu",l.T5).live("dblclick",l.A1E)}if(l.ABV(),l.A.E["tr-ev-"+l.L]?(l.A.E["tr-ev-"+l.L]=null,l.A7Q()):l.A7Q(),l.A0X){l.A0X=!1;var C={graphid:l.K};for(t=0,n=l.BT("k").length;t<n;t++){var c=l.BT("k")[t];null!==ZC._n_(i=c.LI)&&(C["zoomx"+(a=1===c.L?"":"-"+c.L)]=!0,C["xmin"+a]=i[0],C["xmax"+a]=i[1])}for(t=0,n=l.BT("v").length;t<n;t++){var u=l.BT("v")[t];null!==ZC._n_(i=u.LI)&&(C["zoomy"+(a=1===u.L?"":"-"+u.L)]=!0,C["ymin"+a]=i[0],C["ymax"+a]=i[1])}if(C.zoomto=!0,l.A.FY){for(var p in l.A.FY)ZC.AK(p).appendChild(l.A.FY[p]);l.A.FY=null}l.A.PW(C)}},ABV:function(){},A7Q:function(){var e=this;if(e.A.A1U<e.A.AH.length&&(e.A.A1U++,ZC.AP.BZ("gload",e.A,e.I3())),ZC.AP.BZ("gcomplete",e.A,e.I3()),e.BA&&(e.BA.HY=!1),zingchart.NODE_EV&&zingchart.NODE_EV_CHART&&zingchart.NODE_EV_CHART===e.A.K){var i=ZC.A4("#"+e.A.K+"-top"),t=ZC.DX[0]-i.offset().left,n=ZC.DX[1]-i.offset().top,a=zingchart.exec(e.A.K,"getxyinfo",{x:t,y:n});if(a)for(var l=0;l<a.length;l++)if("node"===a[l].infotype&&a[l].xydistance<10){var o=a[l].graphid+"-plotset-plot-"+a[l].plotidx+"-node-"+a[l].nodeidx;zingchart.NODE_EV&&zingchart.NODE_EV.target&&zingchart.NODE_EV.target.id===o&&(e.WU(zingchart.NODE_EV),zingchart.NODE_EV=null)}}zingchart.GUIDE_EV&&e.A.D5&&e.A.D5.Q6(zingchart.GUIDE_EV),e.A.A4Y<e.A.AH.length?e.A.A4Y++:(e.A.A4Y=1,e.A.A1U===e.A.AH.length&&(e.A.A1U++,e.A.E["fire-load"]=!0,e.LG&&e.AY.A6.length>1&&(zingchart.SKIP.EVENT||ZC.AP.BZ("load",e.A,e.A.FH()))),e.A.E["fire-complete"]=!0,(e.E["graph-K3"]||e.LG&&e.AY.A6.length>1)&&(zingchart.SKIP.EVENT||ZC.AP.BZ("complete",e.A,e.A.FH()),e.E["graph-K3"]=null)),0!==e.A.QQ.length&&e.A.QQ[e.A.QQ.length-1]===e.A.E.json||(e.A.QQ[e.A.NY]!==e.A.E.json&&(e.A.QQ.length=e.A.NY+1),e.A.QQ[e.A.NY]=e.A.E.json)},K3:function(e,i){var t=this;null===ZC._n_(e)&&(e=!1),null===ZC._n_(i)&&(i=!1),t.A.MV(t),t.E["graph-K3"]=!0,t.clear(e,i),t.parse(),t.U0&&t.U0(),t.paint(e),t.BA&&t.BA.setScalesInfo(),t.HF=!1,zingchart.SKIP.CSV=!1},UQ:function(ev,E8,FC){if(2!==ev.button){var s=this,C,P9=[""];switch(null!==ZC._n_(FC)&&(P9=FC.split("=")),P9[0]){case"_blank":window.open(E8,"_blank");break;case"_top":window.top.location.href=E8;break;case"_parent":window.parent.location.href=E8;break;case"window":null!==ZC._n_(P9[1])&&""!==P9[1]&&(window.top[P9[1]].location.href=E8);break;case"graph":var XQ=null;if("()"===E8.substring(E8.length-2)||"javascript:"===E8.substring(0,11))try{var EI=E8.replace("javascript:","").replace("()","");eval(EI)&&(XQ=eval(EI).call(s))}catch(e){}null!==ZC._n_(P9[1])&&""!==P9[1]?"_top"===P9[1]||"_parent"===P9[1]?(s.A.MV(),XQ?zingchart.exec(s.A.K,"setdata",{data:XQ}):s.A.load(null,E8)):(C=s.A.OR(P9[1]))&&(s.A.MV(C),s.A.E["tr-ev-"+C.L]=!0,s.A.NY++,XQ?zingchart.exec(s.A.K,"setdata",{graphid:P9[1],data:XQ}):s.A.load(P9[1],E8)):(C=s.A.AH[0],s.A.MV(C),XQ?zingchart.exec(s.A.K,"setdata",{graphid:C.K,data:XQ}):(s.A.E["tr-ev-"+C.L]=!0,s.A.NY++,s.A.load(C.K,E8)));break;default:window.location.href=E8}}},HV:function(e,i,t){var n=this;if(null===ZC._n_(t)&&(t=n.AY.A6.length-1),null!==ZC._n_(e)&&void 0!==e)return n.AY.A6[e];if(null===ZC._n_(i)||void 0===i)return n.AY.A6[t];for(var a=0,l=n.AY.A6.length;a<l;a++)if(i===n.AY.A6[a].H2)return n.AY.A6[a];return null},A3P:function(e,i){var t,n,a=this;(e=e||{})["toggle-action"]=e["toggle-action"]||a.getToggleAction();var l=null;if("undefined"!=typeof e.plotindex&&(l=ZC._i_(e.plotindex)),-1===l)for(l=[],t=0,n=a.AY.A6.length;t<n;t++)l.push(t);l instanceof Array||(l=[l]);var o=e.plotid||"";o instanceof Array||(o=[o]);var r=[];for(t=0,n=ZC.BQ(l.length,o.length);t<n;t++){var s=a.HV(l[t],o[t]);if(s){var A={};ZC._cp_(e,A);var C=s.L;A.plotindex=C,A.plotid=s.H2,("show"===i&&!a.E["plot"+C+".visible"]||"hide"===i&&a.E["plot"+C+".visible"])&&r.push(A)}}for(t=0,n=r.length;t<n;t++)a.A.o.graphset[a.L].series[r[t].plotindex].visible="show"===i,t===n-1&&(r[t].K3=1),a.Q4(r[t])},Q4:function(e){var i,t,n,a=this;a.A.E["graph."+a.K+".disableanimation"]=!1,e=e||{};var l=!1;null!==ZC._n_(e.skip)&&e.skip&&(l=!0);var o=!1;e["toggle-action"]=e["toggle-action"]||a.getToggleAction(),null!==ZC._n_(i=e["ignore-legend"])&&(o=ZC._b_(i));var r=a.HV(e.plotindex,e.plotid);if(r){var s=r.L;switch(e["toggle-action"]){case"hide":if(a.BF&&(a.BF.E.showhide=!0),a.E["plot"+s+".visible"]=!a.E["plot"+s+".visible"],null!==ZC._n_(a.A.o.graphset[a.L].series)&&(a.A.o.graphset[a.L].series[s].visible=a.E["plot"+s+".visible"]),a.AJ["3d"])o=!0,l||a.K3();else{var A=a.E["plot"+s+".visible"]?"block":"none";if(zingchart.DEV.SKIPTRACKERS||ZC.A4("."+a.K+"-plotset-plot-"+s+"-node-area").each(function(){if("AREA"===this.tagName.toUpperCase()){var e=ZC.A4(this),i=e.attr("coords"),n=e.attr("shape");"none"===A?(i="-"+i.replace(/,/g,",-"),"rect"===n?4===(t=i.split(",")).length&&(i=[t[2],t[3],t[0],t[1]].join(",")):"circle"===n&&3===(t=i.split(",")).length&&(i=[t[0],t[1],-t[2]].join(","))):(i=i.replace(/\-/g,""),"rect"===n&&4===(t=i.split(",")).length&&(i=[t[2],t[3],t[0],t[1]].join(","))),e.attr("coords",i)}}),a.A.K5)ZC.AK(a.K+"-plots-bl-c").style.display=A,ZC.AK(a.K+"-plots-fl-c").style.display=A,ZC.AK(a.K+"-plots-vb-c").style.display=A;else{for(n=0;n<r.SO;n++)(i=ZC.AK(a.K+"-plot-"+s+"-bl-"+n+"-c"))&&(i.style.display=A);for(n=0;n<r.A19;n++)(i=ZC.AK(a.K+"-plot-"+s+"-fl-"+n+"-c"))&&(i.style.display=A);(i=ZC.AK(a.K+"-plot-"+s+"-vb-c"))&&(i.style.display=A)}var C=ZC.A4("."+a.K+"-plot-"+s+"-value-box");a.E["plot"+s+".visible"]?(C.show(),ZC.A4("."+a.K+"-plotset-plot-"+s+"-preview").show()):(C.hide(),ZC.A4("."+a.K+"-plotset-plot-"+s+"-preview").hide())}break;case"remove":a.clearPreview(),o=!0,a.E["toggle-action-remove"]=!0,a.E["plot"+s+".visible"]=!a.E["plot"+s+".visible"],e.K3&&(l||(a.LU("on-legend-toggle"),a.K3(!0,!0)))}a.BF&&!o&&(a.BF.clear(),a.BF.paint())}},LU:function(e){var i=this,t=!0,n=i.o.plot||{};null!==ZC._n_(n.animation)&&null!==ZC._n_(n.animation[e])&&(t=ZC._b_(n.animation[e])),i.HF="initial"===i.A1K||!t},I3:function(){return{id:this.A.K,graphidx:this.L,graphid:this.K.replace(this.A.K+"-graph-",""),x:this.iX,y:this.iY,width:this.I,height:this.F,loader:this.A.FH()}},RO:function(){},RU:function(){},gc:function(){for(var e=0;e<this.BM.length;e++)this.BM[e].gc();for(var i=0;i<this.AY.A6.length;i++)this.AY.A6[i].gc();ZC.AP.gc(this.AY,["A","C","H","F7","o","I0","J5"]),ZC.AP.gc(this,["Z","C6","AJ","IX","KJ","MP","F0"])}}),ZC.JS.prototype.PS=function(){var e,i,t,n,a,l,o,r,s=this;s.initObjectsLayers(),s.BX=[],s.FE=[],s.XX=[],s.LD=[],s.FL=[],s.X5={};var A,C=s.A.B7,c="("+s.AF+")";if(null!==ZC._n_(A=s.o.labels))for(i=0,t=A.length;i<t;i++){A[i].id||(A[i].id="lbl_"+i+"_"+ZC._r_(1e3,9999)),n=A[i].id||i,a=!1,l=!1,s.E["objects.updates"]&&-1===ZC.AV(s.E["objects.updates"],n)&&(a=!0,l=!0),A[i].tween&&(a=!0);var u=zingchart.pool.getInstance("DS",s,s.K+"-label-"+n,a);if(!l||!u._POOL_){if(C.load(u.o,c+".label"),u.append(A[i]),null!==ZC._n_(e=u.o.parent))for(var p=0;p<s.BX.length;p++)if(""+s.BX[p].H2==""+e){u.E["p-x"]=s.BX[p].iX,u.E["p-y"]=s.BX[p].iY,u.E["p-width"]=s.BX[p].I,u.E["p-height"]=s.BX[p].F;break}if(u.H2=n,u.K=s.K+"-label-"+n,u.GJ=s.K+"-label zc-label",null!==ZC._n_(e=A[i].hook)&&(u.E.hook=e),u.KE=function(i){if(!i||-1===(""+i).indexOf("%"))return i;i=""+i;var t,n=[];n.push(["%id",s.A.K]),n.push(["%graphid",s.K.replace(s.A.K+"-graph-","")]);var a=s.E.update;for(var l in a)n.push(["%"+l,a[l]]);n.sort(ZC.A1F);for(var o=0,r=n.length;o<r;o++)t=new RegExp(n[o][0],"g"),i=i.replace(t,n[o][1]);var A=u.o["default-value"]||" ";t=new RegExp("(%plot-([0-9]+?)-value(-*)([0-9]*?))|(%plot-value-([0-9]+?))|(%plot-value)|(%npv)|(%node-percent-value)","g"),i=i.replace(t,A),t=new RegExp("%plot-([0-9]+?)-data-([a-zA-Z0-9-]+)","g"),i=i.replace(t,A),t=new RegExp("\\((.+?)\\)\\(([0-9]*)\\)\\(([0-9]*)\\)");for(var C,c,p,Z;C=t.exec(i);)if("%node-value"===C[1]){c="";var h=0,d=0;""!==(e=C[2])&&(h=ZC._i_(e)),""!==(e=C[3])&&(d=ZC._i_(e)),(Z=s.AY.A6[h])&&(p=Z.FP(d,3))&&(c=p.KE(C[1])),i=i.replace(C[0],c)}return i},u.parse(),A[i]["3d"]){var Z=new ZC.CF(s,u.iX+u.I/2-ZC.AN.E3,u.iY+u.F/2-ZC.AN.E2,ZC._i_(A[i].z||"0"));u.iX=Z.EB[0]-u.I/2,u.iY=Z.EB[1]-u.F/2}}s.BX.push(u),s.FL.push({type:"label",index:i,zindex:u.JN}),s.X5[n]={shape:"label",idx:i}}var h;if(null!==ZC._n_(h=s.o.arrows))for(i=0,t=h.length;i<t;i++){var d=new ZC.AC6(s);C.load(d.o,c+".arrow"),d.append(h[i]),n=h[i].id||i,d.K=s.K+"-arrow-"+n,d.parse(),s.XX.push(d),s.FL.push({type:"arrow",index:i,zindex:d.JN})}var f,_=0;if(null!==ZC._n_(f=s.o.shapes))for(i=0,t=f.length;i<t;i++)if(null===ZC._n_(f[i].type)||0!==f[i].type.indexOf("zingchart.")){f[i].id||(f[i].id="shp_"+i+"_"+ZC._r_(1e3,9999)),n=f[i].id||i,l=null!==ZC._n_(zingchart.pool[s.K+"-shape-"+n])&&zingchart.SKIP.PARSE3D,a=!1,s.E["objects.updates"]&&-1===ZC.AV(s.E["objects.updates"],n)&&(a=!0,l=!0),f[i].tween&&(a=!0),f[i]["3d"]?((o=zingchart.pool.getInstance("DW",s,s.K+"-shape-"+n,!0)).o=f[i],("poly"!==f[i].type||f[i]["map-item"])&&(l=!1)):(null!==ZC._n_(f[i].label)?(o=zingchart.pool.getInstance("QU",s,s.K+"-shape-"+n,a)).WI=f[i]:((o=zingchart.pool.getInstance("DW",s,s.K+"-shape-"+n,a)).o=f[i],o.append({},!0)),a&&o._POOL_||(l=!1)),l||(o.H2=n,o.K=s.K+"-shape-"+n,o.O3=!0,f[i]["map-item"]&&(o.O3=!1),o.parse()),null!==ZC._n_(e=f[i].hook)&&(o.E.hook=e);var g,v,b;if(f[i]["3d"]){if(f[i]["map-item"]){for(g=[],v=0,b=o.D.length;v<b;v++)null!==o.D[v]?(r=new ZC.CF(s,o.D[v][0]-ZC.AN.E3,o.D[v][1]-ZC.AN.E2,ZC._i_(o.D[v][2]||f[i].z||"0")),g.push(r.EB)):g.push(null);o.D=g,s.FE.push(o),s.FL.push({type:"shape",index:_,zindex:o.JN,z3d:r.AAM}),s.X5[n]={shape:o.DQ,idx:_}}else if("poly"===f[i].type){var m=ZC.DH.D7(o,s,f[i].points,!1);s.CK.add(m),s.FE.push(null)}else{if(o.D.length>0){for(g=[],v=0,b=o.D.length;v<b;v++)r=new ZC.CF(s,o.D[v][0]-ZC.AN.E3,o.D[v][1]-ZC.AN.E2,ZC._i_(o.D[v][2]||f[i].z||"0")),g.push(r.EB);o.D=g}else r=new ZC.CF(s,o.iX-ZC.AN.E3,o.iY-ZC.AN.E2,ZC._i_(f[i].z||"0")),o.iX=ZC._i_(r.EB[0]),o.iY=ZC._i_(r.EB[1]);s.FE.push(o),s.FL.push({type:"shape",index:_,zindex:o.JN,z3d:r.AAM})}o.E["3dtx"]=!0,o.E["3d"]=!0}else s.FE.push(o),o instanceof ZC.QU?(s.FL.push({type:"shape",index:_,zindex:o.BE.JN}),s.X5[n]={shape:o.BE.DQ,idx:_}):(s.FL.push({type:"shape",index:_,zindex:o.JN}),s.X5[n]={shape:o.DQ,idx:_});_++}var B;if(null!==ZC._n_(B=s.o.images))for(i=0,t=B.length;i<t;i++){var E=B[i].src;if(ZC.cache.data[E]){var K=new ZC.HS(s);K.append({"background-repeat":"no-repeat","background-image":E,width:ZC.cache.data[E].width,height:ZC.cache.data[E].height}),K.append(B[i]),n=B[i].id||i,K.H2=n,K.K=s.K+"-image-"+n,K.L=i,K.parse(),s.LD.push(K),s.FL.push({type:"image",index:i,zindex:K.JN})}}s.E["objects.updates"]=null,s.FL=s.FL.sort(function(e,i){return null!==ZC._n_(e.z3d)&&null!==ZC._n_(i.z3d)?e.z3d-i.z3d>0?1:-1:0}),s.FL=s.FL.sort(function(e,i){return e.zindex-i.zindex==0?e.index-i.index:e.zindex-i.zindex})},ZC.JS.prototype.A0E=function(e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var t,n=this,a=[n.K+"-objects-bottom-sh-c",n.K+"-objects-bottom-c",n.K+"-objects-top-sh-c",n.K+"-objects-top-c",n.K+"-objects-front-c",n.K+"-objects-print-c"];ZC.SKIPMAPS||a.push(n.K+"-objects-maps-sh-c",n.K+"-objects-maps-c");for(var l=0;l<a.length;l++)(t=ZC.AK(a[l]))&&ZC.Q.IQ(t,n.H.AC,n.iX,n.iY,n.I,n.F,n.K);"canvas"===n.A.AC&&!zingchart.CANVASTEXT&&ZC.objmove||(ZC.A4("."+n.K+"-label").remove(),ZC.A4("."+n.K+"-shape-label").remove(),ZC.A4("."+n.K+"-arrow-label").remove()),e||(ZC.A4("."+n.K+"-label-area").each(function(){if(-1===ZC.AV([n.K+"-title-area",n.K+"-subtitle-area",n.K+"-source-area"],this.id)){var e=new RegExp("scale_(x|y|k|v)-(item_|marker_)([0-9]+)").exec(this.id);!i&&e&&e.length||ZC.Q.EU(this.id)}}),ZC.A4("."+n.K+"-shape-area").each(function(){(!ZC.SKIPMAPS||ZC.SKIPMAPS&&"1"!==this.getAttribute("data-map"))&&ZC.Q.EU(this.id)}),ZC.A4("."+n.K+"-arrow-area").remove()),"svg"===n.A.AC&&ZC.A4("#"+n.A.K+"-svg").children().each(function(){var e=n.K+"-label-";"clippath"===this.tagName.toLowerCase()&&this.id.substring(0,e.length)===e&&ZC.Q.EU(this.id)})},ZC.JS.prototype.AC5=function(){var e=this;(e.H.NS["objects-top"]||e.H.NS["objects-bottom"])&&(ZC.A4("."+e.K+"-label-area").die(ZC.mobile?"touchstart":"mousedown mouseover",e.ZO).die(ZC.mobile?"touchend":"mouseup mouseout",e.A0I).die(ZC.mobile?"touchmove":"mousemove",e.ZS),ZC.mobile||ZC.A4("."+e.K+"-label-area").die("click",e.UF).die("dblclick",e.UF),ZC.A4("."+e.K+"-shape-area").die(ZC.mobile?"touchstart":"mousedown mouseover",e.ZV).die(ZC.mobile?"touchend":"mouseup mouseout",e.A0H).die(ZC.mobile?"touchmove":"mousemove",e.ZX),ZC.mobile||ZC.A4("."+e.K+"-shape-area").die("click",e.UG).die("dblclick",e.UG))},ZC.JS.prototype.OU=function(){var e,i,t=this;t.Y8=!1;var n,a;if(null!==ZC._n_(n=t.o.labels))for(e=0,i=n.length;e<i;e++){var l=""+(n[e].text||"");if(-1!==l.indexOf("%node-")||-1!==l.indexOf("%plot-")||-1!==l.indexOf("%npv")||-1!==l.indexOf("%node-percent-value")||ZC._b_(n[e].dynamic)){t.Y8=!0;break}}if(null!==ZC._n_(a=t.o.shapes))for(e=0,i=a.length;e<i;e++)if(ZC._b_(a[e].dynamic)){t.Y8=!0;break}},ZC.JS.prototype.QK=function(e){var i=this;i.A0E(e),i.PS(),i.KF(e),ZC.SKIPMAPS=!1},ZC.JS.prototype.KF=function(e){void 0===e&&(e=!1);var i,t,n,a=this,l=[],o=[];if(a.H.clearLabelBoxes("label"),a.FL)for(t=0,n=a.FL.length;t<n;t++){var r=a.FL[t].index;switch(a.FL[t].type){case"arrow":!function(e){var i=a.XX[e];if(i.AM&&(i.Z=i.C6=a.H.usc()?a.H.mc("top"):ZC.AK(a.K+"-objects-"+(i.JN<0?"bottom":"top")+"-c"),i.paint(),i.AM&&ZC.AK(a.A.K+"-map"))){var t=i.BE.A4V(),n=ZC.Q.GC(t[0],i.BE.E8,i.BE.IR)+'class="'+a.K+'-arrow-area zc-arrow-area" id="'+i.BE.K+'-area" coords="'+t[1]+'" />';"top"===i.o.placement?o.push(n):l.push(n)}}(r);break;case"shape":!function(e){if(a.FE[e]){var t=a.FE[e],n=t instanceof ZC.QU?t.BE:t;if((!ZC.SKIPMAPS||!n.o["map-item"])&&n.AM){if(null!==ZC._n_(i=t.E.hook)){var r=a.UV(i);-1!==r[0]&&(n.iX=ZC._i_(r[0])),-1!==r[1]&&(n.iY=ZC._i_(r[1]))}if(!t.E["3d"]||t.E["3dtx"]){t.Z=a.H.usc()?a.H.mc("top"):ZC.AK(a.K+"-objects-"+(n.JN<0?"bottom":"top")+"-c"),t.C6=a.H.usc()?a.H.mc("top"):ZC.AK(a.K+"-objects-"+(n.JN<0?"bottom":"top")+"-sh-c"),n.o["map-item"]&&(t.Z=a.H.usc()?a.H.mc("top"):ZC.AK(a.K+"-objects-maps-c"),t.C6=a.H.usc()?a.H.mc("top"):ZC.AK(a.K+"-objects-maps-sh-c"));var s="";null!==ZC._n_(i=n.o.limit)&&("x"===i?s="x":"y"===i?s="y":"xy"===i&&(s="xy")),(""===s||"x"===s&&ZC.DT(n.iX-n.BJ,a.P.iX-2,a.P.iX+a.P.I+2)||"y"===s&&ZC.DT(n.iY-n.BH,a.P.iY-2,a.P.iY+a.P.F+2)||"xy"===s&&ZC.DT(n.iX+n.BJ,a.P.iX-2,a.P.iX+a.P.I-2)&&ZC.DT(n.iY+n.BH,a.P.iY-2,a.P.iY+a.P.F+2))&&(t.VV=!1,t.E["print-canvas"]=a.K+"-"+(n.o["map-item"]?"maps":"objects")+"-print-c",t.paint())}if(!t.K5&&!a.PX&&"normal"===zingchart.OBJECTMODE){var A=n.A4V();if(ZC.AK(a.A.K+"-map"))for(var C=1,c=A.length;C<c;C++)if(""!==A[C]){var u=n.o["map-item"]&&!n.o["map-skip-z-sort"]?' data-map="1"':"",p=ZC.Q.GC(A[0],n.E8,n.IR)+'class="'+a.K+'-shape-area zc-shape-area" id="'+n.K+"-area"+(C>1?"--"+C:"")+'" coords="'+A[C]+'" data-z-sort="'+n.A9P+'"'+u+" />";"top"===t.o.placement?o.push(p):l.push(p)}}}}}(r);break;case"image":!function(e){var i=a.LD[e];if(i.AM)if(i.Z=i.C6=a.H.usc()?a.H.mc("top"):ZC.AK(a.K+"-objects-"+(i.JN<0?"bottom":"top")+"-c"),null!==ZC._n_(i.o.repeat)&&ZC._b_(i.o.repeat)){var t=ZC._i_(ZC._c_(i.o.items,0)),n=null;if(i.o.inactive&&((n=new ZC.HS(i.A)).copy(i),n.append(i.o.inactive),n.parse(),n.Z=n.C6=i.Z),t>0||n){var l=ZC._i_(ZC._c_(i.o.rows,-1)),o=ZC._i_(ZC._c_(i.o.cols,-1)),r=ZC._i_(ZC._c_(i.o["space-x"],0)),s=ZC._i_(ZC._c_(i.o["space-y"],0)),A=ZC._i_(ZC._c_(i.o["offset-row"],0)),C=ZC._i_(ZC._c_(i.o["offset-col"],0));-1!==l&&-1===o?o=Math.ceil(t/l):-1===l&&-1!==o?l=Math.ceil(t/o):-1===l&&-1===o&&(o=Math.ceil(Math.sqrt(t)),l=Math.ceil(t/o));for(var c=i.iX,u=i.iY,p=i.K,Z=0;Z<l;Z++)for(var h=0;h<o;h++)i.iX=c+h*r+Z*A,i.iY=u+Z*s+h*C,i.K=p+(Z*o+h),Z*o+h<t?i.paint():n&&(n.iX=i.iX,n.iY=i.iY,n.K=i.K,n.paint())}else i.paint()}else i.paint()}(r);break;case"label":!function(e){var t=a.BX[e];if(t.AM){if(t.E.lbltype="label",null!==ZC._n_(i=t.E.hook)){var n=a.UV(i);if(-1===n[0]&&-1===n[1])return;if(-1!==n[0]&&(t.iX=n[0]),-1!==n[1]&&(t.iY=n[1]),null===ZC._n_(n[2])||t.o.anchor||null!==ZC._n_(n[2].center)&&n[2].center&&(t.iX-=t.I/2,t.iY-=t.F/2),t.o.anchor&&t.setAnchor(),t.o["3d"]){var r=0;n[2]&&n[2].z?r=n[2].z:t.o.z&&(r=ZC._i_(t.o.z));var s=new ZC.CF(a,t.iX+t.I/2-ZC.AN.E3,t.iY+t.F/2-ZC.AN.E2,r);t.iX=s.EB[0]-t.I/2,t.iY=s.EB[1]-t.F/2}}t.iX=ZC._i_(t.iX),t.iY=ZC._i_(t.iY),t.IJ=ZC.AK(a.A.K+"-text"),t.Z=a.H.usc()?a.H.mc("top"):ZC.AK(a.K+"-objects-"+(t.JN<0?"bottom":"top")+"-c"),t.C6=a.H.usc()?a.H.mc("top"):ZC.AK(a.K+"-objects-"+(t.JN<0?"bottom":"top")+"-sh-c");var A="";if(null!==ZC._n_(i=t.o.limit)&&("x"===i?A="x":"y"===i?A="y":"xy"===i&&(A="xy")),(""===A||"x"===A&&ZC.DT(t.iX-t.BJ,a.P.iX-t.I/2-2,a.P.iX+a.P.I-t.I/2+2)||"y"===A&&ZC.DT(t.iY-t.BH,a.P.iY-t.F/2-2,a.P.iY+a.P.F-t.F/2+2)||"xy"===A&&ZC.DT(t.iX+t.BJ,a.P.iX-t.I/2-2,a.P.iX+a.P.I-t.I/2+2)&&ZC.DT(t.iY+t.BH,a.P.iY-t.F/2-2,a.P.iY+a.P.F-t.F/2+2))&&(t.VV=!1,t.paint(),t.EL(ZC.AK(a.K+"-objects-print-c")),!t.K5&&!a.PX&&"normal"===zingchart.OBJECTMODE&&ZC.AK(a.A.K+"-map"))){var C=ZC.AP.O1(a.K,t);"top"===t.o.placement?o.push(C):l.push(C)}}}(r)}}for(t=0;t<a.AY.A6.length;t++)a.AY.A6[t].RK=null;if(!e&&"normal"===zingchart.OBJECTMODE&&(o.length>0||l.length>0)&&ZC.AK(a.A.K+"-map")){if(a.A43){var s=function(e,i){return-1!==e.indexOf("data-map")&&-1!==i.indexOf("data-map")?ZC.AP.MY(i)-ZC.AP.MY(e):ZC.AP.MY(e)-ZC.AP.MY(i)};o.sort(s),l.sort(s)}zingchart.DEV.MAPSONBOTTOM?window.setTimeout(function(){ZC.AK(a.A.K+"-map").innerHTML=o.join("")+ZC.AK(a.A.K+"-map").innerHTML+l.join("")},33):ZC.AK(a.A.K+"-map").innerHTML=o.join("")+ZC.AK(a.A.K+"-map").innerHTML+l.join("")}a.A.E["fire-load"]||ZC.AP.BZ("objectsready",a.A,a.I3())},ZC.JS.prototype.SD=function(e,i,t,n){var a,l,o,r,s=this;switch(t=t||"hover",e){case"shape":var A=s.FE[i],C=A instanceof ZC.QU?A.BE:A;if(null!==ZC._n_(C.o[t+"-state"])){if(!n&&C.o.group)for(o=0,r=s.FE.length;o<r;o++)o!==i&&(s.FE[o].o.group===C.o.group||s.FE[o].BE&&s.FE[o].BE.o.group===C.o.group)&&s.SD(e,o,t,!0);if((a=new ZC.DW(s)).append(C.o),a.append(C.o[t+"-state"]),l=C.o.id||i,a.H2=l+"-"+t,a.K=s.K+"-shape-"+l+"-"+t,a.parse(),A.E["3d"]&&(a.D=C.D,a.iX=A.iX,a.iY=A.iY),a.AM)if(a.Z=a.C6=ZC.AK(s.K+"-objects-"+t+"-c"),a.o["map-item"]&&(a.Z=a.C6=ZC.AK(s.K+"-objects-maps-"+t+"-c")),a.o["map-item"]&&zingchart.maps.LITE&&"canvas"!==s.A.AC){if("svg"===s.A.AC){var c=ZC.A4("#"+s.K+"-shape-"+a.H2+"-gshape-path");s.E["map-shape-info"]={fill:c.attr("fill"),stroke:c.attr("stroke"),"stroke-width":c.attr("stroke-width")},"poly"===a.DQ?(c.attr("fill",a.A0),c.attr("stroke-width",a.AT),c.attr("stroke",a.BV)):"line"===a.DQ&&(c.attr("stroke-width",a.B0),c.attr("stroke",a.B9))}else if("vml"===s.A.AC){var u=ZC.AK(s.K+"-shape-"+a.H2+"-gshape-path"),p=ZC.A4(u.childNodes[1]),Z=ZC.A4(u.childNodes[2]);s.E["map-shape-info"]={fill:""+Z.attr("color"),stroke:""+p.attr("color"),"stroke-width":""+p.attr("weight")},"poly"===a.DQ?(Z.attr("color",a.A0),p.attr("weight",a.AT),p.attr("color",a.BV)):"line"===a.DQ&&(p.attr("weight",a.B0),p.attr("color",a.B9))}}else a.paint(),"canvas"===s.A.AC&&zingchart.CANVASTEXT&&A.M&&(A.M.Z=A.M.C6=ZC.AK(s.K+"-objects-"+t+"-c"),A.M.paint())}break;case"label":var h=s.BX[i];if(h&&null!==ZC._n_(h.o[t+"-state"])){if(!n&&h.o.group)for(o=0,r=s.BX.length;o<r;o++)o!==i&&s.BX[o].o.group===h.o.group&&s.SD(e,o,t,!0);var d=zingchart.pool.getInstance("DS",s,s.K+"-label-"+t);d.append(h.o),d.append(h.o[t+"-state"]),l=h.id||i,d.H2=l+"-"+t,d.K=s.K+"-label-"+l+"-"+t,d.GJ=s.K+"-label "+s.K+"-label-"+t+" zc-label zc-label-"+t,d.IJ=ZC.AK(s.A.K+"-text"),d.parse(),d.AM&&(d.iX=h.iX,d.iY=h.iY,d.I=h.I,d.F=h.F,d.Z=d.C6=ZC.AK(s.K+"-objects-"+t+"-c"),ZC.AK(s.K+"-label-"+l)&&(ZC.AK(s.K+"-label-"+l).style.display="none"),d.paint())}}},ZC.JS.prototype.RP=function(){function e(e){for(var i=(e.targetid||e.target.id).replace(/\-\-\d+/g,"").replace(t.K+"-shape-","").replace("-gshape-area","").replace("-area",""),n=-1,a=null,l=0,o=t.FE.length;l<o;l++)if(t.FE[l]&&""+t.FE[l].H2==""+i){n=l,a=t.FE[l]instanceof ZC.QU?t.FE[l].BE:t.FE[l];break}if(!a&&e.target.getAttribute("data-lowlevel"))return{shapeid:e.target.id,lowlevel:!0,ev:e};if(-1===n)return null;var r={shapeid:i,shapeindex:n,tooltip:a.o.tooltip?1:0,shape:{id:i,index:n,cls:a.DI,x:a.iX,y:a.iY,type:a.DQ,mapItem:a.o["map-item"],points:a.D,width:a.I,height:a.F,size:a.AI,size2:a.KT,angle:a.AA,zIndex:a.JN},ev:e};for(var s in a.o)a.o.hasOwnProperty(s)&&"data-"===s.substring(0,5)&&(r[s]=a.o[s]);return r}function i(e){var i,o=e.targetid||e.target.id;if(o===t.K+"-title-area"||o===t.K+"-subtitle-area"||o===t.K+"-source-area"){var r=null,s=-1;switch(i=o.replace(t.K+"-","").replace("-area","")){case"title":r=t.IX,s=-1;break;case"subtitle":r=t.KJ,s=-2;break;case"source":r=t.MP,s=-3}return{type:"graph-"+i,labelid:r.K,labelindex:s,text:r.AR,label:{id:r.K,index:s,text:r.AR},ev:e}}if(-1===o.indexOf("-scale")||-1===o.indexOf("-item")&&-1===o.indexOf("-marker")){if(-1!==o.indexOf("-value-box-")){n=o.replace(t.K+"-plotset-plot-","").replace("-value-box-area",""),a=n.split("-node-");var A=t.AY.A6[ZC._i_(a[0])].FP(ZC._i_(a[1]));return A?{type:"value-box",labelid:"vb_"+a.join("_"),plotindex:ZC._i_(a[0]),nodeindex:ZC._i_(a[1]),text:A.AD,label:{id:"vb_"+a.join("_"),text:A.AD},ev:e}:null}n=o.replace(t.K+"-label-","").replace("-area","");for(var C=-1,c=null,u=0,p=t.BX.length;u<p;u++)if(""+t.BX[u].H2==""+n){C=u,c=t.BX[u];break}if(l=-1===C?"":t.BX[C].AR,-1===C)return null;var Z={type:"label",labelid:n,labelindex:C,text:l,tooltip:c.o.tooltip?1:0,label:{id:n,index:C,cls:c.DI,x:c.iX+c.BJ,y:c.iY+c.BH,width:c.I,height:c.F,text:l},ev:e};for(var h in c.o)c.o.hasOwnProperty(h)&&"data-"===h.substring(0,5)&&(Z[h]=c.o[h]);return Z}n=o.replace(t.K+"-","").replace("-area","");var d=(a=n.split("-"))[1].split("_"),f=0;2===d.length?f=ZC._i_(d[1]):3===d.length&&(f=ZC._i_(d[2]));var _,g=a[0].replace(/_/g,"-"),v=t.BN(g);return-1!==o.indexOf("-item")?(i="scale-item",_="si_"+a[1].replace("item_",""),l=v.BX[f]||v.X[f],"si_title"===_&&(l=v.M.AR)):(i="scale-marker",_="sm_"+a[1].replace("marker_",""),l=v.E["marker_text_"+f]||""),{type:i,labelid:_,labelindex:f,scale:g,text:l,tooltip:v.o.tooltip||v.o.item&&v.o.item.tooltip?1:0,label:{id:_,index:f,text:l},ev:e}}var t=this;if(t.H.NS["objects-top"]||t.H.NS["objects-bottom"]){t.ZV=function(i){ZC.mobile&&(t.LN(),ZC.move=!1,t.H.hideCM(),null===t.H.DF||null===ZC._n_(t.H.DF["page-scroll"])||t.H.DF["page-scroll"]||i.preventDefault(),t.A.YS(i));var n=e(i);n.tooltip&&t.A8&&t.A.A8&&t.A8.AM&&t.A.A8.onmouseover(i);var a=ZC.mobile?"mousedown":i.xtype||i.type;n.lowlevel||t.SD("shape",n.shapeindex),t.RU(a,n)},t.A0H=function(i){ZC.mobile&&(t.H.A9B||ZC.move||(zingchart.SA(i),t.UG(i)),t.A.OP(i)),t.A8&&t.A.A8&&t.A8.AM&&t.A.A8.onmouseout(i),ZC.mobile||t.LN();var n=ZC.mobile?"mouseup":i.xtype||i.type,a=e(i);if(a.shape&&a.shape.mapItem&&zingchart.maps.LITE&&"canvas"!==t.A.AC)if("svg"===t.A.AC){var l=ZC.A4("#"+t.K+"-shape-"+a.shape.id+"-gshape-path");"poly"===a.shape.type&&l.attr("fill",t.E["map-shape-info"].fill),l.attr("stroke",t.E["map-shape-info"].stroke),l.attr("stroke-width",t.E["map-shape-info"]["stroke-width"])}else if("vml"===t.A.AC){var o=ZC.AK(t.K+"-shape-"+a.shape.id+"-gshape-path"),r=o.childNodes[1],s=o.childNodes[2],A=t.E["map-shape-info"];"poly"===a.shape.type&&ZC.Q.G2(s,{color:A.fill}),ZC.Q.G2(r,{weight:A["stroke-width"],color:A.stroke})}t.RU(n,a)},t.ZX=function(i){var n=e(i);n.tooltip&&t.A8&&t.A.A8&&t.A8.AM&&t.A.A8.onmousemove(i),t.RU("mousemove",n)},t.UG=function(i){var n=e(i);if("dblclick"!==i.type){i.ctrlKey||t.LN("click"),t.T7=t.T7||{},t.T7["s_"+n.shapeid]?(t.T7["s_"+n.shapeid]=null,t.LN("click")):(i.ctrlKey||(t.T7={}),t.T7["s_"+n.shapeid]=1,t.SD("shape",n.shapeindex,"click")),t.RU("click",n);var a=t.FE[n.shapeindex].BE||t.FE[n.shapeindex];if(ZC.mobile&&(t.E["click-ts"]&&(new Date).getTime()-t.E["click-ts"]<500&&t.RU("dblclick",n),t.E["click-ts"]=(new Date).getTime()),a&&a.E8&&"NULL"!==a.E8)if(a.E8 instanceof Array)for(var l=0;l<a.E8.length;l++)null!==ZC._n_(a.FC[l])&&t.UQ(i,a.E8[l],a.FC[l]);else t.UQ(i,a.E8,a.FC)}else t.RU("dblclick",n)},ZC.A4("."+t.K+"-shape-area").live(ZC.mobile?"touchstart":"mousedown mouseover",t.ZV).live(ZC.mobile?"touchend":"mouseup mouseout",t.A0H).live(ZC.mobile?"touchmove":"mousemove",t.ZX),ZC.mobile||ZC.A4("."+t.K+"-shape-area").live("click",t.UG).live("dblclick",t.UG);var n,a,l;t.ZO=function(e){ZC.mobile&&(t.LN(),ZC.move=!1,t.H.hideCM(),null===t.H.DF||null===ZC._n_(t.H.DF["page-scroll"])||t.H.DF["page-scroll"]||e.preventDefault(),t.A.YS(e));var n=i(e);if(n.tooltip&&t.A8&&t.A.A8&&t.A8.AM&&t.A.A8.onmouseover(e),null!==n&&"label"===n.type){var a=ZC.mobile?"mousedown":e.xtype||e.type;n["data-active"]||t.SD("label",n.labelindex),t.RO(a,n)}},t.A0I=function(e){ZC.mobile&&(t.H.A9B||ZC.move||(zingchart.SA(e),t.UF(e)),t.A.OP(e)),t.A8&&t.A.A8&&t.A8.AM&&t.A.A8.onmouseout(e),ZC.mobile||t.LN();var n=i(e);if(null!==n){var a=ZC.mobile?"mouseup":e.xtype||e.type;ZC.AK(t.K+"-label-"+n.label.id)&&(ZC.AK(t.K+"-label-"+n.label.id).style.display="block"),t.RO(a,n)}},t.ZS=function(e){var n=i(e);n.tooltip&&t.A8&&t.A.A8&&t.A8.AM&&t.A.A8.onmousemove(e),t.RO("mousemove",n)},t.UF=function(e){var n=i(e);if("dblclick"!==e.type){e.ctrlKey||t.LN("click"),t.T7=t.T7||{},t.T7["l_"+n.labelid]?(t.T7["l_"+n.labelid]=null,t.LN("click")):(e.ctrlKey||(t.T7={}),t.T7["l_"+n.labelid]=1,t.SD("label",n.labelindex,"click")),t.RO("click",n),ZC.mobile&&(t.E["click-ts"]&&(new Date).getTime()-t.E["click-ts"]<500&&t.RO("dblclick",n),t.E["click-ts"]=(new Date).getTime());var a=t.BX[n.labelindex];if(!a)switch(n.type){case"graph-title":a={E8:t.IX.E8,FC:t.IX.FC};break;case"graph-subtitle":a={E8:t.KJ.E8,FC:t.KJ.FC};break;case"graph-source":a={E8:t.MP.E8,FC:t.MP.FC}}if(a&&a.E8&&"NULL"!==a.E8)if(a.E8 instanceof Array)for(var l=0;l<a.E8.length;l++)null!==ZC._n_(a.FC[l])&&(a.E8[l]=a.E8[l].replace("%id",t.A.K),a.E8[l]=a.E8[l].replace("%graphid",t.K.replace(t.A.K+"-graph-","")),t.UQ(e,a.E8[l],a.FC[l]));else a.E8=a.E8.replace("%id",t.A.K),a.E8=a.E8.replace("%graphid",t.K.replace(t.A.K+"-graph-","")),t.UQ(e,a.E8,a.FC)}else t.RO("dblclick",n)},ZC.A4("."+t.K+"-label-area").live(ZC.mobile?"touchstart":"mousedown mouseover",t.ZO).live(ZC.mobile?"touchend":"mouseup mouseout",t.A0I).live(ZC.mobile?"touchmove":"mousemove",t.ZS),ZC.mobile||ZC.A4("."+t.K+"-label-area").live("click",t.UF).live("dblclick",t.UF)}},ZC.JS.prototype.RO=function(e,i){var t=this;ZC._cp_(t.I3(),i),i.ev=ZC.A4.C0(i.ev),ZC.AP.BZ("label_"+e,t.A,i)},ZC.JS.prototype.RU=function(e,i){var t=this;ZC._cp_(t.I3(),i),i.ev=ZC.A4.C0(i.ev),ZC.AP.BZ("shape_"+e,t.A,i)},ZC.JS.prototype.UV=function(e){var i,t=this;if("string"==typeof e){var n={},a=e.split(":");if(2===a.length){n.type=a[0];for(var l=0,o=(a=a[1].split(/\s|,|;/)).length;l<o;l++){var r=a[l].split("=");n[r[0]]=r[1]}}e=n}var s,A=[-1,-1];switch(t.E.hooks=!0,e.type){case"scale":var C="",c=-1,u=null;null!==ZC._n_(i=e.name)&&(C=i),null!==ZC._n_(i=e.index)&&(c=ZC._i_(i)),null!==ZC._n_(i=e.value)&&(u=ZC._i_(i)),s=null;var p,Z,h;if(""===C&&(C="scale-x"),s=t.BN(C))switch(s.I4&&-1!==c?h=s.I4(c):s.B2&&(null!==ZC._n_(u)?h=s.B2(u):-1!==c&&(h=s.B2(s.X[c]))),t.AJ.layout){case"radar":case"gauge":p=h[0],Z=h[1];break;case"xy":"k"===s.AF?(p=h,Z=s.iY,"default"===s.B8&&(Z+=s.F)):"v"===s.AF&&(Z=h,p=s.iX,"opposite"===s.B8&&(p+=s.I));break;case"yx":"k"===s.AF?(Z=h,p=s.iX,"opposite"===s.B8&&(p+=s.I)):"v"===s.AF&&(p=h,Z=s.iY,"default"===s.B8&&(Z+=s.F))}A=[p,Z,{center:!0}];break;case"node":var d=-1,f=null,_=null,g=null,v=null;null!==ZC._n_(i=e.plot)&&(g=i),null!==ZC._n_(i=e.plotindex)&&(g=i),null!==ZC._n_(i=e.plotid)&&(v=i);var b=t.HV(g,v);null!==ZC._n_(i=e.index)&&(d=ZC._i_(i)),null!==ZC._n_(i=e.value)&&(f=i),null!==ZC._n_(i=e.keyvalue)&&(_=i);var m=null;if(b){if(-1!==d&&b.R[d])m=b.FP(d,3);else if(null!==ZC._n_(f)||null!==ZC._n_(_)){s=b.C.BN(b.BM[0]);var B,E;if(null!==_&&null===f&&b.R.length>4096&&s.FD&&"date"===s.FD.o.type&&null!==(B=ZC._nfind_(_,b,0,b.R.length-1))&&(m=b.FP(B,3)),!m)for(B=0,E=b.R.length;B<E;B++)b.R[B]&&(null!==f&&b.R[B].AD==f&&(m=b.FP(B,3)),null!==_&&null!==ZC._n_(b.R[B].BU)&&b.R[B].BU==_&&(m=b.FP(B,3)))}m&&(m.setup(),A=m.UV(e),!m.JB&&ZC.DT(A[0],t.P.iX,t.P.iX+t.P.I)&&ZC.DT(A[1],t.P.iY,t.P.iY+t.P.F)&&(m.JB=!0),m.JB&&m.AM&&m.A.AM&&m.C.E["plot"+m.A.L+".visible"]||(A=[-1,-1])),b.E["z-mid"]&&(A[2].z=b.E["z-mid"])}}return null!==ZC._n_(e.x)&&(A[0]=ZC._i_(e.x)),null!==ZC._n_(e.y)&&(A[1]=ZC._i_(e.y)),null!==ZC._n_(i=e["offset-x"])&&(A[0]+=ZC._i_(i)),null!==ZC._n_(i=e["offset-y"])&&(A[1]+=ZC._i_(i)),A},zingchart.AB1=function(e,i,t){document.getElementById("zc-fullscreen")&&(e="zc-fullscreen"),"string"==typeof(t=t||{})&&(t=JSON.parse(t));var n,a,l,o,r,s,A,C,c,u,p,Z,h,d,f=!(null!==ZC._n_(t.update)&&!ZC._b_(t.update)),_=!!t.dynamic&&ZC._b_(t.dynamic),g=zingchart.getLoader(e);if(g)switch(i){case"addobject":if((n=g.C9(t.graphid))&&t.data){if(C=t.data instanceof Array,c=C?[]:{},ZC._cp_(t.data,c),a=t.type||"label",C)for(r=0,s=c.length;r<s;r++)a=t.type||c[r].objtype||"label",n.o[a+"s"]||(n.o[a+"s"]=[]),_&&(c[r]["map-item"]=!1),n.o[a+"s"].push(c[r]);else n.o[a+"s"]||(n.o[a+"s"]=[]),_&&(c["map-item"]=!1),n.o[a+"s"].push(c);f&&(n.OU(),n.QK(_))}t.callback&&"function"==typeof t.callback&&t.callback(t);break;case"removeobject":if(n=g.C9(t.graphid),t["class"]&&(t.cls=t["class"]),n&&(t.id||t.cls||t.group)){a=t.type||"label",A=n.o[a+"s"]||[],l=t.id?"string"==typeof t.id?[t.id]:t.id:[],o=t.cls?"string"==typeof t.cls?[t.cls]:t.cls:[],u=!1;var v=[];for(r=A.length-1;r>=0;r--)(null!==ZC._n_(A[r].id)&&-1!==ZC.AV(l,A[r].id)||null!==ZC._n_(A[r].cls)&&-1!==ZC.AV(o,A[r].cls)||null!==ZC._n_(A[r]["class"])&&-1!==ZC.AV(o,A[r]["class"])||t.group&&A[r].group===t.group)&&(null!==ZC._n_(A[r].id)&&v.push(A[r].id),A.splice(r,1),u=!0);for(r=0;r<v.length;r++)ZC.Q.EU([n.K+"-label-"+v[r]+"-gradient",n.K+"-label-"+v[r]+"-top-gradient",n.K+"-shape-"+v[r]+"-gradient",n.K+"-shape-"+v[r]+"-top-gradient",n.K+"-shape-"+v[r]+"-gshape-gradient",n.K+"-shape-"+v[r]+"-gshape-top-gradient"]);u&&f&&(n.OU(),n.QK(_))}t.callback&&"function"==typeof t.callback&&t.callback(t);break;case"updateobject":if(t["class"]&&(t.cls=t["class"]),(n=g.C9(t.graphid))&&t.data){n.E["objects.updates"]=[],a=t.type||"label",A=n.o[a+"s"]||[],d="label"===a?n.BX:n.FE,c=(C=t.data instanceof Array)?[]:{},ZC._cp_(t.data,c),u=!1;var b=!0,m=function(e,i){var t,l,o,r=n.X5[e.id||""],s=!1;if(r&&("label"===r.shape?(o=n.BX[r.idx],Object.keys&&3===Object.keys(e).length&&null!==ZC._n_(e.x)&&null!==ZC._n_(e.y)&&(o.iX=e.x,o.iY=e.y,s=!0)):((o=n.FE[r.idx]).BE&&o.BE.o["map-item"]&&(b=!1),"circle"===r.shape?Object.keys&&3===Object.keys(e).length&&null!==ZC._n_(e.x)&&null!==ZC._n_(e.y)&&(o.BE?(o.BE.iX=e.x,o.BE.iY=e.y):(o.iX=e.x,o.iY=e.y),s=!0):"line"===r.shape&&Object.keys&&2===Object.keys(e).length&&null!==ZC._n_(e.points)&&(o.BE?o.BE.D=e.points:o.D=e.points,s=!0))),s||n.E["objects.updates"].push(e.id),ZC._cp_(e,i),null!==ZC._n_(e.animation)){var A=null;if("label"===a){for(t=0,l=n.BX.length;t<l;t++)if(n.BX[t].H2===e.id){A=n.BX[t];break}}else if("shape"===a)for(t=0,l=n.FE.length;t<l;t++)if(n.FE[t].H2===e.id){A=n.FE[t]instanceof ZC.QU?n.FE[t].BE:n.FE[t];break}var C=n.LT,c={};if(ZC._cp_(e,c),null!==ZC._n_(c.x)&&(c.x+=n.iX),null!==ZC._n_(c.y)&&(c.y+=n.iY),null!==ZC._n_(c.points))for(t=0,l=c.points.length;t<l;t++)null!==ZC._n_(c.points[t])&&(c.points[t][0]+=n.iX,c.points[t][1]+=n.iY,null!==ZC._n_(c.points[t][2])&&(c.points[t][2]+=n.iX),null!==ZC._n_(c.points[t][3])&&(c.points[t][3]+=n.iY));c.animation=null;var p=new ZC.EA(A,c,ZC._i_(e.animation.speed||"300"),ZC._i_(e.animation.delay||"0"),ZC.EA.RC[ZC._i_(e.animation.method||"0")],function(){null!==ZC._n_(e.animation.end)&&e.animation.end.call()});n.PX=!0,window.setTimeout(function(){C.add(p)},33)}u=!0};if(C){var B=!1,E=!1;for(r=0,s=c.length;r<s;r++){if(null!==ZC._n_(c[r].objtype)&&(A=n.o[c[r].objtype+"s"]),A)for(p=0,Z=A.length;p<Z;p++)null!==ZC._n_(c[r].id)&&null!==ZC._n_(A[p].id)&&A[p].id===c[r].id&&m(c[r],A[p]);null!==ZC._n_(c[r].animation)?B=!0:E=!0,E&&B&&(ZC.SKIPMAPS=b,n.PS())}}else if(t.group)for(p=0,Z=A.length;p<Z;p++)A[p].group===t.group&&(c.id=A[p].id,m(c,A[p]));else if(t.cls)for(p=0,Z=A.length;p<Z;p++)A[p].cls===t.cls&&(c.id=A[p].id,m(c,A[p]));else for(e=c.id||t.id,p=0,Z=A.length;p<Z;p++)null!==ZC._n_(A[p].id)&&null!==ZC._n_(e)&&A[p].id===e&&(c.id=e,m(c,A[p]));ZC.SKIPMAPS=b,!u||!f&&n.PX||n.PX||(n.OU(),n.QK(_))}t.callback&&"function"==typeof t.callback&&t.callback(t);break;case"repaintobjects":(n=g.C9(t.graphid))&&(n.OU(),n.QK(_)),t.callback&&"function"==typeof t.callback&&t.callback(t);break;case"getobjectsbyclass":if(t["class"]&&(t.cls=t["class"]),n=g.C9(t.graphid),l=[],n&&t.cls){a=t.type||"label",A=n.o[a+"s"]||[];var K=t.cls instanceof Array?t.cls:[t.cls];for(r=0,s=A.length;r<s;r++)-1===ZC.AV(K,A[r].cls)&&-1===ZC.AV(K,A[r]["class"])||null===ZC._n_(A[r].id)||l.push(A[r].id)}return l;case"getlabelinfo":case"getshapeinfo":var F={x:"iX",y:"iY",width:"I",height:"F",color:"C1",lineColor:"B9",lineWidth:"B0",borderColor:"BV",borderWidth:"AT",backgroundColor1:"A0",backgroundColor2:"AE",size:"AI",type:"DQ",text:"AR",fontSize:"DK",callout:"KP",calloutPosition:"ES",offsetX:"BJ",offsetY:"BH"};if(n=g.C9(t.graphid),a=t.type||"label","getlabelinfo"===i&&"label"!==a||"getshapeinfo"===i&&"shape"!==a)return null;if(e=t.id||"",n&&""!==e){d=[],"label"===a?d=n.BX:"shape"===a&&(d=n.FE);var D=null;for(r=0,s=d.length;r<s;r++)d[r].H2===e&&(D=d[r]);if(D){var X={};if("shape"===a){if(D.M){X.label={};for(h in F)X.label[h]=D.M[F[h]]}D.BE&&(D=D.BE)}for(h in F)X[h]=D[F[h]];return X}}return null;case"setobjectsmode":zingchart.OBJECTMODE="normal",t.mode&&"flat"===t.mode&&(zingchart.OBJECTMODE="flat");break;case"settweenmode":ZC.objmove=!1,t.mode&&"position"===t.mode&&(ZC.objmove=!0)}return null},ZC.JS.prototype.A2H=function(){var e,i,t=this,n=0;for(e=0,i=t.BM.length;e<i;e++)"k"===t.BM[e].AF&&t.o[t.BM[e].BC]&&t.o[t.BM[e].BC].values&&(n=ZC.BQ(n,t.o[t.BM[e].BC].values.length));for(e=0,i=t.AY.A6.length;e<i;e++)null!==ZC._n_(t.o.series[e])&&t.o.series[e].values&&(n=ZC.BQ(n,t.o.series[e].values.length));return n},ZC.JS.prototype.U0=function(){var e,i=this;if(i.HM)for(var t=i.A2H(),n=0,a=i.BM.length;n<a;n++)"k"===i.BM[n].AF&&(i.BM[n].CQ?(e=(i.BM[n].F-i.BM[n].A5-i.BM[n].BW)/ZC._i_(i.HM["max-ticks"]),i.BM[n].OH=ZC.BQ(0,i.BM[n].F-t*e)):(e=(i.BM[n].I-i.BM[n].A5-i.BM[n].BW)/ZC._i_(i.HM["max-ticks"]),i.BM[n].OH=ZC.BQ(0,i.BM[n].I-t*e)),ZC._b_(i.HM["adjust-scale"])&&(i.BM[n].OH=0),i.BM[n].A5=i.BM[n].A3X+i.BM[n].OH,i.A.E[i.BM[n].BC+"-feed-offset-start"]=i.BM[n].A5,i.BM[n].V=ZC.BQ(0,i.BM[n].A1-i.HM["max-ticks"]+1),i.BM[n].IW())},ZC.JS.prototype.ABV=function(){var s=this,G,MK,ws;if(s.E["from-api"]&&(window.clearTimeout(ZC.REFRESH_TICK[s.K]),delete s.E["from-api"]),s.HM){var OM=ZC._i_(s.HM.interval);if(OM=OM>=50?OM:1e3*OM,"full"===s.HM.type)"http"===s.HM.transport?ZC.REFRESH_TICK[s.K]=window.setTimeout(function(){s.A.MV(s),ZC.ZH(function(){s.A.load(s.K,s.A9Y)})},OM):"websockets"===s.HM.transport&&ZC.websockets&&(s.H.S6[s.K]?"pull"===s.HM.method&&(ZC.REFRESH_TICK[s.K]=window.setTimeout(function(){s.H.S6[s.K].send("zingchart.getdata")},OM)):(ws=new WebSocket(s.HM.url,"zingchart"),ws.onopen=function(){ws.send("zingchart."+s.HM.type),ws.send("zingchart."+s.HM.method),ws.send("zingchart.getdata")},ws.onmessage=function(e){"ready"===s.M9&&(s.A.MV(s),s.M9="full",ZC.ZH(function(){zingchart.exec(s.A.K,"setdata",{graphid:s.K,data:e.data,softclear:!0})}))},s.H.S6[s.K]=ws));else if("feed"===s.HM.type&&null!==ZC._n_(s.HM.url)){if(null!==ZC._n_(s.HM.curtain)){var OA=s.BT("k");if(OA.length>0&&(ZC.Q.EU(s.K+"-curtain-t"),OA[0].OH>0)){var LV=new ZC.DS(s);s.A.B7.load(LV.o,"("+s.AF+").refresh.curtain"),LV.append(s.HM.curtain),LV.parse(),LV.AM&&(OA[0].CQ&&LV.F<=OA[0].OH||!OA[0].CQ&&LV.I<=OA[0].OH)&&(LV.K=s.K+"-curtain-t",LV.IJ=ZC.AK(s.A.K+"-text-top"),OA[0].CQ?(LV.F>OA[0].OH&&(LV.AR="",LV.parse()),LV.iX=s.P.iX,LV.iY=OA[0].AU?s.P.iY:s.P.iY+s.P.F-OA[0].OH,LV.I=s.P.I,LV.F=OA[0].OH):(LV.I>OA[0].OH&&(LV.AR="",LV.parse()),LV.iX=OA[0].AU?s.P.iX+s.P.I-OA[0].OH:s.P.iX,LV.iY=s.P.iY,LV.I=OA[0].OH,LV.F=s.P.F),LV.Z=LV.C6=ZC.AK(s.K+"-scales-ml-0-c"),LV.paint())}}var A0O=s.HM.transport,A3S=ZC._i_(s.HM["reset-timeout"]),A4H=ZC._i_(s.HM["stop-timeout"]),AA4=ZC._b_(s.HM.storage),A0F=!0;null!==ZC._n_(s.HM["preserve-data"])&&(A0F=ZC._b_(s.HM["preserve-data"]));var A4I=function(K8){for(var TK=eval("("+K8+")"),i,A7,A87=TK instanceof Array?TK:[TK],r=0,rLen=A87.length;r<rLen;r++){var DJ=A87[r];for(i=0,A7=s.BM.length;i<A7;i++)if("k"===s.BM[i].AF){var BC=s.BM[i].BC;null!==ZC._n_(DJ[BC])&&null!==ZC._n_(s.o[BC])&&(null===ZC._n_(s.o[BC].values)&&(s.H.o.graphset[s.L][BC].values=[],s.o[BC].values=[]),s.o[BC].values.push(DJ[BC]),!A0F&&s.o[BC].values.length>ZC._i_(s.HM["max-ticks"])&&s.o[BC].values.splice(0,1),s.H.o.graphset[s.L][BC].values.push(DJ[BC]),(s.o[BC].values.length>A3S||1===s.M8[1])&&(s.H.o.graphset[s.L][BC].values=[],s.o[BC].values=[],s.H.E["graph"+s.L+".zoom"]&&(s.H.E["graph"+s.L+".zoom"].xmin=null,s.H.E["graph"+s.L+".zoom"].xmax=null),s.I9&&(s.I9.unbind(),ZC.Q.IQ(ZC.AK(s.K+"-scroll-x-c"),s.A.AC,s.iX,s.iY,s.I,s.F,s.K),ZC.A4("#"+s.K+"-scroll-x-handle").remove(),ZC.A4("#"+s.K+"-scroll-x-bar").remove()),s.I6&&(s.I6.unbind(),ZC.Q.IQ(ZC.AK(s.K+"-scroll-y-c"),s.A.AC,s.iX,s.iY,s.I,s.F,s.K),ZC.A4("#"+s.K+"-scroll-y-handle").remove(),ZC.A4("#"+s.K+"-scroll-y-bar").remove())),ZC.webstorage&&AA4&&ZC.AP.storage.push("zingchart.scale."+s.K+"."+BC,""+DJ[BC]))}for(i=0,A7=s.AY.A6.length;i<A7;i++)if(null!==ZC._n_(s.o.series[i])){var A3M=null;null!==ZC._n_(G=DJ["plot-"+i])?A3M=G:null!==ZC._n_(G=DJ["plot"+i])&&(A3M=G),"xy"===s.AJ.layout||"yx"===s.AJ.layout?(s.H.o.graphset[s.L].series[i].values.push(A3M),!A0F&&s.H.o.graphset[s.L].series[i].values.length>ZC._i_(s.HM["max-ticks"])&&s.H.o.graphset[s.L].series[i].values.splice(0,1)):s.H.o.graphset[s.L].series[i].values=[A3M],ZC.webstorage&&AA4&&("object"==typeof(G=DJ["plot"+i])&&(G=G.join("###")),ZC.AP.storage.push("zingchart.plot."+s.K+".plot"+i,""+G)),(s.o.series[i].values.length>A3S||1===s.M8[1])&&(ZC.AP.BZ("feed_clear",s.A,s.I3(),DJ),s.H.o.graphset[s.L].series[i].values=[])}MK=s.A2H()}("ready"===s.M9||s.GA)&&(1===s.M8[1]&&(s.M8[1]=0),(MK<=A4H||0===A4H)&&(s.M9="feed",ZC.ZH(function(){ZC.AK(s.A.K+"-main")&&(ZC.AP.BZ("feed_step",s.H,s.I3(),s.o),s.parse(),s.clear(!0),s.U0(),s.paint(!0,!0))})))};if("http"===A0O||"js"===A0O){var E8=s.HM.url;ZC.REFRESH_TICK[s.K]=window.setTimeout(function(){if(1===s.M8[0]||1===s.M8[1])if(s.A.MV(s),"http"===A0O){var EW=["query-string"===s.A.MX?"zcrandom="+Math.random():"",zingchart.ZCOUTPUT?"zcoutput="+s.H.AC:""].join("&");ZC.A4.ajax({type:"GET",url:E8,beforeSend:function(e){s.A.RX.data||"http-headers"!==s.A.MX||e.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT")},data:EW,dataType:"text",error:function(){},success:function(e){A4I(e)}})}else if("()"===E8.substring(E8.length-2)||"javascript:"===E8.substring(0,11))try{var EI=E8.replace("javascript:","").replace("()","");eval(EI)&&eval(EI).call(s,function(e){A4I(e)},s.I3())}catch(e){}},OM)}else"websockets"===A0O&&ZC.websockets&&(s.H.S6[s.K]?"pull"===s.HM.method&&(ZC.REFRESH_TICK[s.K]=window.setTimeout(function(){s.H.S6[s.K].send("zingchart.getdata")},OM)):(ws=new WebSocket(s.HM.url,"zingchart"),ws.onopen=function(){ws.send("zingchart."+s.HM.type),ws.send("zingchart."+s.HM.method),ws.send("zingchart.startfeed"),"pull"===s.HM.method&&ws.send("zingchart.getdata")},ws.onmessage=function(e){1!==s.M8[0]&&1!==s.M8[1]||A4I(e.data)},s.H.S6[s.K]=ws))}}},zingchart.ABG=function(e,i,t){var n;document.getElementById("zc-fullscreen")&&(e="zc-fullscreen"),"string"==typeof(t=t||{})&&(t=JSON.parse(t));var a=zingchart.getLoader(e);if(a){var l=a.C9(t.graphid);switch(i){case"clearfeed":l.M8[1]=1,0===l.M8[0]&&ZC.ZH(function(){l.parse(),l.clear(!0),l.U0(),l.paint(!0,!0)});break;case"getinterval":return l.HM.interval;case"setinterval":ZC.AP.BZ("feed_interval_modify",a,l.I3()),l.o.refresh=l.o.refresh||{},l.o.refresh.interval=t.interval||1;break;case"stopfeed":1===l.M8[0]&&(ZC.AP.BZ("feed_stop",a,l.I3()),l.M8[0]=0,null!==ZC._n_(n=a.S6[l.K])&&n.send("zingchart.stopfeed"));break;case"startfeed":0===l.M8[0]&&(ZC.AP.BZ("feed_start",a,l.I3()),l.M8[0]=1,null!==ZC._n_(n=a.S6[l.K])&&n.send("zingchart.startfeed"),ZC.ZH(function(){l.parse(),l.clear(!0),l.U0(),l.paint(!0,!0)}))}}return null},ZC.AP.A3Z=function(e){for(var i={},t=[],n=0,a=(t="object"==typeof e?e:JSON.parse(e)).length;n<a;n++)if(null!==ZC._n_(e=t[n])){i["p"+n]={};var l=[];if("object"==typeof e)l=e;else if("string"==typeof e&&/\d+\-\d+/.test(e)){var o=e.split("-");if(2===o.length){l=[];for(var r=ZC._i_(o[0]);r<=ZC._i_(o[1]);r++)l.push(r)}}else l=[e];for(var s=0,A=l.length;s<A;s++)i["p"+n]["n"+l[s]]=!0}return i},ZC.JS.prototype.ABQ=function(){var e,i=this;null!==ZC._n_(e=i.o.selection)&&(i.CH=ZC.AP.A3Z(e),i.o.selection=null)},zingchart.AAJ=function(e,i,t){var n,a,l,o,r,s,A,C,c;document.getElementById("zc-fullscreen")&&(e="zc-fullscreen"),"string"==typeof(t=t||{})&&(t=JSON.parse(t));var u=zingchart.getLoader(e);if(u)switch(i){case"clearselection":if(a=u.C9(t.graphid)){for(a.CH={},l=0,o=a.AY.A6.length;l<o;l++)a.IT[l]=!1;a.HF=!0,a.clearPreview(),a.K3(!0,!0)}break;case"getselection":if(a=u.C9(t.graphid)){for(s=[],l=0,o=a.AY.A6.length;l<o;l++)if(s[l]=null,null!==ZC._n_(a.CH["p"+l])){var p=[];for(A in a.CH["p"+l])a.CH["p"+l].hasOwnProperty(A)&&a.CH["p"+l][A]&&p.push(ZC._i_(A.replace("n","")));s[l]=p}return s}return{};case"setselection":var Z={};s=[],null!==ZC._n_(n=t.selection)&&(Z=ZC.AP.A3Z(n)),(a=u.C9(t.graphid))&&(a.CH=Z,a.HF=!0,a.clearPreview(),a.K3(!0,!0));break;case"select":case"deselect":var h=[],d=function(e){var t=!1;null!==ZC._n_(n=e.toggle)&&(t=ZC._b_(n));var a=u.C9(e.graphid);if(a){for(l=0,o=a.AY.A6.length;l<o;l++)a.IT[l]=!1;var s=null,p=null;if(null!==ZC._n_(n=e.plotindex))if("object"==typeof n)s=n;else if("string"==typeof n&&/\d+\-\d+/.test(n)){if(2===(r=n.split("-")).length)for(s=[],c=ZC._i_(r[0]);c<=ZC._i_(r[1]);c++)s.push(c)}else s=[n];if(null!==ZC._n_(n=e.plotid)){var Z=[];for(Z="object"==typeof n?n:[n],c=0;c<Z.length;c++){var d=a.HV(null,Z[c]);d&&(s||(s=[]),s.push(d.L))}}if(null!==ZC._n_(n=e.nodeindex))if("object"==typeof n)p=n;else if("string"==typeof n&&/\d+\-\d+/.test(n)){if(2===(r=n.split("-")).length)for(p=[],c=ZC._i_(r[0]);c<=ZC._i_(r[1]);c++)p.push(c)}else p=[n];if(null===ZC._n_(s))for(s=[],l=0,o=a.AY.A6.length;l<o;l++)s.push(l);for(l=0,o=s.length;l<o;l++){var f=s[l];if(a.AY.A6[f])if(null===ZC._n_(a.CH["p"+f])&&(a.CH["p"+f]={}),null===ZC._n_(p))for(A=0,C=a.AY.A6[f].R.length;A<C;A++)"select"===i?t&&a.CH["p"+f]["n"+A]?delete a.CH["p"+f]["n"+A]:a.CH["p"+f]["n"+A]=!0:"deselect"===i&&delete a.CH["p"+f]["n"+A];else for(A=0,C=p.length;A<C;A++)"select"===i?t&&a.CH["p"+f]["n"+p[A]]?delete a.CH["p"+f]["n"+p[A]]:a.CH["p"+f]["n"+p[A]]=!0:"deselect"===i&&delete a.CH["p"+f]["n"+p[A]]}-1===ZC.AV(h,a)&&h.push(a)}};if(t instanceof Array)for(c=0;c<t.length;c++)d(t[c]);else d(t);for(c=0;c<h.length;c++)h[c].HF=!0,h[c].clearPreview(),h[c].K3(!0,!0)}return null},ZC.JS.prototype.NW=function(){var e=this;e.AJ["3d"]&&"undefined"!=typeof ZC.AN&&(ZC.AN.A4E=2.5*ZC.BQ(e.I,e.F),ZC.AN.E3=e.P.iX+e.P.I/2,ZC.AN.E2=e.P.iY+e.P.F/2,ZC.AN.FS=ZC._i_(e.F0.depth),ZC.AN.E3+=e.F0["offset-x"],ZC.AN.E2+=e.F0["offset-y"])},ZC.JS.prototype.ADC=function(){var e,i,t=this;if(t.AJ["3d"]&&"undefined"!=typeof ZC.AN){if(t.A.B7.load(t.F0,"graph.3d-aspect"),t.A.B7.load(t.F0,t.AF+".3d-aspect"),null!==ZC._n_(e=t.o["3d-aspect"])&&ZC._cp_(e,t.F0),"pie3d"===t.AF&&t.o.plot&&t.o.plot.tilt){var n=ZC._l_(ZC._f_(t.o.plot.tilt),1,3);t.F0["x-angle"]=25+(n-1)/2*(t.AJ["x-angle-max"]-t.AJ["x-angle-min"])}var a=["angle","depth","x-angle","y-angle","z-angle","zoom","offset-x","offset-y"];for(i=0;i<a.length;i++)t.F0[a[i]]=ZC._f_(t.F0[a[i]]);var l=["angle","x-angle","y-angle","z-angle"];for(i=0;i<l.length;i++)ZC.DT(t.F0[l[i]],t.AJ[l[i]+"-min"],t.AJ[l[i]+"-max"])||(t.F0[l[i]]=t.AJ[l[i]+"-min"]);t.F0.true3d=ZC._b_(t.F0.true3d)}},ZC.JS.prototype.S5=function(){var e,i,t,n,a=this;3!==zingchart.V3D&&(zingchart.V3D=a.F0.true3d?1:2);var l=a.CK.A42.length;for(e=0;e<l;e++)(i=a.CK.A42[e]).AD8(),a.F0.true3d?3===zingchart.V3D?a.CK.WN[e]=[ZC._f_(i.ZK.toFixed(1))*i.MB[2],e]:a.CK.WN[e]=[[ZC._f_(i.SJ.toFixed(1))*i.MB[0],ZC._f_(i.A4X.toFixed(1))*i.MB[1],ZC._f_(i.ZK.toFixed(1))*i.MB[2],ZC._f_(i.A25.toFixed(1))],e]:a.CK.WN[e]=[[ZC._f_(i.SJ.toFixed(1))*i.MB[0],ZC._f_(i.A54.toFixed(1))*i.MB[1],ZC._f_(i.A36.toFixed(1))*i.MB[2],ZC._i_(i.FX)],e];a.CK.WN.sort(a.CK.sortFaces);var o=new ZC.DW(a);for(t=a.H.usc()?a.H.mc():ZC.AK(a.K+"-plots-bl-c"),n=ZC.Q.E9(t,a.H.AC),e=0;e<l;e++){var r=[],s=a.CK.WN[e][1],A=(i=a.CK.A42[s]).D.length;if(A>0){for(var C=0;C<A;C++)r.push(i.D[C].EB);r.push(i.D[0].EB),o.$i(a),o.K=a.K+"-3dshape-"+(""!==i.K?i.K:ZC.SEQ++),o.copy(i.N),o.CZ=!1,o.Z=t,o.locate(1),o.D=r,o.DQ="poly",o.locate(2),o.paint()}}var c=[];for(var u in a.CK.SF)c.push([u,a.CK.SF[u].zIndex]);c.sort(function(e,i){return i[1]-e[1]});for(var p=0;p<c.length;p++){var Z=a.CK.SF[c[p][0]];ZC.CS.setup(n,Z.style),ZC.CS.paint(n,Z.style,Z.points)}},ZC.JS.prototype.U3=function(){if(!zingchart.SKIP.LEGEND){var e,i=this;if(i.BF){if(i.BF.S3&&i.L!==i.A.AH.length-1&&!i.BF.o.force)return;i.BF.Z=i.BF.C6=i.H.usc()?i.H.mc("top"):ZC.AK(i.K+"-legend-c"),i.BF.paint(),-1===ZC.AV(i.H.KM,"skip_interactivity")&&(i.QR=function(e){var t,n;if(!ZC.move){i.A8&&i.A.A8&&i.A8.AM&&i.A.A8.onmouseover(e);var a=e.targetid||e.target.id,l=ZC._i_(a.replace(i.K,"").replace("-legend-item_","").replace("-legend-marker_","").replace("-area","").replace("-marker","")),o=i.AY.A6[l];if(o.FW&&(i.BF.WD||o.I5)&&o.R.length)for(t=0,n=o.R.length;t<n;t++)null!==o.R[t]&&o.R[t].JB&&o.FP(t).A3H("highlight");ZC.move=!0;var r=o.L;o.o["legend-item"]&&null!==ZC._n_(o.o["legend-item"].order)&&(r=ZC._i_(o.o["legend-item"].order)),i.BF.highlightItem(r),ZC.move=!1;var s=i.AY.A6[l].UZ(e);i.E["legend-action-index"]=l,ZC.AP.BZ("legend_mouseover",i.A,s)}},i.PI=function(e){ZC.move||i.A8&&i.A.A8&&i.A8.AM&&i.A.A8.onmousemove(e)},i.R4=function(e){if(!ZC.move){i.A8&&i.A.A8&&i.A8.AM&&i.A.A8.onmouseout(e),i.LN(),ZC.move=!0,i.BF.highlightItem(-1),ZC.move=!1;var t=ZC._c_(i.E["legend-action-index"],0),n=i.AY.A6[t].UZ(e);ZC.AP.BZ("legend_mouseout",i.A,n)}},i.zc_legend_mousescroll=function(e){i.BF.DC&&"scroll-y"===i.BF.DC.AF&&(e.preventDefault(),i.BF.DC.A33(e))},i.SG=function(t){if(i.E.legend_toggle_action=!0,!(ZC.move||(zingchart.SA(t),t.which>1))){var n,a,l,o=t.targetid||t.target.id,r=ZC._b_(i.BF.BR.o.reorder);ZC.mobile&&i.H.A8&&i.H.A8.hide();var s="item";-1!==o.indexOf("-legend-marker_")&&(s="marker"),i.LN(),t.preventDefault();var A=i.BF.IH;"item"===s?A=i.BF.QX:"marker"===s&&(A=i.BF.PL),i.A.K5&&(A="remove"),i.E["legend-last-trigger"]=s;var C=ZC._i_(o.replace(i.K+"-legend-item_","").replace(i.K+"-legend-marker_","").replace("-area",""));if(i.o.series&&i.o.series[C]){if(null!==ZC._n_(e=i.o.series[C]["legend-item"])){var c=e.url||"",u=e.target||"";""!==c&&i.UQ(t,c,u)}i.o.series[C].visible=!0}var p=i.AY.A6[C].UZ(t);p.visible=ZC._b_(i.E["plot"+C+".visible"]),ZC.AP.BZ("legend_"+s+"_click",i.A,p);var Z,h,d;switch(A){default:break;case"hide":case"remove":if(t.shiftKey){var f=0;for(n=0,a=i.AY.A6.length;n<a;n++)if(n!==C&&(f++,l=f===a-1,i.Q4({"ignore-legend":r,K3:l,plotindex:n,"toggle-action":A}),i.BF.S3))for(Z=0,h=i.H.AH.length;Z<h;Z++)(d=i.H.AH[Z]).BF&&d.BF.S3&&d.BF.A4T===i.BF.A4T&&d.K!==i.K&&d.Q4({"ignore-legend":!0,K3:l,plotindex:n,"toggle-action":A})}else if(i.Q4({"ignore-legend":r,K3:1,plotindex:C,"toggle-action":A}),i.BF.S3)for(Z=0,h=i.H.AH.length;Z<h;Z++)(d=i.H.AH[Z]).BF&&d.BF.S3&&d.BF.A4T===i.BF.A4T&&d.K!==i.K&&d.Q4({"ignore-legend":!0,K3:1,plotindex:C,"toggle-action":A})}"hide"===A&&i.E.hooks&&(i.OU(),i.QK())}},ZC.A4("."+i.K+"-legend-item-area").live("mouseup touchstart",i.SG).live("DOMMouseScroll",i.zc_legend_mousescroll).live("mousewheel",i.zc_legend_mousescroll),ZC.A4("."+i.K+"-legend-marker-area").live("mouseup touchstart",i.SG).live("DOMMouseScroll",i.zc_legend_mousescroll).live("mousewheel",i.zc_legend_mousescroll),ZC.A4("#"+i.K+"-legend-frame").live("DOMMouseScroll",i.zc_legend_mousescroll).live("mousewheel",i.zc_legend_mousescroll),ZC.mobile||(ZC.A4("."+i.K+"-legend-item-area").live(ZC.Q.C0("mouseover"),i.QR).live(ZC.Q.C0("mouseout"),i.R4).live(ZC.Q.C0("mousemove"),i.PI),ZC.A4("."+i.K+"-legend-marker-area").live(ZC.Q.C0("mouseover"),i.QR).live(ZC.Q.C0("mouseout"),i.R4).live(ZC.Q.C0("mousemove"),i.PI)))}}},ZC.AA7=ZC.JS.C7({$i:function(e){this.b(e);var i=this;i.AF="null",i.AJ.clip=!0,i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0}}),ZC.A8I=ZC.JS.C7({$i:function(e){this.b(e);var i=this;i.AF="null3d",i.CK=new ZC.US,i.AJ["3d"]=!0,i.AJ["x-angle-min"]=-1800,i.AJ["x-angle-max"]=1800,i.AJ["y-angle-min"]=-1800,i.AJ["y-angle-max"]=1800,i.AJ["z-angle-min"]=-1800,i.AJ["z-angle-max"]=1800,zingchart.V3D=3},clear:function(){var e=this;e.b(),e.CK.clear()},paint:function(){var e=this;e.b(),e.PS(),e.S5(),e.flatten(),e.KF(),-1===ZC.AV(e.H.KM,"skip_interactivity")&&e.RP()}}),ZC.NC=ZC.JS.C7({$i:function(e){this.b(e);var i=this;i.AF="xy",i.AJ.clip=!0,i.AJ.layout="xy"},MJ:function(e){var i=this;switch(e){case"x":return new ZC.T0(i);case"y":return new ZC.T2(i)}},ACI:function(){var e,i=this,t=i.MJ("x","scale-x");for(t.BC="scale-x",t.K=i.K+"-scale-x",i.BM.push(t),e=2;e<50;e++)if(null!==ZC._n_(i.o["scale-x-"+e])){var n=i.MJ("x","scale-x-"+e);n.L=e,n.BC="scale-x-"+e,n.K=i.K+"-scale-x-"+e,i.BM.push(n)}var a=i.MJ("y","scale-y");for(a.BC="scale-y",a.K=i.K+"-scale-y",i.BM.push(a),e=2;e<50;e++)if(null!==ZC._n_(i.o["scale-y-"+e])){var l=i.MJ("y","scale-y-"+e);l.L=e,l.BC="scale-y-"+e,l.K=i.K+"-scale-y-"+e,i.BM.push(l)}i.b()}}),ZC.A61=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="line",i.AY=new ZC.A3R(i),i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0}}),ZC.A5Z=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="area",i.AY=new ZC.A3U(i),i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0}}),ZC.AA6=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="vline",i.AJ.layout="yx",i.AY=new ZC.A7A(i),i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0},MJ:function(e){switch(e){case"x":return new ZC.UN(this);case"y":return new ZC.UP(this)}}}),ZC.AA2=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="varea",i.AJ.layout="yx",i.AY=new ZC.A7B(i),i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0},MJ:function(e){switch(e){case"x":return new ZC.UN(this);case"y":return new ZC.UP(this)}}}),ZC.A2C=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="vbar",i.AY=new ZC.A02(i),i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0},MJ:function(e,i){switch(e){case"x":var t=this.b(e,i);return t.DL=!0,t;case"y":return this.b(e,i)}}}),ZC.A2E=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="hbar",i.AJ.layout="yx",i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0,i.AY=new ZC.A0D(i)},MJ:function(e){switch(e){case"x":var i=new ZC.UN(this);return i.DL=!0,i;case"y":return new ZC.UP(this)}}}),ZC.A4N=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="mixed",i.AY=new ZC.Z6(i),i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0},MJ:function(e,i){switch(e){case"x":var t=!1;if(this.o.series)for(var n=0;n<this.o.series.length;n++)if(this.o.series[n]&&this.o.series[n].type&&-1!==ZC.AV(["bar","vbar","bullet","vbullet","stock","vbar3d"],this.o.series[n].type)){var a=(this.o.series[n].scales||"scale-x,scale-y").split(",");-1!==ZC.AV(a,i)&&(t=!0)}var l=this.b(e,i);return l.DL=t,l;case"y":return this.b(e,i)}}}),ZC.A8H=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="hmixed",i.AJ.layout="yx",i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!1,i.AJ["enable-scroll"]=!0,i.AY=new ZC.Z6(i)},MJ:function(e,i){switch(e){case"x":var t=new ZC.UN(this),n=!1;if(this.o.series)for(var a=0;a<this.o.series.length;a++)if(this.o.series[a]&&this.o.series[a].type&&-1!==ZC.AV(["hbar","hbullet"],this.o.series[a].type)){var l=(this.o.series[a].scales||"scale-x,scale-y").split(",");-1!==ZC.AV(l,i)&&(n=!0)}return t.DL=n,t;case"y":return new ZC.UP(this)}}}),ZC.A2R=ZC.A4N.C7({$i:function(e){this.b(e);var i=this;i.AF="mixed3d",i.AY=new ZC.Z6(i),i.CK=new ZC.US,i.AJ["3d"]=!0,i.AJ["enable-preview"]=!1,i.AJ["enable-animation"]=!1,i.AJ["enable-scroll"]=!0},clear:function(){var e=this;e.b(),e.CK.clear()},paint:function(){var e=this;e.b(),e.S5(),e.flatten(),e.PS(),e.FL.length&&(e.CK.clear(),e.KF(),e.S5()),e.U3(),-1===ZC.AV(e.H.KM,"skip_interactivity")&&e.RP()}}),ZC.A7G=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="scatter",i.AY=new ZC.A68(i),i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0}}),ZC.A6S=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="hscatter",i.AJ.layout="yx",i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!1,i.AJ["enable-scroll"]=!0,i.AY=new ZC.A5G(i)},MJ:function(e){switch(e){case"x":return new ZC.UN(this);case"y":return new ZC.UP(this)}}}),ZC.A8Q=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="bubble",i.AY=new ZC.A74(i),i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-scroll"]=!0}}),ZC.A7V=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="hbubble",i.AJ.layout="yx",i.AJ["enable-guide"]=!0,i.AJ["enable-preview"]=!1,i.AJ["enable-scroll"]=!0,i.AY=new ZC.A6D(i)},MJ:function(e){switch(e){case"x":return new ZC.UN(this);case"y":return new ZC.UP(this)}}}),ZC.A38=ZC.JS.C7({$i:function(e){this.b(e),this.AF="pie",this.AY=new ZC.A48(this)},A2A:function(){return""},MJ:function(e){switch(e){case"m":return new ZC.XO(this);case"v":return new ZC.Z4(this);case"r":return new ZC.A86(this)}},ACI:function(){var e=this,i=e.MJ("m","scale"),t=e.MJ("v","scale-v"),n=e.MJ("r","scale-r");i.BC="scale",i.K=e.K+"-scale",e.o.series&&e.o.series.length&&e.o.series[0].values&&(i.NB="1x"+e.o.series[0].values.length),t.BC="scale-v",t.K=e.K+"-scale-v",n.BC="scale-r",n.K=e.K+"-scale-r",e.BM.push(i,t,n),e.b()},clear_:function(){var e=this;-1!==ZC.AV(["svg","vml"],e.H.AC)&&ZC.A4("#"+e.K+" .zc-layer").each(function(){/\-plot-\d+\-bl\-\d+\-/.test(this.id)&&ZC.A4(this).children().each(function(){/\-connector\-path/.test(this.id)&&ZC.Q.EU(this)})})}}),ZC.A6K=ZC.JS.C7({$i:function(e){this.b(e);var i=this;i.AF="nestedpie",i.AY=new ZC.A49(i)},A2A:function(){return""},MJ:function(e){switch(e){case"m":return new ZC.XO(this)}},ACI:function(){var e=this,i=e.MJ("m","scale");i.BC="scale",i.K=e.K+"-scale",e.BM.push(i),e.b()}}),ZC.A9E=ZC.JS.C7({$i:function(e){this.b(e);var i=this;if(i.AF="radar",i.AJ.layout="radar",i.AY=new ZC.A7K(i),-1!==ZC.AV(i.A.K,"polar")){for(var t=1,n=0;n<i.A.M6.series.length;n++)t=ZC.BQ(t,i.A.M6.series[n].values.length);t=Math.round(360/t).toString(),null===ZC._n_(i.A.M6.plot)?i.A.M6.plot={aspect:"area"}:ZC._cp_({aspect:"area"},i.A.M6.plot),null===ZC._n_(i.A.M6["scale-k"])?i.A.M6["scale-k"]={aspect:"circle",format:"%v\xb0",values:"0:330:"+t}:ZC._cp_({aspect:"circle",format:"%v\xb0",values:"0:330:"+t},i.A.M6["scale-k"],!0)}},A2A:function(){return""},MJ:function(e){var i=this;switch(e){case"m":return new ZC.XO(i);case"k":return new ZC.A7S(i);case"v":return new ZC.A7M(i)}},ACI:function(){var e=this,i=e.MJ("k","scale-k");i.BC="scale-k",i.K=e.K+"-scale-k",e.BM.push(i);var t=e.MJ("v","scale-v");t.BC="scale-v",t.K=e.K+"-scale-v",e.BM.push(t);var n=e.MJ("m","scale");n.BC="scale",n.K=e.K+"-scale",e.BM.push(n),e.b()}}),ZC.A7C=ZC.A2C.C7({$i:function(e){this.b(e);var i=this;i.AF="vbullet",i.AY=new ZC.A6B(i),i.AJ["enable-animation"]=!1}}),ZC.A79=ZC.A2E.C7({$i:function(e){this.b(e);var i=this;i.AF="hbullet",i.AJ.layout="yx",i.AY=new ZC.A6A(i),i.AJ["enable-animation"]=!1}}),ZC.A9N=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="piano",i.AY=new ZC.A7X(i),i.AJ["enable-animation"]=!1,i.AJ["enable-scroll"]=!0},ABD:function(e){var i=this;if("v"===e){var t=[];if(i.o.series&&i.o.series.length)for(var n=0;n<i.o.series.length;n++)t.push(i.o.series[n].text||"Metric "+(n+1));return t}},MJ:function(e){switch(e){case"x":var i=new ZC.T0(this);return i.DL=!0,i;case"y":var t=new ZC.T2(this);return t.DL=!0,t.append({step:1,"fixed-step":!0}),t}}}),ZC.A7F=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="vfunnel",i.AY=new ZC.A6F(i),i.AJ["enable-animation"]=!1,i.AJ["enable-zooming"]=!1,i.AJ["enable-scroll"]=!1},MJ:function(e,i){switch(e){case"x":var t=this.b(e,i);return t.DL=!0,t;case"y":var n=this.b(e,i);return n.DL=!0,n}},ABD:function(e){var i=this;if("v"===e){for(var t=[],n=0;n<i.o.series.length;n++)t.push("Step "+(n+1));return t}},paint:function(){for(var e=this,i=0,t=e.BM.length;i<t;i++)"v"===e.BM[i].AF&&(e.BM[i].AU=!e.BM[i].AU);e.b()}}),ZC.A82=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="hfunnel",i.AY=new ZC.A65(i),i.AJ["enable-animation"]=!1,i.AJ["enable-zooming"]=!1,i.AJ["enable-scroll"]=!1},ABD:function(e){var i=this;if("v"===e){for(var t=[],n=0;n<i.o.series.length;n++)t.push("Step "+(n+1));return t}},MJ:function(e){switch(e){case"x":var i=new ZC.UN(this);return i.DL=!0,i;case"y":var t=new ZC.UP(this);return t.DL=!0,t}}}),ZC.A9I=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="stock",i.AY=new ZC.A7H(i),i.AJ["enable-guide"]=!0,i.AJ["enable-animation"]=!1,i.AJ["enable-scroll"]=!0,i.AJ["enable-preview"]=!0},MJ:function(e,i){switch(e){case"x":var t=this.b(e,i);return t.DL=!0,t;case"y":return this.b(e,i)}}}),ZC.A9A=ZC.JS.C7({$i:function(e){this.b(e);var i=this;i.AF="gauge",i.AJ.layout="gauge",i.AY=new ZC.A7P(i)},A2A:function(){return""},MJ:function(e){var i=this;switch(e){case"m":return new ZC.XO(i);case"r":return new ZC.A7Z(i);case"v":return new ZC.Z4(i)}},ACI:function(){var e,i=this,t=i.MJ("m","scale");for(t.BC="scale",t.K=i.K+"-scale",i.BM.push(t),e=2;e<10;e++)if(null!==ZC._n_(i.o["scale-"+e])){var n=i.MJ("m","scale-"+e);n.L=e,n.BC="scale-"+e,n.K=i.K+"-scale-"+e,i.BM.push(n)}var a=i.MJ("r","scale-r");for(a.BC="scale-r",a.K=i.K+"-scale-r",i.BM.push(a),e=2;e<10;e++)if(null!==ZC._n_(i.o["scale-r-"+e])){var l=i.MJ("r","scale-r-"+e);l.L=e,l.BC="scale-r-"+e,l.K=i.K+"-scale-r-"+e,i.BM.push(l)}i.b()},hideLayer_:function(){var e=this;ZC.A4("#"+e.K+"-plots-bl-2").children().each(function(){ZC.Q.IQ(this,e.H.AC,e.iX,e.iY,e.I,e.F,e.K)})}}),ZC.A9F=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="range",i.AY=new ZC.A7L(i),i.AJ["enable-guide"]=!0,i.AJ["enable-animation"]=!1,i.AJ["enable-scroll"]=!0,i.AJ["enable-preview"]=!0}}),ZC.ZCVRangeGraph=ZC.NC.C7({$i:function(e){this.b(e);var i=this;i.AF="range",i.AJ.layout="yx",i.AY=new ZC.ZCVRangePlotSet(i),i.AJ["enable-guide"]=!0,i.AJ["enable-animation"]=!1,i.AJ["enable-scroll"]=!0,i.AJ["enable-preview"]=!1},MJ:function(e){switch(e){case"x":return new ZC.UN(this);case"y":return new ZC.UP(this)}}}),ZC.A57=ZC.A38.C7({$i:function(e){this.b(e);var i=this;i.AF="pie3d",i.AY=new ZC.A7T(i),i.CK=new ZC.US,i.AJ["3d"]=!0,i.AJ["enable-animation"]=!1,i.AJ["x-angle-min"]=15,i.AJ["x-angle-max"]=75,i.AJ["y-angle-min"]=0,i.AJ["y-angle-max"]=0,i.AJ["z-angle-min"]=0,i.AJ["z-angle-max"]=0},clear:function(){var e=this;e.b(),e.CK.clear()},paint:function(){var e=this;e.b(),e.S5(),e.flatten(),e.PS(),e.FL.length&&(e.CK.clear(),e.KF(),e.S5()),e.U3(),-1===ZC.AV(e.H.KM,"skip_interactivity")&&e.RP()}}),ZC.A8J=ZC.A2E.C7({$i:function(e){this.b(e);var i=this;i.AF="hbar3d",i.AY=new ZC.A73(i),i.CK=new ZC.US,i.AJ["3d"]=!0,i.AJ["enable-preview"]=!1,i.AJ["enable-animation"]=!1,i.AJ["x-angle-min"]=-20,i.AJ["x-angle-max"]=20,i.AJ["y-angle-min"]=-20,i.AJ["y-angle-max"]=0},clear:function(){var e=this;e.b(),e.CK.clear()},paint:function(){var e=this;e.b(),e.S5(),e.flatten(),e.PS(),e.FL.length&&(e.CK.clear(),e.KF(),e.S5()),e.U3(),-1===ZC.AV(e.H.KM,"skip_interactivity")&&e.RP()}}),ZC.A8L=ZC.A2C.C7({$i:function(e){this.b(e);var i=this;i.AF="vbar3d",i.AY=new ZC.A78(i),i.CK=new ZC.US,i.AJ["3d"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-animation"]=!1,i.AJ["enable-scroll"]=!0},clear:function(e,i){var t=this;t.b(e,i),t.CK.clear()},paint:function(){var e=this;e.b(),e.S5(),e.flatten(),e.PS(),e.FL.length&&(e.CK.clear(),e.KF(),e.S5()),e.U3(),-1===ZC.AV(e.H.KM,"skip_interactivity")&&e.RP()}}),ZC.A8S=ZC.A61.C7({$i:function(e){this.b(e);var i=this;i.AF="line3d",i.AY=new ZC.A6P(i),i.CK=new ZC.US,i.AJ["3d"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-animation"]=!1,i.AJ["enable-scroll"]=!0},clear:function(e,i){var t=this;t.b(e,i),t.CK.clear()},paint:function(){var e=this;e.b(),e.S5(),e.flatten(),e.PS(),e.FL.length&&(e.CK.clear(),e.KF(),e.S5()),e.U3(),-1===ZC.AV(e.H.KM,"skip_interactivity")&&e.RP()}}),ZC.A8T=ZC.A5Z.C7({$i:function(e){this.b(e);var i=this;i.AF="area3d",i.AY=new ZC.A6Z(i),i.CK=new ZC.US,i.AJ["3d"]=!0,i.AJ["enable-preview"]=!0,i.AJ["enable-animation"]=!1,i.AJ["enable-scroll"]=!0},clear:function(e,i){var t=this;t.b(e,i),t.CK.clear()},paint:function(){var e=this;e.b(),e.S5(),e.flatten(),e.PS(),e.FL.length&&(e.CK.clear(),e.KF(),e.S5()),e.U3(),-1===ZC.AV(e.H.KM,"skip_interactivity")&&e.RP()}}),ZC.AAE=ZC.JS.C7({$i:function(e){this.b(e);var i=this;i.AF="venn",i.AY=new ZC.A8P(i)},A2A:function(){return""},MJ:function(e){var i=this;switch(e){case"m":return new ZC.XO(i)}},parse:function(){var e=this;e.b(),e.BF&&(e.BF.IH="remove",e.BF.QX="remove",e.BF.PL="remove")},ACI:function(){var e=this,i=e.MJ("m","scale");i.BC="scale",i.K=e.K+"-scale",e.BM.push(i),e.b()}}),ZC.LF=ZC.HS.C7({$i:function(e){this.b(e);var i=this;i.C=e,i.H=i.C.A,i.A6=[],i.HN=null,i.K6=[],i.JZ=[],i.PR=!0,i.F7=null,i.A47=!0,i.YH=[]},ACQ:function(){return new ZC.IC(this)},parse:function(){var e,i,t,n=this;for(n.K=n.A.K+"-plotset",n.F7=null,i=n.o.length-1;i>=0;i--)"undefined"==typeof n.o[i]&&n.o.splice(i,1);if(null===ZC._n_(n.E["plot-sort"])&&(n.E["plot-sort"]=!1),n.o.length>1){for(i=0,t=n.o.length;i<t;i++)"undefined"==typeof n.o[i].palette&&(n.o[i].palette=i);var a=[],l=[];for(i=0,t=n.o.length;i<t;i++)l[i]=i,a[i]={"z-index":n.o[i]["z-index"]||0};for(var o=!1;!o;)for(o=!0,i=0,t=a.length;i<t-1;i++)if(a[i]["z-index"]>a[i+1]["z-index"]){n.E["plot-sort"]=!0;var r=a[i];a[i]=a[i+1],a[i+1]=r;var s=l[i];l[i]=l[i+1],l[i+1]=s,o=!1}n.M0=l}else n.M0=[0];for(n.A6=[],i=0,t=n.o.length;i<t;i++){var A="";n.A.o.plot&&null!==ZC._n_(e=n.A.o.plot.type)&&(A=e),null!==ZC._n_(e=n.o[i].type)&&(A=e);var C=n.ACQ(A,i);C.O8=C.AF+"plot",C.L=i,C.JN=i,n.C.A.B7.load(C.o,["("+C.AF+").plot"]),C.sTypeX&&n.C.A.B7.load(C.o,["("+C.sTypeX+").plot"]),n.C.A.B7.load(C.o,["("+C.AF+").plot.animation"]),null!==ZC._n_(e=n.A.o.plot)&&C.append(e),C.append(n.o[i]),C.CB=n.A.CB,C.parse(),n.A6.push(C)}var c={},u=[],p=[],Z={},h={},d=0,f=0;for(i=0,t=n.A6.length;i<t;i++)if(null!==ZC._n_(n.A.A.E["g-"+n.A.L+"-p-"+i+".visible"])&&(n.C.E["plot"+i+".visible"]=n.A.A.E["g-"+n.A.L+"-p-"+i+".visible"]),!n.A6[i].HK&&(n.C.E["plot"+i+".visible"]||"hide"===n.C.getToggleAction())){n.A6[i].CB?(-1===(f=ZC.AV(p,n.A6[i].DY))&&(p.push(n.A6[i].DY),f=p.length-1),null===ZC._n_(u[f])?u[f]=[i]:u[f].push(i)):(p.push(-1),f=p.length-1,null===ZC._n_(u[f])?u[f]=[i]:u[f].push(i));var _=n.A6[i].AF;if(n.A6[i].o.type&&_!==n.A6[i].o.type){var g=_.indexOf("3d"),v=n.A6[i].o.type.indexOf("3d");(-1===g&&-1!==v||-1===g&&-1===v)&&(_=n.A6[i].o.type)}-1!==ZC.AV(["bar","bar3d","bullet"],_)&&(_="v"+_),-1===ZC.AV(["vbar","hbar","vbullet","hbullet","stock","vbar3d","hbar3d"],_)||n.A6[i].HK||(null===ZC._n_(Z[_])&&(Z[_]=[]),null===ZC._n_(h[_])&&(h[_]=[]),n.A6[i].CB?(null===ZC._n_(c[n.A6[i].DY])?c[n.A6[i].DY]=1:c[n.A6[i].DY]++,-1===(d=ZC.AV(h[_],n.A6[i].DY))&&(h[_].push(n.A6[i].DY),d=h[_].length-1),null===ZC._n_(Z[_][d])?Z[_][d]=[i]:Z[_][d].push(i)):(h[_].push(-1),d=h[_].length-1,null===ZC._n_(Z[_][d])?Z[_][d]=[i]:Z[_][d].push(i)))}if(n.K6=u,n.JZ=Z,n.WB)for(var b in n.WB)n.WB[b].sort();for(n.A11=[],i=0;i<n.K6.length;i++)n.A11.push(n.K6[i][n.K6[i].length-1])},paint:function(){function e(t){var n=i.M0[t];(i.A6[n].HT||i.A6[n].E7.length&&i.A.BA||"none"!==i.A6[n].IY)&&(i.H.O3=!1),i.A47=!0;var a=i.C.getToggleAction();i.C.AJ["3d"]?i.C.E["plot"+n+".visible"]&&(i.A6[n].paint(),i.H.ZI()):(i.C.E["plot"+n+".visible"]||"hide"===a)&&("undefined"!=typeof i.C.E["plot-"+n+"-first-run"]&&(i.A6[n].TM=0),i.A6[n].paint(),i.A6[n].TM=0,i.H.ZI(),i.C.E["plot"+n+".visible"]||"hide"!==a||(i.C.E["plot"+n+".visible"]=!0,i.A.Q4({plotindex:n,"ignore-legend":!0}))),i.C.E["plot-"+n+"-first-run"]=!1,t<i.A6.length-1?i.C.LG?ZC.ASYNC_TICK[i.C.K]=window.setTimeout(function(){e(t+1)},10):i.A6.length<=100&&e(t+1):(!i.C.LG||i.C.LG&&i.A47)&&i._end_()}var i=this;if(i.HN=[],i.A6.length>0)if(i.A6.length>100&&!i.C.LG)for(var t=0;t<i.A6.length;t++)e(t);else e(0);else i._end_()},_end_:function(){function e(e){var i=0,n=e.indexOf("-plotset-plot-"),a=e.indexOf("-node-",n);return-1!==n&&-1!==a&&(i=e.substr(n+14,a-n-14)),"undefined"!=typeof t.A6[i].E["z-mid"]?t.A6[i].E["z-mid"]:i}var i,t=this;t.RV=null,t.VF=null;for(var n=0;n<t.C.BM.length;n++)t.C.BM[n].ET=null,t.C.BM[n].W8=null;var a=["bubble","hbubble","vbullet","hbullet","radar","vbar3d","hbar3d","mixed","mixed3d","pie3d","hmixed","hmixed3d"];(i=ZC.AK(t.C.A.K+"-map"))&&!t.H.A10&&(-1===ZC.AV(a,t.C.AF)&&1!==zingchart.SORTTRACKERS||t.HN.sort(function(i,n){return"pie3d"===t.C.AF?ZC.AP.MY(i)>ZC.AP.MY(n)?1:ZC.AP.MY(i)<ZC.AP.MY(n)?-1:0:e(i)>e(n)&&t.A.AJ["3d"]?1:e(i)<e(n)&&t.A.AJ["3d"]?-1:ZC.AP.MY(i)>ZC.AP.MY(n)?1:ZC.AP.MY(i)<ZC.AP.MY(n)?-1:0}),zingchart.DEV.DELAYEDTRACKERS?window.setTimeout(function(){i.innerHTML+=t.HN.join("")},500):i.innerHTML+=t.HN.join("")),t.F1=null,t.D6=null,t.C.A93=[],t.A._end_()}}),ZC.A3R=ZC.LF.C7({ACQ:function(){return new ZC.QO(this)}}),ZC.A3U=ZC.LF.C7({ACQ:function(){return new ZC.QG(this)}}),ZC.A7A=ZC.LF.C7({ACQ:function(){var e=new ZC.QO(this);return e.OI=!0,e}}),ZC.A7B=ZC.LF.C7({ACQ:function(){var e=new ZC.QG(this);return e.OI=!0,e}}),ZC.A02=ZC.LF.C7({ACQ:function(){return new ZC.QI(this)}}),ZC.A0D=ZC.LF.C7({ACQ:function(){return new ZC.QD(this)}}),ZC.Z6=ZC.LF.C7({ACQ:function(e){var i=this;switch(e){default:return new ZC.QO(i);case"vline":var t=new ZC.QO(i);return t.OI=!0,t;case"poly":var n=new ZC.P5(i);return n.bPoly=!0,n.sTypeX="poly",n;case"area":return new ZC.QG(i);case"varea":var a=new ZC.QG(i);return a.OI=!0,a;case"bar":case"vbar":return new ZC.QI(i);case"hbar":return new ZC.QD(i);case"scatter":return new ZC.P5(i);case"hscatter":return new ZC.P5(i,"hscatter");case"bubble":return new ZC.RW(i);case"hbubble":return new ZC.RW(i,"hbubble");case"stock":return new ZC.V9(i);case"range":return new ZC.TU(i);case"line3d":return new ZC.UE(i);case"area3d":return new ZC.UB(i);case"bar3d":case"vbar3d":return new ZC.U4(i);case"bullet":case"vbullet":return new ZC.T8(i);case"hbullet":return new ZC.TA(i)}}}),ZC.A68=ZC.LF.C7({ACQ:function(){return new ZC.P5(this)}}),ZC.ACE=ZC.LF.C7({ACQ:function(){var e=new ZC.P5(this);return e.bPoly=!0,e.sTypeX="poly",e}}),ZC.A5G=ZC.LF.C7({ACQ:function(){return new ZC.P5(this,"hscatter")}}),ZC.A74=ZC.LF.C7({ACQ:function(){return new ZC.RW(this)}}),ZC.A6D=ZC.LF.C7({ACQ:function(){return new ZC.RW(this,"hbubble")}}),ZC.A48=ZC.LF.C7({$i:function(e){this.b(e);var i=this;i.KH=[],i.P0=[],i.TQ=[]},ACQ:function(){return new ZC.VY(this)},parseLayout:function(e){var i,t,n,a,l=this;e&&(l.TQ=[],l.P0=[]);var o,r=l.A.BN("scale-r"),s=l.A.BN("scale"),A=.9,C=1;l.A6.length>=10&&(C=1),l.A6.length>=20&&(C=1.25),l.A6.length>=30&&(C=1.5);var c=r.DG;for(i=0,t=l.A6.length;i<t;i++)null!==ZC._n_(l.A6[i].o["ref-angle"])&&(c=l.A6[i].DG);for(i=0,t=l.A6.length;i<t;i++)if(l.C.E["plot"+i+".visible"]||"hide"===l.C.getToggleAction())for(var u=0,p=l.A6[i].R.length;u<p;u++)if(l.A6[i].R[u]){l.Y4["n"+u]=l.Y4["n"+u]||[];var Z=l.A6[i].R[u];null===ZC._n_(l.P0[u])&&(l.P0[u]=c);var h,d;h=null!==ZC._n_(a=l.A6[i].o["angle-start"])?ZC._f_(a):l.P0[u],d=l.KH[u],null!==ZC._n_(l.A6[i].o.totals)&&null!==ZC._n_(l.A6[i].o.totals[u])&&(d=l.KH[u]=ZC._f_(l.A6[i].o.totals[u])),n=0===d?h+r.EG*(1/t):0===Z.AD&&l.A6[i].TD?h+r.EG*(.005*l.KH[u])/d:h+r.EG*Z.AD/d,l.P0[u]=n,Z.B3=h,Z.BI=n;var f=Z.GU(!0);if("out"===f.o.placement&&f.AM){var _=ZC._i_((h+n)/2);l.Y4["n"+u][i]=_-c,o=ZC.CY(s.I/2-C*f.I-f.DR-35,s.F/2-C*f.F-f.DR-15),A=ZC.CY(A,2*o/ZC.CY(s.I,s.F))}}if("pie3d"===l.A.AF&&(A*=.75),A=ZC.BQ(.1,ZC.CY(.9,A)),"auto"===s.o["size-factor"]&&(s.JM=A),e)for(var g in l.Y4)l.Y4[g]=ZC.AO.ACD(l.Y4[g],c)},parse:function(){var e=this;e.A.o.plot&&"auto"===e.A.o.plot.layout&&(null===ZC._n_(e.A.o.plot["ref-angle"])&&(e.A.o.plot["ref-angle"]=-90),e.o.sort(function(e,i){return i.values[0]-e.values[0]})),e.TQ=[],e.KH=[],e.P0=[],e.Y4={},e.b();for(var i=0,t=e.A6.length;i<t;i++)for(var n=0,a=e.A6[i].R.length;n<a;n++)e.A6[i].R[n]&&e.A6[i].R[n]&&(e.C.E["plot"+i+".visible"]||"hide"===e.C.getToggleAction())&&0===e.A6[i].R[n].AD&&e.A6[i].TD&&(e.KH[n]+=.005*e.KH[n]);e.parseLayout()}}),ZC.A49=ZC.LF.C7({$i:function(e){this.b(e);var i=this;i.KH=[],i.P0=[]},ACQ:function(){return new ZC.TN(this)},parse:function(){var e=this;e.KH=[],e.P0=[],e.b();for(var i,t=e.A.BN("scale"),n=t.iX+t.I/2,a=1,l=0,o=e.A6.length;l<o;l++)if(e.C.E["plot"+l+".visible"]||"hide"===e.C.getToggleAction())for(var r=0,s=e.A6[l].R.length;r<s;r++)if(e.A6[l].R[r]){var A=e.A6[l].R[r];null===ZC._n_(e.P0[r])&&(e.P0[r]=e.A6[l].DG);var C=e.P0[r],c=C+360*A.AD/e.KH[r];e.P0[r]=c,A.B3=C,A.BI=c;var u=A.GU(!0);if(u&&"in"!==u.o.placement){var p=ZC._i_((C+c)/2);i=((p>=0&&p<=90||p>=270&&p<=360?t.iX+t.I-(u.I+25):t.iX+(u.I+25))-n)/ZC.EF(p),a=ZC.CY(a,2*i/t.I),i=t.F/2-(u.F/2+10),a=ZC.CY(a,2*i/t.F)}}a=ZC.BQ(.15,ZC.CY(.85,a)),"auto"===t.o["size-factor"]&&(t.o["size-factor"]=t.JM=a)}}),ZC.A7K=ZC.LF.C7({A1Y:{},$i:function(e){this.b(e)},ACQ:function(){return new ZC.X7(this)},paint:function(){var e=this;e.A1Y={},e.b()}}),ZC.A6B=ZC.A02.C7({ACQ:function(){return new ZC.T8(this)}}),ZC.A6A=ZC.A0D.C7({ACQ:function(){return new ZC.TA(this)}}),ZC.A7X=ZC.LF.C7({ACQ:function(){return new ZC.X8(this)}}),ZC.A22=ZC.LF.C7({parse:function(){var e,i,t,n,a,l=this;for(l.B4=ZC.MAX,l.BL=-ZC.MAX,l.A84=[],l.S7=[],l.b(),e=0,i=l.A6.length;e<i;e++)for(t=0,n=l.A6[e].R.length;t<n;t++)l.A6[e].R[t]&&(a=l.A6[e].R[t],null===ZC._n_(l.S7[t])&&(l.S7[t]=ZC.MAX),null===ZC._n_(l.A84[t])&&(l.A84[t]=-ZC.MAX),l.S7[t]=ZC.CY(l.S7[t],a.AD),l.A84[t]=ZC.BQ(l.A84[t],a.AD));for(e=0,i=l.A6.length;e<i;e++)for(t=0,n=l.A6[e].R.length;t<n;t++)l.A6[e].R[t]&&(a=l.A6[e].R[t],l.B4=ZC.CY(l.B4,a.AD),l.BL=ZC.BQ(l.BL,a.AD))}}),ZC.A6F=ZC.A22.C7({ACQ:function(){return new ZC.V3(this)}}),ZC.A65=ZC.A22.C7({ACQ:function(){return new ZC.V4(this)}}),ZC.A7H=ZC.LF.C7({ACQ:function(){return new ZC.V9(this)}}),ZC.A7P=ZC.LF.C7({ACQ:function(){return new ZC.X9(this)}}),ZC.A7L=ZC.LF.C7({ACQ:function(){return new ZC.TU(this)}}),ZC.ZCVRangePlotSet=ZC.LF.C7({ACQ:function(){var e=new ZC.TU(this);return e.OI=!0,e}}),ZC.A7T=ZC.A48.C7({ACQ:function(){return new ZC.X6(this)}}),ZC.A78=ZC.A02.C7({ACQ:function(){return new ZC.U4(this)}}),ZC.A73=ZC.A0D.C7({ACQ:function(){return new ZC.VK(this)}}),ZC.A6P=ZC.A3R.C7({ACQ:function(){return new ZC.UE(this)}}),ZC.A6Z=ZC.A3U.C7({ACQ:function(){return new ZC.UB(this)}}),ZC.A8P=ZC.LF.C7({$i:function(e){this.b(e),this.DZ=[],this.NR=[],this.X1=[]},ACQ:function(){return new ZC.YP(this)},paint:function(){function e(e,i){var t=ZC._a_(e[0]-i[0]),n=ZC._a_(e[1]-i[1]);return Math.sqrt(t*t+n*n)}var i,t,n,a,l,o,r,s,A,C,c=this,u=c.A.BN("scale"),p=ZC.CY(u.G8,u.GH),Z=-ZC.MAX,h=ZC.CY(3,c.A6.length);for(i=0,t=h;i<t;i++)for(C=c.A6[i].R,l=ZC.AP.OQ(c.A6[i].o["value-box"],c.A6[i].o),n=0,a=C.length;n<a;n++)C[n].setup(),Z=ZC.BQ(Z,C[n].AD),C[n].WF=ZC.AP.GF(c.A6[i].AC1[n],l);var d=p/(4*Math.sqrt(Z/Math.PI)),f=[],_=[],g=[],v=[],b=null;c.NR=[];var m,B,E;for(i=0,t=h;i<t;i++)for(f[i]||(f[i]=[]),_[i]||(_[i]=[],g[i]=[]),c.DZ[i]||(c.DZ[i]=[]),C=c.A6[i].R,v=c.A6[i+1]&&i+1<3?c.A6[i+1].R:c.A6[0].R,n=0,a=C.length;n<a;n++){c.NR[n]||(c.NR[n]=[]),c.X1[n]||(c.X1[n]={}),C[n].WC=v[n].AD,0===i?(m=d*Math.sqrt(C[n].AD/Math.PI),B=d*Math.sqrt(C[n].WC/Math.PI),f[i][n]=d*ZC.AO.A5U(C[n].AD,C[n].WC,C[n].WF),_[i][n]=C[n].iX-ZC.BQ(m,B)/2,g[i][n]=C[n].iY+C[n].F/4):1===i?(f[i][n]=d*ZC.AO.A5U(C[n].AD,C[n].WC,C[n].WF),_[i][n]=_[0][n]+f[0][n],g[i][n]=g[0][n],2===h&&(E=(_[0][n]-m-(u.GH-(_[1][n]+B)))/2,c.A6[i-1].R[n].iX-=E,_[1][n]-=E,c.DZ[0][n].x-=E,c.NR[n][0][0]-=E,c.A6[i-1].R[n].iY=u.iY+u.G8/2,g[1][n]=u.iY+u.G8/2,c.DZ[0][n].y=u.iY+u.G8/2)):2===i&&(f[i][n]=d*ZC.AO.A5U(C[n].AD,C[n].WC,C[n].WF),r=(f[0][n]*f[0][n]-f[1][n]*f[1][n]+f[2][n]*f[2][n])/(2*f[0][n]),_[i][n]=_[0][n]+r,s=Math.sqrt(f[2][n]*f[2][n]-r*r),g[i][n]=g[0][n]-s,3===h&&(E=(_[0][n]-m-(u.GH-(_[1][n]+B)))/2,c.A6[0].R[n].iX-=E,c.A6[1].R[n].iX-=E,c.DZ[0][n].x-=E,c.DZ[1][n].x-=E,c.NR[n][0][0]-=E,_[2][n]-=E)),C[n].iX=_[i][n]+u.iX,C[n].iY=g[i][n],C[n].I=d*Math.sqrt(C[n].AD/Math.PI),C[n].F=d*Math.sqrt(C[n].AD/Math.PI),C[n].AI=d*Math.sqrt(C[n].AD/Math.PI),null===ZC._n_(b)&&(b=C[n].AD/(Math.PI*C[n].AI*C[n].AI));var K=d*Math.sqrt(C[n].AD/Math.PI),F=d*Math.sqrt(C[n].WC/Math.PI),D=K+F-f[i][n],X=(2*D*F-D*D)/(2*(K+F-D)),I=D-X;if(c.DZ[i][n]={x:_[i][n],y:g[i][n],sz:C[n].AI,r1:K,r2:F,dx1:I,dx2:X},0===i?(s=Math.sqrt(K*K-(K-X)*(K-X)),c.NR[n].push([_[0][n]+K-X,g[0][n]-s])):2===i&&(K=c.DZ[1][n].r1,F=c.DZ[1][n].r2,I=c.DZ[1][n].dx1,X=c.DZ[1][n].dx2,o=ZC.TO(Math.asin((g[1][n]-g[2][n])/f[1][n]))-ZC.TO(Math.acos((K-X)/K)),c.NR[n].push([_[1][n]-K*ZC.EF(o)-E,g[1][n]-K*ZC.EO(o)]),K=c.DZ[2][n].r1,F=c.DZ[2][n].r2,I=c.DZ[2][n].dx1,X=c.DZ[2][n].dx2,o=ZC.TO(Math.asin((g[0][n]-g[2][n])/f[2][n]))-ZC.TO(Math.acos((F-I)/F)),c.NR[n].push([_[0][n]+F*ZC.EF(o)-E,g[0][n]-F*ZC.EO(o)])),i===h-1)if(3===h){if(null!==ZC._n_(c.A6[0].A91[n]))c.X1[n].area=c.A6[0].A91[n];else{var x=[-1],y=[-1];x[1]=e(c.NR[n][0],c.NR[n][2]),x[2]=e(c.NR[n][0],c.NR[n][1]),x[3]=e(c.NR[n][2],c.NR[n][1]),y[1]=c.DZ[0][n].sz,y[2]=c.DZ[1][n].sz,y[3]=c.DZ[2][n].sz;var w=.25*Math.sqrt((x[1]+x[2]+x[3])*(x[1]+x[2]-x[3])*(x[1]+x[3]-x[2])*(x[2]+x[3]-x[1]));for(A=1;A<=3;A++)w+=y[A]*y[A]*Math.asin(x[A]/(2*y[A]))-x[A]/4*Math.sqrt(4*y[A]*y[A]-x[A]*x[A]);c.X1[n].area=b*w}c.DZ[0][n].intxy=ZC.AO.A55(c.DZ[0][n].x,c.DZ[0][n].y,c.DZ[1][n].x,c.DZ[1][n].y,c.DZ[0][n].r1-(c.DZ[0][n].dx1+c.DZ[0][n].dx2)/2),c.DZ[1][n].intxy=ZC.AO.A55(c.DZ[1][n].x,c.DZ[1][n].y,c.DZ[2][n].x,c.DZ[2][n].y,-(c.DZ[1][n].r1-(c.DZ[1][n].dx1+c.DZ[1][n].dx2)/2)),c.DZ[2][n].intxy=ZC.AO.A55(c.DZ[2][n].x,c.DZ[2][n].y,c.DZ[0][n].x,c.DZ[0][n].y,-(c.DZ[2][n].r1-(c.DZ[2][n].dx1+c.DZ[2][n].dx2)/2)),c.X1[n].xy=[(c.NR[n][0][0]+c.NR[n][1][0]+c.NR[n][2][0])/3,(c.NR[n][0][1]+c.NR[n][1][1]+c.NR[n][2][1])/3]}else c.DZ[0][n].intxy=ZC.AO.A55(c.DZ[0][n].x,c.DZ[0][n].y,c.DZ[1][n].x,c.DZ[1][n].y,c.DZ[0][n].r1-(c.DZ[0][n].dx1+c.DZ[0][n].dx2)/2),c.DZ[1][n].intxy=[-9999,-9999]}if(3===h)for(i=0,t=h;i<t;i++)for(l=ZC.AP.OQ(c.A6[i].o["value-box"],c.A6[i].o),null!==ZC._n_(l.decimals)&&-1!==l.decimals||(l.decimals=0),n=0,a=c.A6[i].R.length;n<a;n++)c.X1[n].area=ZC.AP.GF(c.X1[n].area,l);c.b()}}),ZC.IC=ZC.HS.C7({$i:function(e){this.b(e);var i=this;i.C=e.A,i.H=i.C.A,i.A5Y={},i.HK=!1,i.SO=3,i.A19=1,i.X=[],i.KB={},i.R=[],i.AF="",i.sTypeX=null,i.IB=null,i.RI=!1,i.IY="none",i.O2="plot",i.UL=!0,i.SR=null,i.SX=null,i.TJ={},i.A2=null,i.G4=null,i.PH=null,i.PE=null,i.BP=null,i.L=-1,i.BM=[],i.CB=!1,i.KQ="normal",i.DY=0,i.U=null,i.NZ=null,i.A8=null,i.JR=null,i.AR=null,i.JV=null,i.A64=null,i.YB=null,i.DU=-1,i.HW=-1,i.R5=null,i.RR=null,i.ZP=!1,i.SE=2,i.A2V=!1,i.TI="",i.ZN="standard",i.CW=null,i.A0Q=null,i.MO=null,i.RS=null,i.XU=!0,i.XG=null,i.Y0=1,i.QC=!1,i.QH=!0,i.JN=0,i.XV=null,i.ST=null,i.PR=!0,i.JY=null,i.AAD=1,i.A29=1,i.S0=[],i.J7=null,i.ED=!1,i.SQ=[],i.A6L=-1,i.GA=!1,i.L6=0,i.JD=.6,i.L5=0,i.AC0=0,i.ABY=null,i.TM=0,i.FT=null,i.IP=!1,i.YJ=!0,i.A6T=!1,i.XW=1,i.YG=0,i.I5=!1,i.L8=!1,i.A3G="node",i.LJ=!1,i.R3=-1,i.RH=0,i.Q8=!1,i.GO=[null,null,null,null],i.OZ="line"},applyRGBA:function(){var e,i=this;null!==ZC._n_(e=i.E["l-alpha"])&&null===ZC._n_(i.J5.alpha)&&(i.C5=e),null!==ZC._n_(e=i.E["bg-alpha"])&&null===ZC._n_(i.J5["alpha-area"])&&(i.o["alpha-area"]=e)},FP:function(e,i){var t=this;return(void 0===i||!t.GO[i]&&t.GO[1])&&(i=1),e=parseInt(e,10),!t.IP||"xy"!==t.C.AJ.layout&&"yx"!==t.C.AJ.layout?t.R[e]:t.R[e]&&t.GO[i]?(t.GO[i].K=t.K+"-node-"+e,t.GO[i].o={value:t.X[e]},"string"==typeof t.X[e]&&(t.GO[i].A1Z=!0),t.GO[i].L=e,"line"!==t.AF&&"area"!==t.AF&&"vline"!==t.AF&&"varea"!==t.AF||t.U?t.GO[i].parse():null===t.R[e].BU&&"undefined"==typeof t.C.E["plot-"+t.L+"-first-run"]||t.GO[i].parse(),"line"===t.AF||"area"===t.AF||"vline"===t.AF||"varea"===t.AF?"xy"===t.C.AJ.layout?(null!==t.R[e].BU?t.GO[i].iX=t.R[e].iX=t.B1.B2(t.R[e].BU):t.GO[i].iX=t.R[e].iX=t.B1.I4(e),t.CB&&"100%"===t.KQ?t.GO[i].iY=t.R[e].iY=t.CM.B2(100*t.R[e].CR/t.A.F7[e]["%total-"+t.DY]):t.GO[i].iY=t.R[e].iY=t.CM.B2(t.R[e].CR)):(null!==t.R[e].BU?t.GO[i].iY=t.R[e].iY=t.B1.B2(t.R[e].BU):t.GO[i].iY=t.R[e].iY=t.B1.I4(e),t.CB&&"100%"===t.KQ?t.GO[i].iX=t.R[e].iX=t.CM.B2(100*t.R[e].CR/t.A.F7[e]["%total-"+t.DY]):t.GO[i].iX=t.R[e].iX=t.CM.B2(t.R[e].CR)):t.GO[i].T1(),t.GO[i].JB=t.R[e].JB,t.GO[i]):null},UY:function(e,i){var t=this;t.JY[e]||(t.JY[e]=[]),(!t.IP||t.IP&&-1===ZC.AV(t.JY[e],i))&&t.JY[e].push(i)},TH:function(){return new ZC.M5(this)},ABT:function(){return{}},NO:function(){return this.Z5("palette","A6L","i"),this.C.A.B7.A9M(-1!==this.A6L?this.A6L:this.L,this.C.AF)},NM:function(){var e=this;if(e.BP[4]){var i,t={};for(var n in e.BP[4])-1===(i=n.indexOf("."))?null===ZC._n_(e.o[n])&&(t[n]=!0,e.o[n]=e.BP[4][n]):n.substring(0,i)===e.AF&&(null===ZC._n_(e.o[n.substring(i+1)])||t[n.substring(i+1)])&&(e.o[n.substring(i+1)]=e.BP[4][n])}},I8:function(e,i){var t,n,a=this,l=!1,o="";if("none"!==a.IY&&(a.C.IT[a.L]||a.C.KD)){var r=!(e.E["selected-state"]||e.E["background-state"]);a.C.CH["p"+a.L]&&a.C.CH["p"+a.L]["n"+e.L]?zingchart.DEV.CACHESELECTION&&r&&a.TJ["selected-state"]?(n=a.TJ["selected-state"],l=!0):(o="selected-state",(n=new ZC.DS(a)).copy(i),e.E["selected-state"]?n.OG=e.E["selected-state"]:n.OG=a.SR?a.SR.o:{}):"none"!==a.O2&&("plot"===a.O2&&a.C.IT[a.L]||"graph"===a.O2&&a.C.KD)&&(zingchart.DEV.CACHESELECTION&&r&&a.TJ["background-state"]?(n=a.TJ["background-state"],l=!0):(o="background-state",(n=new ZC.DS(a)).copy(i),e.E["background-state"]?n.OG=e.E["background-state"]:n.OG=a.SX?a.SX.o:{})),l||(n?(n.PR=!0,n.parse()):(n=new ZC.DS(a)).copy(i),zingchart.DEV.CACHESELECTION&&r&&""!==o&&(a.TJ[o]=n))}else(n=new ZC.DS(a)).copy(i);return null!==ZC._n_(t=a.SQ[e.L])&&(0===e.A.E7.length&&(e.A.E7=[{}]),"string"==typeof a.SQ[e.L]?n.append({"background-color":ZC.AP.JH(t,20)+" "+t,"line-color":t,"border-color":ZC.AP.JH(t,20)}):n.append(a.SQ[e.L]),n.parse()),n.Z=i.Z,n.C6=i.C6,n},BT:function(e){var i=this,t=[];if(null!==ZC._n_(e))for(var n=0,a=i.BM.length;n<a;n++){var l=i.C.BN(i.BM[n]);l&&l.AF===e&&t.push(i.BM[n])}else t=i.BM;return t},ML:function(){var e=this;return{negation:e.ZN,"thousands-separator":e.R5,"decimals-separator":e.RR,decimals:e.DU,"max-decimals":e.HW,"short":e.A2V,"short-unit":e.TI,exponent:e.ZP,"exponent-decimals":e.SE}},parse:function(){function e(e){var i=["("+l.AF+").plot."+e];return l.sTypeX&&i.push("("+l.sTypeX+").plot."+e),i}var i,t,n,a,l=this;if(l.UJ={},l.b(),l.JY={},null!==ZC._n_(i=l.o.scales))for(l.BM=i.split(/,|;|\s/),n=0;n<l.BM.length;n++)l.BM[n]=ZC.U7(ZC.GT(l.BM[n]));if(l.C.o.legend&&l.C.o.legend["highlight-plot"]&&(l.I5=!0),null!==ZC._n_(l.o.multiplier)&&null===ZC._n_(l.o["short"])&&(l.o["short"]=l.o.multiplier),null!==ZC._n_(l.o["click-marker"])&&null===ZC._n_(l.o["selection-mode"])&&null===ZC._n_(l.o["selected-marker"])&&(l.o["selection-mode"]="multiple",l.o["selected-marker"]={},ZC._cp_(l.o["click-marker"],l.o["selected-marker"])),l.KQ=l.C.KQ,l.assign_a([["ignore","HK","b"],["exponent","ZP","b"],["exponent-decimals","SE","ia"],["decimals","DU","ia"],["max-decimals","HW","i"],["preview","QH","b"],["stacked","CB","b"],["stack-type","KQ"],["exact","QC","b"],["text","AR"],["tooltip-text","JV"],["legend-text","A64"],["description","YB"],["stack","DY","i"],["z-index","JN","i"],["aspect","CW"],["mode","A0Q"],["density","XW","f"],["max-nodes","MO"],["max-trackers","RS"],["segment-trackers","XU","b"],["sampling-step","XG","i"],["scroll-step-multiplier","Y0","i"],["url","E8"],["target","FC"],["decimals-separator","RR"],["thousands-separator","R5"],["short","A2V","b"],["negation","ZN"],["short-unit","TI"],["fast-rules","A6T","b"],["errors","S0"],["styles","SQ"],["monotone","Q8","b"],["highlight","I5","b"],["highlight-legend","L8","b"],["hover-mode","A3G"],["mid-point","UL","b"],["clustered","LJ","b"],["cluster-index","R3","i"],["cluster-offset","RH","i"],["animate","GA","b"],["effect","L6","i"],["speed","JD","f"],["selection-mode","IY"],["group-selections","RI","b"],["background-mode","O2"],["extra-values","YG","ia"]]),l.AAI=l.QC,!l.E["quick-parse"]){if(ZC._todash_(l.SQ),l.I5&&(null===ZC._n_(l.C.o.legend)||null===ZC._n_(l.C.o.legend["highlight-legend"]))&&ZC._n_(null===l.o["highlight-legend"])&&(l.L8=l.I5),null!==ZC._n_(i=l.o.animation)){l.GA=!0;var o;null!==ZC._n_(t=i.effect)&&(0===(t+"").indexOf("ANIMATION_")&&null!==ZC._n_(o=ZC.ANIMATION[(t+"").substring(10)])&&(t=o),l.L6=ZC._i_(t),0===l.L6&&(l.GA=!1)),null!==ZC._n_(t=i.speed)&&(0===(t+"").indexOf("ANIMATION_")&&null!==ZC._n_(o=ZC.ANIMATION[(t+"").substring(10)])&&(t=o),l.JD=ZC._f_(t)),null!==ZC._n_(t=i.delay)&&(l.L2=ZC._f_(t)),null!==ZC._n_(t=i.method)&&(0===(t+"").indexOf("ANIMATION_")&&null!==ZC._n_(o=ZC.ANIMATION[(t+"").substring(10)])&&(t=o),l.L5=ZC._i_(t)),null!==ZC._n_(t=i.sequence)&&(0===(t+"").indexOf("ANIMATION_")&&null!==ZC._n_(o=ZC.ANIMATION[(t+"").substring(10)])&&(t=o),l.TM=ZC._i_(t)),null!==ZC._n_(t=i.attributes)&&(l.FT=t)}l.JD<10&&(l.JD*=1e3),l.L2<10&&(l.L2*=1e3),"undefined"!=typeof ZC.PB&&(l.JD=ZC.BQ(ZC.PB.TW,l.JD)),("fast"===l.A0Q||"undefined"==typeof ZC.PB||zingchart.SKIP.ANIMATION)&&(l.GA=!1),l.H.A10&&(l.GA=!1),-1!==ZC.AV(["line","area","vbar","hbar","stock","scatter","bubble","radar","piano"],l.AF)&&("fast"===l.A0Q?l.IP=!0:"normal"===l.A0Q||l.GA||-1!==JSON.stringify(l.o).indexOf('"rules"')||-1!==JSON.stringify(l.o).indexOf('"js-rule"')||0!==l.SQ.length||-1!==l.H.E.json.indexOf('"override"')||-1!==l.H.E.json.indexOf('"errors"')||"none"!==l.IY?l.IP=!1:l.IP=!0);for(var r in l.o)if("data-"===r.substring(0,5)){var s=r.substring(5);l.KB[s]=l.o[r]}var A=l.H.B7;if(l.IB=new ZC.D0(l),l.IB.append(l.o),A.load(l.IB.o,e("hover-state")),l.IB.append(l.o["hover-state"]),null!==ZC._n_(l.o["hover-state"])||"line"!==l.AF&&"area"!==l.AF||(l.IB.AM=!1),l.I5&&(l.S2=new ZC.D0(l),A.load(l.S2.o,e("highlight-state")),l.S2.append(l.o),null!==ZC._n_(i=l.o["highlight-state"])&&l.S2.append(i),null===ZC._n_(l.S2.o.shadow)&&(l.S2.o.shadow=!0)),null!==ZC._n_(i=l.o["selected-state"])&&(l.SR=new ZC.D0(l),A.load(l.SR.o,e("selected-state")),l.SR.append(i)),null!==ZC._n_(i=l.o["background-state"])&&(l.SX=new ZC.D0(l),A.load(l.SX.o,e("background-state")),l.SX.append(i)),l.A2=new ZC.D0(l),A.load(l.A2.o,e("marker")),A.load(l.A2.o,e("marker["+l.CW+"]")),l.A2.append(l.o.marker),"auto"===l.A2.o.type){var C=["circle","square","diamond","triangle","star5"];l.A2.o.type=C[l.L%C.length]}if(l.A2.parse(),(l.A2.E7.length>0||l.SQ.length>0||l.A2.o["top-state"])&&(l.YJ=!1),l.G4=new ZC.D0(l),A.load(l.G4.o,e("hover-marker")),l.G4.append(l.o.marker),l.G4.append(l.o["hover-marker"]),null!==ZC._n_(i=l.o["selected-marker"])&&(l.PH=new ZC.D0(l),A.load(l.PH.o,e("selected-marker")),l.PH.append(i)),null!==ZC._n_(i=l.o["background-marker"])&&(l.PE=new ZC.D0(l),A.load(l.PE.o,e("background-marker")),l.PE.append(i)),l.I5&&(l.UU=new ZC.D0(l),l.UU.append(l.o.marker),null!==ZC._n_(i=l.o["highlight-marker"])&&(A.load(l.UU.o,e("highlight-marker")),l.UU.append(i))),"normal"!==l.A0Q&&(l.SR||l.PH)&&(l.IP=!1),"fast"===l.A0Q&&(l.IP=!0),l.A8=new ZC.DS(l),l.o.tooltip&&l.o.tooltip.placement&&l.o.tooltip.placement.indexOf("node")>-1?A.load(l.A8.o,"("+l.AF+").tooltip[dynamic]"):A.load(l.A8.o,l.AF+".tooltip"),l.A8.append(l.o.tooltip),null!==ZC._n_(i=l.o.error)&&(l.J7=new ZC.DW(l),A.load(l.J7.o,e("error")),l.J7.append(i),null===ZC._n_(l.J7.o.size)&&(l.J7.o.size=4)),null!==ZC._n_(i=l.o["value-box"])){if(i instanceof Array)for(l.U=new ZC.D0(l),A.load(l.U.o,e("value-box")),null!==ZC._n_(t=l.C.o.plot)&&l.U.append(t["value-box"]),l.U.append(i[0]),i.length>1&&(l.NZ=[]),n=1;n<i.length;n++)l.NZ[n-1]=new ZC.D0(l),A.load(l.NZ[n-1].o,e("value-box")),null!==ZC._n_(t=l.C.o.plot)&&l.NZ[n-1].append(t["value-box"]),l.NZ[n-1].append(i[n]);else l.U=new ZC.D0(l),A.load(l.U.o,e("value-box")),null!==ZC._n_(t=l.C.o.plot)&&l.U.append(t["value-box"]),l.U.append(i);l.U.parse()}l.H.QV&&(l.AM=ZC.FSSTATUS["g-"+l.C.L+"-p-"+l.L]);var c=!1;for("undefined"==typeof l.C.E["plot"+l.L+".visible"]&&(c=!0),c?l.C.E["plot"+l.L+".visible"]=!0:l.AM=l.C.E["plot"+l.L+".visible"],l.AM||c&&(l.C.E["plot"+l.L+".visible"]=!1),n=0,a=l.C.BM.length;n<a;n++)null!==ZC._n_(l.C.BM[n].o.values)?l.C.BM[n].T3=!0:-1!==ZC.AV(l.BM,l.C.BM[n].BC)&&("remove"===l.C.getToggleAction()||l.C.A.K5?l.AM&&l.C.E["plot"+l.L+".visible"]&&(l.C.BM[n].T3=!0):l.C.BM[n].T3=!0);var u=null;if(l.K=l.A.K+"-plot-"+l.L,l.R=[],l.A.F7||(l.A.F7={}),-1!==l.AF.indexOf("area")&&-1===l.AF.indexOf("3d")&&l.CB){l.A.WB||(l.A.WB={}),l.A.WB["s"+l.DY]||(l.A.WB["s"+l.DY]=[]);var p=!1;if(null!==ZC._n_(l.o.values))for(n=0,a=l.o.values.length;n<a;n++)if("object"==typeof l.o.values[n]&&null!==ZC._n_(l.o.values[n])){p=!0;break}p&&(l.GA=!1,l.HT||0!==l.E7.length||(l.IP=!0,-1===zingchart.DEV.STACKINGLOGIC&&(l.C.U8=1)))}l.B1=l.C.BN(l.BT("k")[0]),l.CM=l.C.BN(l.BT("v")[0]);var Z;if(null!==ZC._n_(l.o.values)&&""!==l.AF){l.X=l.o.values;var h=null;l.PT=[ZC.MAX,-ZC.MAX];var d=[],f=[],_=0;for(n=0,a=l.X.length;n<a;n++){var g=!1;if(l.o["hint-ts"]||(null!==ZC._n_(l.X[n])&&"object"==typeof l.X[n]&&l.X[n].length>1?(null===ZC._n_(l.X[n][1])||"string"==typeof l.X[n][1]&&"NULL"===l.X[n][1].toUpperCase())&&(g=!0):(null===ZC._n_(l.X[n])||"string"==typeof l.X[n]&&"NULL"===l.X[n].toUpperCase())&&(g=!0),"piano"===l.C.AF&&(g=!1)),g)l.R.push(null);else{!l.IP||"xy"!==l.C.AJ.layout&&"yx"!==l.C.AJ.layout?u=l.TH():l.GO[1]||("bubble"===l.AF||"scatter"===l.AF?l.GO[1]=u=l.TH():(l.GO[0]=l.TH(),l.GO[1]=u=l.TH(),l.GO[2]=l.TH(),l.GO[3]=l.TH())),u.K=l.K+"-node-"+n,"string"==typeof l.X[n]&&zingchart.QUOTEDVALUES&&(l.X[n]=ZC._f_(l.X[n])),u.o={value:l.X[n]},"string"==typeof l.X[n]&&(u.A1Z=!0),u.L=n,l.o["hint-ts"]?(u.E.plotidx=l.L,u.E.nodeidx=u.L,u.K=l.K+"-node-"+u.L,u.BU=l.X[n][0],u.AD=l.X[n][1]):u.parse(),(a<256||zingchart.DEV.CHECKDECIMALS)&&null!==ZC._n_(u.AD)&&2===(Z=u.AD.toString().split(".")).length&&(_=ZC.BQ(_,Z[1].length)),u.BU&&(null!==h&&ZC._a_(u.BU-h)>0&&d.push(ZC._a_(u.BU-h)),h=u.BU),l.A.WB=l.A.WB||{};var v=l.A.WB["s"+l.DY];if(v&&(null!==h?-1===ZC.AV(v,u.BU)&&v.push(u.BU):-1===ZC.AV(v,n)&&v.push(n)),!l.IP||"xy"!==l.C.AJ.layout&&"yx"!==l.C.AJ.layout)l.R.push(u);else{var b={iX:u.iX,iY:u.iY,L:u.L,BU:u.BU,AD:u.AD,CR:u.AD,DN:u.DN,JB:u.JB};"bubble"===l.AF&&(b.SK=u.SK),l.R.push(b)}null!==u.BU&&(l.PT[0]=Math.min(l.PT[0],u.BU),l.PT[1]=Math.max(l.PT[1],u.BU)),l.C.E["plot"+l.L+".visible"]&&(zingchart.DEV.PLOTSTATS||"100%"===l.KQ)&&l.CB&&(null===ZC._n_(l.A.F7[n])?(l.A.F7[n]={},l.A.F7[n]["%total-"+l.DY]=u.AD):null===ZC._n_(l.A.F7[n]["%total-"+l.DY])?l.A.F7[n]["%total-"+l.DY]=u.AD:l.A.F7[n]["%total-"+l.DY]+=u.AD),zingchart.DEV.PLOTSTATS&&(f.push(u.AD),l.JR?(l.JR["%plot-max-index"]=n,l.JR["%plot-sum"]+=u.AD,a<256&&(l.JR["%plot-values"]+=","+u.AD)):l.JR={"%plot-min-index":n,"%plot-max-index":n,"%plot-sum":u.AD,"%plot-values":u.AD},l.A.F7||(l.A.F7={}),l.AM&&(null===ZC._n_(l.A.F7["%pstack-"+n+"-"+l.DY+"-sum"])?(l.A.F7["%pstack-"+n+"-"+l.DY+"-sum"]=u.AD,l.A.F7["%pstack-"+n+"-"+l.DY+"-stack-length"]=1):(l.A.F7["%pstack-"+n+"-"+l.DY+"-sum"]+=u.AD,l.A.F7["%pstack-"+n+"-"+l.DY+"-stack-length"]+=1)))}}(l.X.length<256||zingchart.DEV.CHECKDECIMALS)&&l.JR&&null!==ZC._n_(l.JR["%plot-sum"])&&2===(Z=l.JR["%plot-sum"].toString().split(".")).length&&ZC._i_(Z[1])>_&&(l.JR["%plot-sum"]=ZC._f_(l.JR["%plot-sum"].toFixed(ZC.CY(20,_)))),zingchart.DEV.PLOTSTATS?(l.JR&&(l.JR["%plot-average"]=l.JR["%plot-sum"]/l.X.length,l.JR["%plot-average"]=ZC._f_(l.JR["%plot-average"].toFixed(ZC.CY(20,_+2)))),f.length>0&&(l.JR["%plot-min-value"]=ZC.XS(f),l.JR["%plot-max-value"]=ZC.A1H(f))):l.JR={"%plot-min-index":0,"%plot-max-index":l.X.length,"%plot-sum":-1,"%plot-values":"","%plot-average":-1,"%plot-min-value":-1,"%plot-max-value":-1},h&&d.length>0&&(l.AAD=ZC.XS(d),l.A29=ZC.A1H(d))}}},mapPointsToPreview:function(e,i){for(var t=this,n=t.C.P,a=t.C.BA.AQ,l=[],o=0,r=e.length;o<r;o++)if(e[o]){"vml"===t.H.AC&&i&&(e[o][0]=e[o][0]/10,e[o][1]=e[o][1]/10);var s=(e[o][0]-n.iX)/n.I,A=(e[o][1]-n.iY)/n.F,C=a.iX+a.AT+s*(a.I-2*a.AT),c=a.iY+a.AT+A*(a.F-2*a.AT);l.push([C,c])}else l.push(null);return l},paint:function(){var e=this,i=e.C.P.I;switch(e.C.AF){case"scatter":case"bubble":i=1e6;break;case"hbar":case"hbar3d":i=e.C.P.F}null===ZC._n_(e.MO)&&(e.MO=ZC._i_(i/4)),null===ZC._n_(e.RS)&&(e.RS=ZC._i_(i/4)),e.YJ&&(e.HA=null,e.HG=null,e.R9=null,e.Q5=null)},XF:function(e){var i,t,n,a=this;for(i=0,t=a.R.length;i<t;i++)a.R[i]&&(a.R[i].JB=!1);var l=a.C.P;if(a.R2=!1,a.FW=!0,a.TY=!1,n=0,a.C.O7||"undefined"!=typeof a.AAI&&(a.QC=a.AAI),e)a.R2=!0,a.RS<a.R.length&&(a.FW=!1);else{if(a.B1.ED&&a.ED){for(i=0,t=a.R.length;i<t;i++)a.R[i]&&(a.B1.IM.length>0||ZC.DT(a.R[i].BU,a.B1.X[a.B1.V],a.B1.X[a.B1.A1]))&&n++;a.RS<n&&(a.FW=!1),n*a.XW>l.I&&(a.TY=!0),a.MO>=n&&(a.R2=!0)}else a.MO>a.B1.A1-a.B1.V&&(a.R2=!0);a.W=1,a.B1.ED&&a.ED||(n=a.B1.A1-a.B1.V,a.RS<n&&(a.FW=!1),n*a.XW>l.I&&(a.TY=!0),!a.QC&&n*a.XW>l.I&&(a.W=ZC.BQ(1,ZC._i_(n*a.XW/l.I)))),a.B1.ED&&a.ED&&(a.QC||n*a.XW>l.I&&(a.W=ZC.BQ(1,ZC._i_(n*a.XW/l.I)))),a.C.O7&&(a.QC=!1,a.W*=a.Y0)}null!==ZC._n_(a.XG)&&a.W>a.XG&&(a.W=a.XG)},P8:function(e){function i(e,t){for(var n=e;n<ZC.CY(e+t,l.R.length);n++)l.R[n]?((o=l.FP(n)).Z=l.KC,o.paint(),o.JB=!0,l.R[n].JB=!0):"radar"===l.C.AF&&(n===l.R.length-1?"line"!==l.CW&&"area"!==l.CW&&"range"!==l.CW||ZC.CS.paint(l.Q2,l,l.D):l.D.push(null));e+t<l.R.length?l.C.LG?window.setTimeout(function(){i(e+t,t)},10):i(e+t,t):l.C.LG&&l.L===l.A.A6.length-1&&l.A._end_()}var t,n,a,l=this;null!==ZC._n_(e)&&e||(e=!1),l.B1&&"log"===l.B1.CA&&(e=!0),l.XF(e);var o=null;if(e||l.LJ)l.A.A47=!1,i(0,ZC.ie678||ZC.mobile?200:2e3);else{var r="vbar"!==l.AF&&"hbar"!==l.AF;if(l.B1.ED&&l.ED){a=l.G7=l.HD=l.W;var s=!0,A=0,C=0;for(t=0,n=l.R.length;t<n;t+=a)r&&(n-t==1?(l.G7=a,l.HD=1):n-t<l.W&&(l.G7=l.W,l.HD=n-t-1,a=n-t-1)),l.R[t]&&(l.B1.IM.length>0||ZC.DT(l.R[t].BU,l.B1.X[l.B1.V],l.B1.X[l.B1.A1])||r&&s&&l.R[t+a]&&l.R[t+a].BU>=l.B1.X[l.B1.V])&&(r&&s&&l.R[t-a]&&((o=l.FP(t-a)).Z=l.KC,o.paint(),o.JB=!0,s=!1,C++),(o=l.FP(t)).Z=l.KC,o.paint(),o.JB=!0,C++,s=!1,A=t);r&&C>0&&l.R[A+a]&&((o=l.FP(A+a)).Z=l.KC,o.paint(),o.JB=!0)}else{a=l.G7=l.HD=l.W;var c=0,u=1,p=null;if(!r){var Z="vbar"===l.AF?l.C.P.I:l.C.P.F;c=4/("vbar"===l.AF?l.C.P.F:l.C.P.I)*(l.CM.BL-l.CM.B4),u=1+ZC._i_((l.B1.A1-l.B1.V)/(2*Z)),a=1}for(t=l.B1.V;t<=l.B1.A1;t+=a)(l.B1.A1-l.B1.V)%l.W!=0&&r&&(l.B1.A1-t==0?(l.G7=a,l.HD=1):l.B1.A1-t<=l.W&&(l.G7=l.W,l.HD=l.B1.A1-t,a=l.B1.A1-t)),l.R[t]?(o=l.FP(t),(r||l.QC||!r&&null===p||ZC._a_(o.AD-p)>c||t%u==0)&&(o.Z=l.KC,o.paint(),o.JB=!0,l.R[t].JB=!0),p=o.AD):l.CB&&-1!==ZC.AV(["vbar","hbar","vbar3d","hbar3d"],l.AF)&&l.QF()}}},CO:function(e,i){var t=this;if(t.UJ[e+i])return t.UJ[e+i];var n=null;return n=t.H.usc()?ZC.AK(t.H.K+"-main-c"+("fl"===e?"-top":"")):t.H.K5||t.C.AJ["3d"]?ZC.AK(t.C.K+"-plots-"+e+"-c"):ZC.AK(t.C.K+"-plot-"+t.L+"-"+e+"-"+i+"-c"),t.UJ[e+i]||(t.UJ[e+i]=n),n},UZ:function(e){var i=this;return{id:i.H.K,graphid:i.C.K,graphidx:i.C.L,plotid:i.H2,plotindex:i.L,plottext:i.AR,ev:e?ZC.A4.C0(e):null,xdata:i.KB}},WW:function(e,i){ZC.AP.BZ("plot_"+i,this.H,this.UZ(e))},applyJsRuleSvg:function(e,i,t){var n,a=this;if(n=e.o["js-rule-svg"]){var l=ZC.AK(i),o=ZC.evalFn(n.replace("javascript:","").replace("()",""),window);if(l&&o)try{var r=o.call(a,t);for(var s in r)l.setAttribute(s,r[s])}catch(A){}}},sharedZScale:function(){var e=this,i=e.C,t=i.P;if(i.o["scale-z"]&&i.E["plot"+e.L+".visible"]){var n,a,l,o,r;if(n=new ZC.CF(i,t.iX+t.I-ZC.AN.E3+10,t.iY+t.F-ZC.AN.E2,e.E["z-mid"]),a=new ZC.DS(e),a.GJ=i.K+"-scale-z-item "+i.K+"-scale-item zc-scale-item",a.K=i.K+"-scale-z-item_"+e.L,a.AR=i.o["scale-z"].values[e.L],a.Z=a.C6=e.H.usc()?e.H.mc():ZC.AK(i.K+"-scales-ml-0-c"),r=ZC.Q.E9(a.Z,e.H.AC),a.IJ=e.H.usc()?ZC.AK(e.H.K+"-main"):ZC.AK(e.H.K+"-text"),a.append(i.o["scale-z"].item),a.parse(),a.AA+=a.V2?0:ZC.DH.A2X(i,a),a.iX=n.EB[0],a.iY=n.EB[1],a.o["auto-align"]&&a.V2&&(a.iY-=a.F/2),a.paint(),null===ZC._n_(e.E["scale-z-item-max-width"])&&(e.E["scale-z-item-max-width"]=0),e.E["scale-z-item-max-width"]=ZC.BQ(e.E["scale-z-item-max-width"],a.I),e.E["z-cnt"]===e.E["z-plots"]-1&&i.o["scale-z"].label){n=new ZC.CF(i,t.iX+t.I-ZC.AN.E3+20+e.E["scale-z-item-max-width"],t.iY+t.F-ZC.AN.E2,ZC.AN.FS/2),(a=new ZC.DS(e)).GJ=i.K+"-scale-z-label "+i.K+"-scale-label zc-scale-label",a.K=i.K+"-scale-z-label",a.Z=a.C6=e.H.usc()?e.H.mc():ZC.AK(i.K+"-scales-ml-0-c"),r=ZC.Q.E9(a.Z,e.H.AC),a.IJ=e.H.usc()?ZC.AK(e.H.K+"-main"):ZC.AK(e.H.K+"-text"),a.append(i.o["scale-z"].label),a.parse();var s,A;s=new ZC.CF(i,t.iX+t.I-ZC.AN.E3,t.iY+t.F-ZC.AN.E2,0),A=new ZC.CF(i,t.iX+t.I-ZC.AN.E3,t.iY+t.F-ZC.AN.E2,ZC.AN.FS);var C=ZC.TO(Math.atan((A.EB[1]-s.EB[1])/(A.EB[0]-s.EB[0])));a.AA+=a.V2?0:C,a.iX=n.EB[0],a.iY=n.EB[1],a.paint()}if(i.o["scale-z"].tick&&(o=new ZC.DW(e),o.B9="#cccccc",o.B0=1,o.AI=6,o.append(i.o["scale-z"].tick),o.parse(),o.AM&&o.B0>0)){o.K=i.K+"-scale-z-tick-"+e.L;for(var c=[],u=[[t.iX+t.I,t.iY+t.F],[t.iX+t.I+o.AI,t.iY+t.F]],p=0;p<u.length;p++)n=new ZC.CF(i,u[p][0]-ZC.AN.E3,u[p][1]-ZC.AN.E2,e.E["z-mid"]),c.push([n.EB[0],n.EB[1]]);ZC.CS.paint(r,o,c)}if(0===e.E["z-cnt"]&&((o=new ZC.D0(e)).B9="#cccccc",o.B0=1,o.append(i.o["scale-z"].axis),o.parse(),o.B0>0&&o.AM&&(o.A0=o.AE=o.B9,(l=ZC.DH.DA(o,i,t.iX+t.I-ZC.AN.E3-o.B0,t.iX+t.I-ZC.AN.E3,t.iY+t.F-ZC.AN.E2,t.iY+t.F-ZC.AN.E2,0,ZC.AN.FS,"x")).K=i.K+"-scale-z-axis",i.CK.add(l))),e.E["z-cnt"]>0&&i.o["scale-z"].guide&&((o=new ZC.D0(e)).B9="#cccccc",o.B0=1,o.append(i.o["scale-z"].guide),o.parse(),o.B0>0&&o.AM&&(o.A0=o.AE=o.B9,(l=ZC.DH.DA(o,i,t.iX-ZC.AN.E3,t.iX+t.I-ZC.AN.E3,t.iY+t.F-ZC.AN.E2,t.iY+t.F-ZC.AN.E2+o.B0,e.E["z-cnt"]*e.E["z-depth"],e.E["z-cnt"]*e.E["z-depth"],"y")).K=i.K+"-scale-z-guideh-"+e.L,i.CK.add(l),(l=ZC.DH.DA(o,i,t.iX-ZC.AN.E3,t.iX-ZC.AN.E3,t.iY-ZC.AN.E2,t.iY+t.F-ZC.AN.E2,e.E["z-cnt"]*e.E["z-depth"],e.E["z-cnt"]*e.E["z-depth"]+o.B0,"y")).K=i.K+"-scale-z-guidev-"+e.L,i.CK.add(l))),i.o["scale-z"].items&&i.o["scale-z"].items.length){(o=new ZC.D0(e)).A0=o.AE="#ff9900",o.C5=.25;var Z=e.E["z-cnt"]%i.o["scale-z"].items.length;o.append(i.o["scale-z"].items[Z]),o.parse(),(l=ZC.DH.DA(o,i,t.iX-ZC.AN.E3,t.iX+t.I-ZC.AN.E3,t.iY+t.F-ZC.AN.E2,t.iY+t.F-ZC.AN.E2,e.E["z-cnt"]*e.E["z-depth"],e.E["z-cnt"]*e.E["z-depth"]+e.E["z-depth"],"z")).K=e.K+"-item-",i.CK.add(l)}}},gc:function(){if(this.R)for(var e=0;e<this.R.length;e++)this.R[e]&&this.R[e].A&&ZC.AP.gc(this.R[e],["Z","C6","o","J5","I0","A","C","H","N","N3"]);ZC.AP.gc(this,["X","R","GO","JY","V1","A8","Z","C6","UJ","A2","TC","HA","G4","IB","KC","Q2","B1","CM","R","GO","JY","JR","o","J5","I0","A","C","H"])}}),ZC.W1=ZC.IC.C7({$i:function(e){this.b(e);var i=this;i.bXY=!0,i.AF="xy",i.BM=["scale-x","scale-y"]},paint:function(){this.b()}}),ZC.QO=ZC.W1.C7({$i:function(e){this.b(e);var i=this;i.AF="line",i.CW="segmented",i.W=1,i.SI="middle",i.V1=[],i.Q7=!1,i.OI=!1},TH:function(){return new ZC.A2T(this)},parse:function(){var e=this;e.BP=e.NO(),e.C1=e.BP[0],e.B9=e.BP[1],e.NM(),e.b(),e.assign_a([["step-start","SI"],["smart-sampling","Q7","b"]]),e.B1=e.C.BN(e.BT("k")[0]),e.CM=e.C.BN(e.BT("v")[0])},paint:function(){var e,i,t,n,a,l,o,r=this;r.b(),r.V1=[];var s=r.OI;if(r.KC=r.CO("bl",0),r.Q2=ZC.Q.E9(r.CO("bl",1),r.H.AC),!r.IP||r.C.AJ["3d"])r.P8(),r.D=null;else{r.XF(),r.C6=r.CO("bl",0);var A=!0;(null!==ZC._n_(r.A2.o.visible)&&!ZC._b_(r.A2.o.visible)||null!==ZC._n_(r.A.o.type)&&"none"===r.A2.o.type)&&(A=!1);var C=[],c=[],u=[],p=!0,Z=0,h=null;n=0;var d=-1,f=-1,_=r.A.A6[0].S0&&r.A.A6[0].S0.length,g=r.W,v=r.CW;if(r.W>1&&"spline"===v&&(v="segmented"),r.B1.ED&&r.ED){for(t=r.W,e=0,i=r.R.length;e<i;e+=t)f-e<=r.W&&(t=ZC.BQ(1,f-e)),r.R[e]&&(r.B1.IM.length>0||ZC.DT(r.R[e].BU,r.B1.X[r.B1.V],r.B1.X[r.B1.A1])||p&&r.R[e+t]&&r.R[e+t].BU>=r.B1.X[r.B1.V])&&(p&&r.R[e-t]&&(-1===d&&(d=e-t),f=e-t,p=!1,Z++),-1===d&&(d=e),f=e,Z++,p=!1,n=e);Z>0&&r.R[n+t]&&(-1===d&&(d=n+t),f=n+t,r.R[n+t].JB=!0)}else d=r.B1.V,f=r.LJ?r.R.length:r.B1.A1;r.W=g;var b=-1;t=r.W;var m=null,B=null,E=0,K=1;n=d,s?f-d>r.C.P.F&&(E=4/r.C.P.I*(r.CM.BL-r.CM.B4),K=ZC._i_((f-d)/(4*r.C.P.F))):f-d>r.C.P.I&&(E=4/r.C.P.F*(r.CM.BL-r.CM.B4),K=ZC._i_((f-d)/(4*r.C.P.I))),r.o["sampling-threshold"]&&(E*=Math.max(1,(f-d)/ZC._i_(r.o["sampling-threshold"])),K*=Math.max(1,(f-d)/ZC._i_(r.o["sampling-threshold"])));for(r.D=[],e=d;e<=f;e+=t){var F=!1;if(((f-d)%r.W!=0||r.B1.ED&&r.ED)&&f-e<=r.W&&(t=ZC.BQ(1,f-e),F=!0),r.Q7&&!F&&r.R[e])if(null===ZC._n_(m))m=r.R[e].CR,n=e,B=0;else{if(Math.abs(r.R[e].CR-m)<E&&e-n<K&&(!r.ED||r.R[e].BU-B<4*r.B1.SC))continue;m=r.R[e].CR,B=r.R[e].BU,n=e}if(0,h=r.FP(e)){switch(r.R[e].JB=!0,(r.FW||r.LJ)&&h.paint(!0),-1===b&&(b=h.iX),v){default:C.push([h.iX,h.iY]);break;case"spline":s?(c.push(h.iX),u.push(h.iY),1===c.length&&(c.push(h.iX),u.push(h.iY))):(c.push(h.iY),u.push(h.iX),1===c.length&&(c.push(h.iY),u.push(h.iX)));break;case"stepped":switch(r.SI){default:(l=r.FP(e-t,0))&&(l.setup(),a=ZC.AO.JO(r.R[e-t].iX,r.R[e-t].iY,h.iX,h.iY),C.push(s?[h.iX,a[1]]:[a[0],h.iY])),C.push([h.iX,h.iY]),(o=r.FP(e+t,0))&&(o.setup(),a=ZC.AO.JO(h.iX,h.iY,r.R[e+t].iX,r.R[e+t].iY),C.push(s?[h.iX,a[1]]:[a[0],h.iY]));break;case"before":(l=r.FP(e-t,0))&&(l.setup(),C.push([r.R[e-t].iX,r.R[e-t].iY],[r.R[e-t].iX,h.iY])),C.push([h.iX,h.iY]);break;case"after":C.push([h.iX,h.iY]),(o=r.FP(e+t,0))&&(o.setup(),C.push([r.R[e+t].iX,h.iY],[r.R[e+t].iX,r.R[e+t].iY]))}break;case"jumped":(l=r.FP(e-t,0))?(l.setup(),a=ZC.AO.JO(r.R[e-t].iX,r.R[e-t].iY,h.iX,h.iY),C.push(s?[h.iX,a[1]]:[a[0],h.iY])):C.push(s?[h.iX,h.iY-r.B1.A9/2]:[h.iX-r.B1.A9/2,h.iY]),C.push([h.iX,h.iY]),(o=r.FP(e+t,0))?(o.setup(),a=ZC.AO.JO(h.iX,h.iY,r.R[e+t].iX,r.R[e+t].iY),C.push(s?[h.iX,a[1]]:[a[0],h.iY])):C.push(s?[h.iX,h.iY+r.B1.A9/2]:[h.iX+r.B1.A9/2,h.iY]),C.push(null)}_&&h.MW(ZC.Q.E9(r.CO("fl",0),r.H.AC)),(r.R2&&A||r.FW)&&h.P2(),h.JB=!0}else null!==ZC._n_(r.o["connect-nulls"])&&ZC._b_(r.o["connect-nulls"])||(C.push(null),c.push(null),u.push(null))}if("spline"===v){c.push(c[c.length-1]),u.push(u[u.length-1]),C=[];for(var D=1;D<c.length-1;D++){var X=[c[D-1],c[D],c[D+1],c[D+2]],I=ZC._a_(u[D+1]-u[D]);I=Math.min(I,Math.max(r.C.I,r.C.F));var x=ZC.AO.XZ(r.Q8,X,I);for(e=0;e<x.length;e++)null!==ZC._n_(x[e][0])&&null!==ZC._n_(x[e][1])?s?C.push([x[e][1],u[D]+(r.B1.AU?1:-1)*x[e][0]*I]):C.push([u[D]+(r.B1.AU?-1:1)*x[e][0]*I,x[e][1]]):C.push(null)}}r.CZ=!1;var y=r.H.O3;if(r.H.O3=!1,r.E["fast-vector-path"]=!0,ZC.CS.setup(r.Q2,r),ZC.CS.paint(r.Q2,r,C),r.H.O3=y,r.C.BA&&r.C.BA.HY&&r.QH){var w=r.mapPointsToPreview(C,!0),Y=ZC.Q.E9(r.C.BA.Z,r.H.AC),M=new ZC.D0(r);M.copy(r),M.K=r.K+"-preview",M.DI=r.K+"-preview",M.B0=1;var H=r.o["preview-state"];H&&(M.append(H),M.parse()),ZC.CS.paint(Y,M,w,null,3)}}}}),ZC.QG=ZC.W1.C7({$i:function(e){this.b(e);var i=this;i.AF="area",i.W=1,i.CW="segmented",i.SO=3,i.HQ=i.C.AJ["3d"]?1:.5,i.SI="middle",i.A3V=!0,i.V1=[],i.Q7=!1,i.X2=!1,i.OI=!1},TH:function(){return new ZC.A2S(this)},parse:function(){var e=this;e.BP=e.NO(),e.C1=e.BP[0],e.B9=e.BP[1],e.C.AJ["3d"]||"solid"===e.o["background-color-style"]?e.A0=e.AE=e.BP[1]:(e.A0=e.BP[0],e.AE=e.BP[1]),e.NM(),e.b(),e.applyRGBA(),e.assign_a([["alpha-area","HQ","f",0,1],["step-start","SI"],["active-area","X2","b"],["contour-on-top","A3V","b"],["smart-sampling","Q7","b"]]),e.B1=e.C.BN(e.BT("k")[0]),e.CM=e.C.BN(e.BT("v")[0])},paint:function(){var e,i,t,n,a,l,o,r,s,A,C,c=this;c.b(),c.V1=[];var u=c.OI;if(-1===ZC.AV(["segmented","spline","stepped"],c.CW)&&(c.CW="segmented"),c.KC=c.CO("bl",0),c.A45=ZC.Q.E9(c.CO("bl",1),c.H.AC),c.Q2=ZC.Q.E9(c.CO("bl",c.A3V?2:1),c.H.AC),A=c.C.P,!c.IP||c.C.AJ["3d"]){var p=ZC.MAX,Z=-ZC.MAX;for(e=0,i=c.R.length;e<i;e++)c.R[e]&&(p=ZC.CY(p,c.R[e].CR),Z=ZC.BQ(Z,c.R[e].CR));var h=c.CM.B2(p),d=c.CM.B2(Z),f=c.CM.B2(c.CM.H4);if(ZC.DT(f,h,d)&&(c.CM.AU?f<h&&(h=f):f>d&&(d=f)),c.E["min-y"]=Math.min(h,d),c.E["max-y"]=Math.max(h,d),c.CB&&c.A.F1){var _=ZC.MAX,g=-ZC.MAX;for(e=0,i=c.A.F1.length;e<i;e++)if(c.A.F1[e])for(var v=0,b=c.A.F1[e].length;v<b;v++)_=ZC.CY(_,c.A.F1[e][v][1]),g=ZC.BQ(g,c.A.F1[e][v][1]);c.CM.AU?c.E["min-y"]=_:c.E["max-y"]=g}c.E["max-y"]-c.E["min-y"]<100&&(c.E["max-y"]+=50,c.E["min-y"]-=50),c.P8(),c.D=null,c.D6=null,c.AG=null}else{c.XF(),c.C6=c.CO("bl",0);var m=!0;(null!==ZC._n_(c.A2.o.visible)&&!ZC._b_(c.A2.o.visible)||null!==ZC._n_(c.A.o.type)&&"none"===c.A2.o.type)&&(m=!1);var B=c.CB&&0===c.C.U8,E=[],K=[],F=[],D=[],X=[],I=c.CM.H4;c.o["ref-value"]&&(I=ZC._f_(c.o["ref-value"]));var x=c.CM.B2(I);u?"xy"===c.C.AJ.layout?(x=c.B1.B2(I),x=ZC._l_(x,c.B1.iX,c.B1.iX+c.B1.I)):x=ZC._l_(x,c.CM.iX,c.CM.iX+c.CM.I):"yx"===c.C.AJ.layout?(x=c.B1.B2(I),x=ZC._l_(x,c.B1.iY,c.B1.iY+c.B1.F)):x=ZC._l_(x,c.CM.iY,c.CM.iY+c.CM.F);var y=!0,w=0,Y=null;t=0;var M=-1,H=-1,L=c.A.A6[0].S0&&c.A.A6[0].S0.length,P=c.W,N=c.CW;if(c.W>1&&"spline"===N&&(N="segmented"),c.B1.ED&&c.ED){for(n=c.W,e=0,i=c.R.length;e<i;e+=n)H-e<=c.W&&(n=ZC.BQ(1,H-e)),c.R[e]&&(c.B1.IM.length>0||ZC.DT(c.R[e].BU,c.B1.X[c.B1.V],c.B1.X[c.B1.A1])||y&&c.R[e+n]&&c.R[e+n].BU>=c.B1.X[c.B1.V])&&(y&&c.R[e-n]&&(-1===M&&(M=e-n),H=e-n,y=!1,w++),-1===M&&(M=e),H=e,w++,y=!1,t=e);w>0&&c.R[t+n]&&(-1===M&&(M=t+n),H=t+n,c.R[t+n].JB=!0)}else M=c.B1.V,H=c.LJ?c.R.length:c.B1.A1;c.W=P,B||c.A.D6&&(K=c.A.D6.reverse());var O=null,k=null,Q=0,R=1;t=M,u?H-M>c.C.P.F&&(Q=4/c.C.P.I*(c.CM.BL-c.CM.B4),R=ZC._i_((H-M)/(4*c.C.P.F))):H-M>c.C.P.I&&(Q=4/c.C.P.F*(c.CM.BL-c.CM.B4),R=ZC._i_((H-M)/(4*c.C.P.I)));var z=!1,T=!1,G=-1;n=c.W,z=!0,!c.A.RV&&B&&(c.A.RV={},c.A.VF={});var S=null,J=null;if(c.A.RV&&!c.A.RV["s"+c.DY]&&B){c.A.RV["s"+c.DY]={},c.A.VF["s"+c.DY]={};var V=c.A.WB["s"+c.DY];for(e=0;e<=V.length;e++)null!==ZC._n_(V[e])&&(a=c.B1.ED?ZC._i_(c.B1.B2(V[e])):ZC._i_(c.B1.I4(V[e])),c.A.RV["s"+c.DY][a]=x,c.A.VF["s"+c.DY][a]=x)}for(B&&(S=c.A.RV["s"+c.DY],J=c.A.VF["s"+c.DY]),e=M;e<=H;e+=n){var U=!1;if(((H-M)%c.W!=0||c.B1.ED&&c.ED)&&H-e<=c.W&&(n=ZC.BQ(1,H-e),U=!0),c.Q7&&!U&&c.R[e])if(null===ZC._n_(O))O=c.R[e].CR,t=e,k=0;else{if(Math.abs(c.R[e].CR-O)<Q&&e-t<R&&(!c.ED||c.R[e].BU-k<4*c.B1.SC))continue;O=c.R[e].CR,k=c.R[e].BU,t=e}if(Y=c.FP(e)){switch(c.R[e].JB=!0,(c.FW||c.LJ)&&Y.paint(!0),(T||("segmented"===N||"stepped"===N)&&e===M&&0===K.length)&&(B||(K.push(u?[x,Y.iY]:[Y.iX,x]),T&&F.push(u?[x,Y.iY]:[Y.iX,x]))),T=!1,-1===G&&(G=Y.iX),N){default:B||z&&(u?Y.iY>c.B1.iY&&(F.push([x,c.B1.iY]),F.push([x,Y.iY]),K.push([x,Y.iY])):Y.iX>c.B1.iX&&(F.push([c.B1.iX,x]),F.push([Y.iX,x]),K.push([Y.iX,x])),z=!1),E.push([Y.iX,Y.iY]),B?u?J[ZC._i_(Y.iY)]=Y.iX:J[ZC._i_(Y.iX)]=Y.iY:(F.push([Y.iX,Y.iY]),K.push([Y.iX,Y.iY]));break;case"spline":u?(D.push(Y.iX),X.push(Y.iY),1===D.length&&(D.push(Y.iX),X.push(Y.iY))):(D.push(Y.iY),X.push(Y.iX),1===D.length&&(D.push(Y.iY),X.push(Y.iX)));break;case"stepped":var W=c.B1.AU?-1:1;switch(c.SI){default:(o=c.FP(e-n,0))&&(o.setup(),l=ZC.AO.JO(c.R[e-n].iX,c.R[e-n].iY,Y.iX,Y.iY),E.push(u?[Y.iX,l[1]]:[l[0],Y.iY]),B?u?J[ZC._i_(l[1])-W]=Y.iX:J[ZC._i_(l[0])+W]=Y.iY:(F.push(u?[Y.iX,l[1]]:[l[0],Y.iY]),K.push(u?[Y.iX,l[1]]:[l[0],Y.iY]))),E.push([Y.iX,Y.iY]),B?u?J[ZC._i_(Y.iY)]=Y.iX:J[ZC._i_(Y.iX)]=Y.iY:(F.push([Y.iX,Y.iY]),K.push([Y.iX,Y.iY])),(r=c.FP(e+n,0))&&(r.setup(),l=ZC.AO.JO(Y.iX,Y.iY,c.R[e+n].iX,c.R[e+n].iY),E.push(u?[Y.iX,l[1]]:[l[0],Y.iY]),B?u?J[ZC._i_(l[1])+W]=Y.iX:J[ZC._i_(l[0])-W]=Y.iY:(F.push(u?[Y.iX,l[1]]:[l[0],Y.iY]),K.push(u?[Y.iX,l[1]]:[l[0],Y.iY])));break;case"before":(o=c.FP(e-n,0))&&(o.setup(),E.push([c.R[e-n].iX,c.R[e-n].iY],[c.R[e-n].iX,Y.iY]),B?u?(J[ZC._i_(Y.iY)+W]=c.R[e-n].iX,J[ZC._i_(Y.iY)]=c.R[e-n].iX):(J[ZC._i_(c.R[e-n].iX)]=c.R[e-n].iY,J[ZC._i_(c.R[e-n].iX)+W]=Y.iY):(F.push([c.R[e-n].iX,c.R[e-n].iY],[c.R[e-n].iX,Y.iY]),K.push([c.R[e-n].iX,c.R[e-n].iY],[c.R[e-n].iX,Y.iY]))),E.push([Y.iX,Y.iY]),B?u?J[ZC._i_(Y.iY)]=Y.iX:J[ZC._i_(Y.iX)]=Y.iY:(F.push([Y.iX,Y.iY]),K.push([Y.iX,Y.iY]));break;case"after":E.push([Y.iX,Y.iY]),B?u?J[ZC._i_(Y.iY)]=Y.iX:J[ZC._i_(Y.iX)]=Y.iY:(F.push([Y.iX,Y.iY]),K.push([Y.iX,Y.iY])),(r=c.FP(e+n,0))&&(r.setup(),E.push([c.R[e+n].iX,Y.iY],[c.R[e+n].iX,c.R[e+n].iY]),B?u?(J[ZC._i_(Y.iY)-W]=c.R[e+n].iX,J[ZC._i_(c.R[e+n].iY)]=c.R[e+n].iX):(J[ZC._i_(c.R[e+n].iX)-W]=Y.iY,J[ZC._i_(c.R[e+n].iX)]=c.R[e+n].iY):(F.push([c.R[e+n].iX,Y.iY],[c.R[e+n].iX,c.R[e+n].iY]),K.push([c.R[e+n].iX,Y.iY],[c.R[e+n].iX,c.R[e+n].iY])))}}L&&Y.MW(ZC.Q.E9(c.CO("fl",0),c.H.AC)),(c.R2&&m||c.FW)&&Y.P2(),Y.JB=!0}else null!==ZC._n_(c.o["connect-nulls"])&&ZC._b_(c.o["connect-nulls"])||(E.push(null),D.push(null),X.push(null),B||(K.length-1>=0&&K.push(u?[x,K[K.length-1][1]]:[K[K.length-1][0],x]),F.length-1>=0&&F.push(u?[x,K[K.length-1][1]]:[K[K.length-1][0],x]),T=!0))}if("segmented"!==N&&"stepped"!==N||B||K.length-1>=0&&(u?K.push([x,K[K.length-1][1]]):K.push([K[K.length-1][0],x])),"spline"===N){D.push(D[D.length-1]),X.push(X[X.length-1]),E=[],B||K.push(u?[x,X[0]]:[X[0],x]);for(var j=1;j<D.length-1;j++){var q=[D[j-1],D[j],D[j+1],D[j+2]],$=ZC._a_(X[j+1]-X[j]);$=Math.min($,Math.max(c.C.I,c.C.F));var ee=ZC.AO.XZ(c.Q8,q,$);for(e=0;e<ee.length;e++)null!==ZC._n_(ee[e][0])&&null!==ZC._n_(ee[e][1])?(s=u?[ee[e][1],X[j]+(c.B1.AU?1:-1)*ee[e][0]*$]:[X[j]+(c.B1.AU?-1:1)*ee[e][0]*$,ee[e][1]],E.push(s),B?u?J[ZC._i_(s[1])]=s[0]:J[ZC._i_(s[0])]=s[1]:(K.push(s),F.push(s))):E.push(null)}B||K.push(u?[x,K[K.length-1][1]]:[K[K.length-1][0],x])}if(!B&&F.length>0){var ie=F[F.length-1];u||ie[0]<c.B1.iX+c.B1.I&&(F.push(u?[x,ie[1]]:[ie[0],x]),F.push(u?[x,c.B1.iY]:[c.B1.iX+c.B1.I,x]))}if(B){var te=[],ne=[],ae=[],le=[];for(C in J)ae.push([C,J[C]]);ae.sort(function(e,i){return e[0]-i[0]});for(C in S)le.push([C,S[C]]);for(le.sort(function(e,i){return e[0]-i[0]}),e=0;e<ae.length;e++)u?te.push([ae[e][1],ae[e][0]]):te.push([ae[e][0],ae[e][1]]);for(e=0;e<le.length;e++)u?ne.push([le[e][1],le[e][0]]):ne.push([le[e][0],le[e][1]]);(K=te.concat(ne.reverse()))[0]&&K.push(K[0]),S=c.A.RV["s"+c.DY]={};for(C in J)S[C]=J[C]}var oe=new ZC.DW(c);if(oe.copy(c),oe.CZ=!0,oe.L1=!0,oe.B0=0,oe.AT=0,oe.EX=0,oe.G6=0,oe.N8=c.OI?180:90,oe.parse(),oe.C5=c.HQ,oe.Z=c.CO("bl",c.C.CB?0:1),oe.D=K,oe.A0S(),oe.K=c.K+"-area",oe.paint(),c.CZ=!1,ZC.CS.setup(c.Q2,c),ZC.CS.paint(c.Q2,c,E),c.C.BA&&c.C.BA.HY&&c.QH){var re,se=c.C.BA,Ae=c.mapPointsToPreview(K),Ce=new ZC.DW(c.A);Ce.copy(c),Ce.CZ=!0,Ce.L1=!0,Ce.B0=0,Ce.AT=0,Ce.EX=0,Ce.G6=0,Ce.C5=c.HQ,Ce.D1=[A.iX,A.iY,A.iX+A.I,A.iY+A.F],Ce.K=c.K+"-area-preview",Ce.DI=c.K+"-preview",Ce.Z=se.Z;var ce=c.o["preview-state"];ce&&(null!==ZC._n_(ce["alpha-area"])?(re=ce.alpha,ce.alpha=c.o["preview-state"]["alpha-area"]):ce.alpha=Ce.C5,Ce.append(ce),Ce.parse(),null!==ZC._n_(re)?ce.alpha=re:delete ce.alpha),Ce.D=Ae,Ce.paint();var ue=c.mapPointsToPreview(E),pe=ZC.Q.E9(se.Z,c.H.AC),Ze=new ZC.D0(c);Ze.copy(c),Ze.CZ=!0,Ze.L1=!0,Ze.K=c.K+"-line-preview",Ze.DI=c.K+"-preview",Ze.B0=1,ce&&(Ze.append(ce),Ze.parse()),ZC.CS.paint(pe,Ze,ue,null,3)}c.CB&&(c.A.D6=F)}}}),ZC.A1V=ZC.W1.C7({$i:function(e){this.b(e);var i=this;i.AF="bar",i.sMetaType="bar",i.F3=.1,i.D3=0,i.bKeyWidth=!1,i.YK=-1,i.CC=.1,i.CT=.1,i.EZ=0,i.TD=!1,i.LW=[],i.OZ="bg",i.A37=!0,i.Q7=!1},parse:function(){var e=this;if(e.BP=e.NO(),e.C1=e.BP[0],e.B9=e.BP[1],e.BV=e.BP[1],e.A0=e.BP[1],e.AE=e.BP[2],e.NM(),e.b(),"histogram"===e.CW&&(e.F3=e.CC=e.CT=0),e.assign_a([["group-bars","A37","b"],["show-zero","TD","b"],["offset-values","LW"],["bar-space","F3","fp"],["bar-width","D3","fp"],["key-width","bKeyWidth","b"],["bar-max-width","YK","fp"],["bars-space-left","CC","fp"],["bars-space-right","CT","fp"],["bars-overlap","EZ","fp"],["smart-sampling","Q7","b"]]),e.A37||(e.EZ=1),0===e.F3&&0===e.CC&&0===e.CT&&(e.F9=!1),e.B1=e.C.BN(e.BT("k")[0]),e.CM=e.C.BN(e.BT("v")[0]),null!==ZC._n_(e.o.column)){var i=e.o.column.split("/");if(2===i.length){var t=ZC._i_(i[0]),n=ZC._i_(i[1]),a=e.CC;e.CC>=1&&(a=e.CC/e.B1.A9);var l=e.CT;e.CT>=1&&(l=e.CT/e.B1.A9);var o=1-a-l,r=ZC._x_(o/(3*n+1));e.CC=a+r+3*(t-1)*r,e.CT=1-e.CC-2*r}}},QF:function(){var e,i=this;if(i.RK)return i.RK;if(i.o["fast-dimensions"]&&i.A.A6[0].RK)return i.A.A6[0].RK;i.bKeyWidth&&(i.assign_a([["bar-width","D3","fp"]]),i.D3=Math.round((i.B1.CQ?i.B1.F:i.B1.I)*(i.D3/(i.B1.BL-i.B1.B4))));var t,n=i.B1.A9*i.W,a=0;for(i.A.JZ[i.AF]=i.A.JZ[i.AF]||[],e=0;e<i.A.JZ[i.AF].length;e++){var l=i.A.JZ[i.AF][e][0];i.A.A6[l].BM[0]===i.BM[0]&&a++}if(i.LJ)for(a=0,e=0;e<i.A.A6.length;e++)"bar"===i.A.A6[e].sMetaType&&(a=ZC.BQ(a,i.A.A6[e].R.length));if(null===ZC._n_(i.B1.ET)&&(i.B1.ET=0,i.B1.W8={}),i.CB&&null!==ZC._n_(i.B1.W8["stack-"+i.DY]))t=i.B1.W8["stack-"+i.DY];else{for(t=i.B1.ET,e=0;e<i.L;e++)if((i.A.A6[e].AM||"hide"===i.C.getToggleAction())&&i.BM[0]===i.A.A6[e].BM[0]&&i.A.A6[e].AF===i.AF&&(!i.CB||i.A.A6[e].DY!==i.DY)&&!i.A.A6[e].HK){t++;break}i.B1.ET=t,i.B1.W8["stack-"+i.DY]=t}for(var o=!0,r=0,s=[],A=0;A<i.A.A6.length;A++)i.A.A6[A].D3<=1?o=!1:null!==ZC._n_(i.A.A6[A].D3)&&(i.A.A6[A].CB&&-1!==ZC.AV(s,i.A.A6[A].DY)||(s.push(i.A.A6[A].DY),r+=i.A.A6[A].D3));var C=i.CC;C<=1&&(C*=n);var c=i.CT;c<=1&&(c*=n),C=ZC._i_(C),c=ZC._i_(c);var u,p,Z,h,d,f=i.EZ;return o?(u=r,0===i.EZ||a<=1?((p=i.F3)<=1&&(p*=u/a),c=(h=n-u-(p=ZC.BQ(0,p))*(a-1))-(C=h*(d=0===c?1:C/c)/(1+d)),C<1&&(C=c=0,p=n-u,a>1&&(p/=a-1),p<0&&(u=n-C-c-(p=0)*(a-1))),Z=(u=ZC.BQ(u,1*a))/a):a>1&&(p=0,Z=u/a,f<=1&&(f*=Z),c=(h=n-(u=a*(Z-(f=ZC.CY(f,Z)))+f)-p*(a-1))-(C=h*(d=0===c?1:C/c)/(1+d)),C<1&&(u-=1-C))):(u=n-C-c,0===i.EZ||a<=1?((p=i.F3)<=1&&(p*=u/a),c=(h=n-u-(p=ZC.BQ(0,p))*(a-1))-(C=h*(d=0===c?1:C/c)/(1+d)),C<1&&(C=c=0,p=n-u,a>1&&(p/=a-1),p<0&&(u=n-C-c-(p=0)*(a-1))),Z=(u=ZC.BQ(u,1*a))/a):a>1&&(p=0,Z=u/a,f>1&&(f=Z/f),f*=Z=u/(a-a*f+f),c=(h=n-u-p*(a-1))-(C=h*(d=0===c?1:C/c)/(1+d)),C<1&&(u-=1-C))),-1!==i.YK&&Z>i.YK&&!i.E.bw&&(i.D3=i.YK,i.E.bw=!0,i.QF(),i.E.bw=null),i.RK={A9:n,ET:t,CC:C,CT:c,F3:p,D3:Z,EZ:f},{A9:n,ET:t,CC:C,CT:c,F3:p,D3:Z,EZ:f}},paint:function(){var e=this;e.b(),e.KC=e.CO("bl",0);var i=e.F9;e.A2F=!1,e.SB=null;var t=1;e.B1.ED&&(t=e.R.length/(e.B1.E1-e.B1.DD)),0!==e.E7.length||e.HT||e.C.KD||"svg"!==e.H.AC||!(e.B1.A1-e.B1.V>2048||e.B1.ED&&t*(e.B1.A1-e.B1.V)>2048)||(e.A2F=!0,null===ZC._n_(e.o["rect-shortcut"])&&(e.F9=!0)),e.F9||(e.A2F=!1),e.P8(),e.F9=i,e.RefNode=null,e.VR=null}}),ZC.QI=ZC.A1V.C7({$i:function(e){this.b(e),this.AF="vbar"},TH:function(){return new ZC.Z9(this)}}),ZC.QD=ZC.A1V.C7({$i:function(e){this.b(e),this.AF="hbar"},TH:function(){return new ZC.Z2(this)}}),ZC.P5=ZC.W1.C7({$i:function(e,i){this.b(e),this.AF=i||"scatter",this.OZ="markerbg",this.bPoly=!1,this.HQ=.5},TH:function(){return new ZC.A5K(this)},parse:function(){var e=this;e.BP=e.NO(),e.C1=e.BP[0],e.A0=e.BP[1],e.AE=e.BP[1],e.B9=e.BP[2],e.BV=e.BP[2],e.NM(),e.b(),e.assign_a([["alpha-area","HQ","f",0,1]]),e.B1=e.C.BN(e.BT("k")[0]),e.CM=e.C.BN(e.BT("v")[0])},paint:function(){var e,i,t,n=this;if(n.b(),n.KC=n.CO("bl",0),n._oCtxNode=ZC.Q.E9(n.CO("bl",0),n.H.AC),!n.IP||n.C.AJ["3d"]||"fast"!==n.A0Q||0!==n.RS)n.P8(!0);else{var a=null,l=n.B1,o=n.CM;n.XF(!0);var r=new ZC.DW(n.A);for(r.Z=n.CO("bl",1),r.C6=n.CO("bl",0),r.B9=n.BP[3],r.BV=n.BP[3],r.A0=n.BP[2],"bubble"===n.AF||"hbubble"===n.AF?r.AE=n.BP[1]:r.AE=n.BP[2],r.append(n.A2.o),r.parse(),i=0;i<=n.R.length;i++)if(a=n.FP(i)){var s=!1;l.CQ?ZC.DT(a.iX,o.iX+(o.AU?o.BW:o.A5)-1,o.iX+o.I-(o.AU?o.A5:o.BW)+1)&&ZC.DT(a.iY,l.iY+(l.AU?l.BW:l.A5)-1,l.iY+l.F-(l.AU?l.A5:l.BW)+1)&&(s=!0):ZC.DT(a.iX,l.iX+(l.AU?l.BW:l.A5)-1,l.iX+l.I-(l.AU?l.A5:l.BW)+1)&&ZC.DT(a.iY,o.iY+(o.AU?o.A5:o.BW)-1,o.iY+o.F-(o.AU?o.BW:o.A5)+1)&&(s=!0),s&&(a.JB=!0,n.R[i].JB=!0,r.K=a.K+"-marker",r.iX=a.iX,r.iY=a.iY,"circle"!==r.DQ&&r.parse(),"none"!==n.IY&&(n.C.IT[n.L]||n.C.KD)&&(r.o={},r.OG={},n.C.CH["p"+n.L]&&n.C.CH["p"+n.L]["n"+i]?r.OG=n.PH?n.PH.o:{}:"none"!==n.O2&&("plot"===n.O2&&n.C.IT[i]||"graph"===n.O2&&n.C.KD)&&(r.OG=n.PE?n.PE.o:{}),r.B9=n.BP[3],r.BV=n.BP[3],r.A0=n.BP[2],"bubble"===n.AF||"hbubble"===n.AF?r.AE=n.BP[1]:r.AE=n.BP[2],r.append(n.A2.o),r.parse()),r.paint())}}if(n.bPoly){for(e=[],i=0,t=n.R.length;i<t;i++)e.push([n.R[i].iX,n.R[i].iY]);e.length&&e.push(e[0]);var A=new ZC.DW(n);A.copy(n),A.C5=n.HQ,A.CZ=!0,A.L1=!0,A.B0=0,A.AT=0,A.EX=0,A.G6=0,A.Z=n.KC,A.D=e,A.A0S(),A.K=n.K+"-area",A.paint(),n.CZ=!1,ZC.CS.setup(n._oCtxNode,n),ZC.CS.paint(n._oCtxNode,n,e)}}}),ZC.RW=ZC.W1.C7({$i:function(e,i){this.b(e),this.AF=i||"bubble",this.VU=null,this.VJ=null,this.A18=1,this.JM=1,this.A9X="area",this.OZ="markerbg"},TH:function(){return new ZC.A6O(this)},parse:function(){var e=this;e.BP=e.NO(),e.C1=e.BP[0],e.A0=e.BP[2],e.AE=e.BP[1],e.B9=e.BP[2],e.BV=e.BP[2],e.NM(),e.b(),e.assign_a([["min-size","VU","i"],["max-size","VJ","i"],["scaling","A9X"],["sizing-group","A18","i"],["size-factor","JM","f"]]),e.B1=e.C.BN(e.BT("k")[0]),e.CM=e.C.BN(e.BT("v")[0]),null===ZC._n_(e.VU)&&(e.VU=15),null===ZC._n_(e.VJ)&&(e.VJ=.75*Math.min(e.B1.A5,e.B1.BW,e.CM.A5,e.CM.BW),e.VJ=ZC.BQ(25,ZC.CY(50,e.VJ)))},getSize:function(e){var i,t=this,n=null;switch(e=ZC.BQ(e,t.RJ),i=t.WL===t.RJ?e-t.RJ:(e-t.RJ)/(t.WL-t.RJ),t.A9X){case"radius":n=t.VU+t.JM*(t.VJ-t.VU)*i;break;case"area":case"sqrt":n=t.VU+t.JM*(t.VJ-t.VU)*Math.sqrt(i)}return ZC.BQ(t.VU,n)},paint:function(){var e=this;if(e.b(),e.KC=e.CO("bl",0),null!==ZC._n_(e.VJ)){e.WL=-ZC.MAX,e.RJ=ZC.MAX;for(var i=e.A.A6,t=0,n=i.length;t<n;t++)if(i[t].A18===e.A18)for(var a=0,l=i[t].R.length;a<l;a++)e.WL=ZC.BQ(e.WL,ZC._a_(i[t].R[a].SK)),e.RJ=ZC.CY(e.RJ,ZC._a_(i[t].R[a].SK))}e.P8(!0)}}),ZC.VY=ZC.IC.C7({$i:function(e){this.b(e);var i=this;i.AF="pie",i.BM=["scale","scale-v","scale-r"],i.PN=0,i.DG=0,i.TD=!1,i.A7J=!0,i.C2=null,i.OZ="bg"},TH:function(){return new ZC.A8V(this)},parse:function(){var e,i,t=this;null===ZC._n_(t.o["value-box"])&&(t.o["value-box"]={}),"ring"!==t.A.A.o.type&&"ring3d"!==t.A.A.o.type||(t.PN=.35),t.BP=t.NO(),t.C1=t.BP[0],t.A0=t.BP[1],t.AE=t.BP[2],t.BV=t.BP[0],t.B9=t.BP[0],t.NM(),t.b(),t.C2=new ZC.D0(t),t.C.A.B7.load(t.C2.o,["graph.plot.value-box.connector",t.AF+".plot.value-box.connector"]),null!==ZC._n_(e=t.C.o.plot)&&null!==ZC._n_(e["value-box"])&&null!==ZC._n_(i=e["value-box"].connector)&&t.C2.append(i),t.C2.append(t.o["value-box"].connector),t.assign_a([["offset","DR","fp"],["slice","PN","fp"],["show-zero","TD","b"],["detach","A7J","b"],["ref-angle","DG","i"]]),t.DG%=360;for(var n=0,a=t.R.length;n<a;n++)t.R[n]&&(t.R[n].CN=t.PN,t.R[n]&&(t.C.E["plot"+t.L+".visible"]||"hide"===t.C.getToggleAction())&&(null===ZC._n_(t.A.KH[n])&&(t.A.KH[n]=0),t.A.KH[n]+=ZC._f_(t.R[n].AD)))},paint:function(){var e=this;e.b(),e.KC=e.CO("bl",0),e.P8(!0)}}),ZC.TN=ZC.IC.C7({$i:function(e){this.b(e);var i=this;i.AF="nestedpie",i.BM=["scale"],i.TV=0,i.SH=0,i.DG=0,i.C2=null,i.OZ="bg",i.aBandWidths=null},TH:function(){return new ZC.A41(this)},parse:function(){var e,i,t=this;t.BP=t.NO(),t.C1=t.BP[0],t.A0=t.BP[1],t.AE=t.BP[2],t.BV=t.BP[0],t.B9=t.BP[0],t.NM(),t.b(),t.U&&(t.C2=new ZC.D0(t),t.C.A.B7.load(t.C2.o,["graph.plot.value-box.connector",t.AF+".plot.value-box.connector"]),null!==ZC._n_(e=t.C.o.plot)&&null!==ZC._n_(e["value-box"])&&null!==ZC._n_(i=e["value-box"].connector)&&t.C2.append(i),t.C2.append(t.o["value-box"].connector)),t.assign_a([["slice-start","TV","fp"],["offset","TV","fp"],["slice","TV","fp"],["band-space","SH","fp"],["ref-angle","DG","i"],["band-widths","aBandWidths"]]),t.DG%=360;for(var n=0,a=t.R.length;n<a;n++)t.R[n]&&(t.C.E["plot"+t.L+".visible"]||"hide"===t.C.getToggleAction())&&(null===ZC._n_(t.A.KH[n])&&(t.A.KH[n]=0),t.A.KH[n]+=ZC._f_(t.R[n].AD))},paint:function(){var e=this;e.b(),e.KC=e.CO("bl",0),e.P8(!0)}}),ZC.X7=ZC.IC.C7({$i:function(e){this.b(e);var i=this;i.AF="radar",i.SO=3,i.BM=["scale-k","scale-v","scale"],i.HQ=.5,i.CW="line",i.A5T=null,i.X2=!1,i.D=[],i.AG=[]},TH:function(){return new ZC.A6R(this)},parse:function(){var e=this;e.BP=e.NO(),e.C1=e.BP[0],e.B9=e.BP[1],e.A0=e.BP[3],e.AE=e.BP[3],e.NM(),e.b(),e.applyRGBA(),e.assign_a([["active-area","X2","b"],["alpha-area","HQ","f",0,1],["angle-space","A5T","f"]]),e.B1=e.C.BN("scale-k"),e.CM=e.C.BN("scale-v"),"range"===e.CW&&(e.A0Q="normal",e.IP=!1)},paint:function(){var e=this;e.b(),e.B1.X.length===e.X.length&&-1===ZC.AV(e.X,null)||(e.A0Q="normal",e.IP=!1),e.KC=ZC.AK(e.C.K+"-plot-"+e.L+"-bl-0-c"),e.A45=ZC.Q.E9(e.CO("bl",0),e.H.AC),e.Q2=ZC.Q.E9(e.CO("bl",2),e.H.AC),e.P8(!0)}}),ZC.A52=ZC.A1V.C7({$i:function(e){this.b(e);var i=this;i.F3=.2,i.CC=.28,i.CT=.28,i.EZ=0,i.FG=null,i.A2J=[],i.PP=[],i.A9S=!0,i.OZ="bg"},ABT:function(e){var i,t=this;if("goal"===e){if(null!==ZC._n_(i=t.FG.o.tooltip))return i;if(null!==ZC._n_(i=t.FG.o["tooltip-text"]))return{text:i}}return{}},parse:function(){var e,i=this;if(i.BP=i.NO(),i.b(),null!==ZC._n_(i.A2J=i.o.goals))for(var t=0,n=i.A2J.length;t<n;t++)null!==ZC._n_(i.A2J[t])?"string"==typeof i.A2J[t]?i.PP[t]=ZC.AV(i.CM.JI,i.A2J[t]):i.PP[t]=ZC._f_(i.A2J[t]):i.PP[t]=null;i.FG=new ZC.HS(i),i.FG.copy(i),i.FG.append({"background-color":i.BP[3]}),i.FG.o["tooltip-text"]="%node-goal-value",i.H.B7.load(i.FG.o,["("+i.AF+").plot.goal"],!0,!0),null!==ZC._n_(e=i.o.goal)&&i.FG.append(e),i.FG.parse()}}),ZC.T8=ZC.A52.C7({$i:function(e){this.b(e),this.AF="vbullet"},TH:function(){return new ZC.A5I(this)}}),ZC.TA=ZC.A52.C7({$i:function(e){this.b(e),this.AF="hbullet"},TH:function(){return new ZC.A5J(this)}}),ZC.X8=ZC.W1.C7({$i:function(e){this.b(e);var i=this;i.AF="piano",i.CW="alpha",i.A6U="plot-max",i.Q3=.2,i.UO=1,i.OZ="bg"},TH:function(){return new ZC.A72(this)},parse:function(){var e=this;e.BP=e.NO(),e.C1=e.BP[0],e.B9=e.BP[1],e.BV=e.BP[1],e.A0=e.BP[2],e.AE=e.BP[1],e.NM(),e.b(),e.assign_a([["min-ratio","Q3","f",0,1],["max-ratio","UO","f",0,1],["reference","A6U",""]]),e.Q3>=e.UO&&(e.Q3=.2,e.UO=1),e.B1=e.C.BN(e.BT("k")[0]),e.CM=e.C.BN(e.BT("v")[0])},paint:function(){var e=this;e.b(),e.KC=e.CO("bl",0),e.A4B=e.A3K=-ZC.MAX,e.XY=e.WO=ZC.MAX,e.A5W=e.A4D=0;for(var i=0,t=e.A.A6.length;i<t;i++)for(var n=e.A.A6[i],a=0,l=n.R.length;a<l;a++)if(n.R[a]){var o=ZC._f_(n.R[a].AD);n.L===e.L&&(e.A4B=ZC.BQ(e.A4B,o),e.XY=ZC.CY(e.XY,o),e.A5W+=o),e.A3K=ZC.BQ(e.A3K,o),e.WO=ZC.CY(e.WO,o),e.A4D+=o}e.P8()}}),ZC.VL=ZC.W1.C7({$i:function(e){this.b(e);var i=this;i.KX=.1,i.NK=.1,i.LR=0,i.A2D="dynamic",i.OO=[],i.VE=[],i.OZ="bg"},parse:function(){var e,i,t,n,a=this;if(a.BP=a.NO(),a.C1=a.BP[0],a.B9=a.BP[1],a.BV=a.BP[1],a.A0=a.BP[2],a.AE=a.BP[1],a.NM(),a.b(),a.assign_a([["start-width","A2D"],["min-exit","LR","fp"],["space-entry","KX","fp"],["space-exit","NK","fp"],["offset","KX","fp"],["offset","NK","fp"]]),null!==ZC._n_(t=a.o.entry))for(t instanceof Array||(t=[t]),e=0,i=t.length;e<i;e++){var l=new ZC.DW(a);l.o=t[e],l.parse(),a.OO.push(l)}if(null!==ZC._n_(n=a.o.exit))for(n instanceof Array||(n=[n]),e=0,i=n.length;e<i;e++){var o=new ZC.DW(a);o.o=n[e],o.parse(),a.VE.push(o)}a.B1=a.C.BN(a.BT("k")[0]),a.CM=a.C.BN(a.BT("v")[0])},paint:function(){var e=this;e.b(),e.KC=e.CO("bl",0),e.P8()}}),ZC.V3=ZC.VL.C7({$i:function(e){this.b(e),this.AF="vfunnel"},TH:function(){return new ZC.A5O(this)}}),ZC.V4=ZC.VL.C7({$i:function(e){this.b(e),this.AF="hfunnel"},TH:function(){return new ZC.A5N(this)}}),ZC.V9=ZC.A1V.C7({$i:function(e){this.b(e);var i=this;i.AF="stock",i.CW="candlestick",i.MR={size:0},i.OZ="bg"},TH:function(){return new ZC.A6Y(this)},parse:function(){this.b()},paint:function(){var e=this;e.b(),e.paintPreview()},paintPreview:function(){var e=this,i=e.C.BN(e.BT("v")[0]),t=i.B2(i.H4);if(e.C.BA&&e.C.BA.HY&&e.QH){for(var n=e.C.P,a=e.C.BA,l=[],o=[],r=!0,s=0,A=e.R.length;s<A;s++)if(null!==ZC._n_(e.R[s])&&null!==ZC._n_(e.R[s].DN[2])){var C=i.B2(e.R[s].DN[2]);r&&(o.push([e.R[s].iX,t]),r=!1),l.push([e.R[s].iX,C]),o.push([e.R[s].iX,C])}o.length&&o.push([o[o.length-1][0],t]);var c=e.mapPointsToPreview(o),u=e.o.preview||{};if("area"===(u.type||"area")){var p=new ZC.DW(e.A);p.copy(e),p.append({"background-color":e.BV,"alpha-area":.2}),p.append(u),p.parse(),p.CZ=!0,p.L1=!0,p.B0=0,p.AT=0,p.EX=0,p.G6=0,p.C5=ZC._f_(p.o["alpha-area"]),p.D1=[n.iX,n.iY,n.iX+n.I,n.iY+n.F],p.K=e.K+"-area-preview",p.Z=a.Z,p.D=c,p.paint()}var Z=e.mapPointsToPreview(l),h=ZC.Q.E9(a.Z,e.H.AC),d=new ZC.D0(e);d.copy(e),d.append({"line-color":e.BV,"line-width":1}),d.append(u),d.parse(),ZC.CS.paint(h,d,Z,null,3)}}}),ZC.X9=ZC.IC.C7({$i:function(e){this.b(e);var i=this;i.AF="gauge",i.SO=3,i.BM=["scale-r","scale-v","scale"],i.HQ=.5,i.HP=[10,0,0,0,0],i.OZ="bg"},TH:function(){return new ZC.A76(this)},parse:function(){var e,i=this;i.BP=i.NO(),i.C1=i.BP[0],i.B9=i.BP[1],i.A0=i.BP[3],i.AE=i.BP[3],i.NM(),i.b(),i.assign_a([["alpha-area","HQ","f",0,1],["indicator","HP"]]),null!==ZC._n_(e=i.o.csize)&&(i.HP[0]=ZC._i_(e)),i.HP=[ZC._f_(i.HP[0]||"10"),ZC._f_(i.HP[1]||"0"),ZC._f_(i.HP[2]||"0"),ZC._f_(i.HP[3]||"0"),ZC._f_(i.HP[4]||"0")]},paint:function(){var e=this;e.b(),e.KC=e.CO("bl",0),e.P8(!0)}}),ZC.TU=ZC.W1.C7({$i:function(e){this.b(e);var i=this;i.AF="range",i.W=1,i.CW="segmented",i.SO=3,i.HQ=.5},TH:function(){return new ZC.A6W(this)},parse:function(){var e=this;e.BP=e.NO(),e.C1=e.BP[0],e.B9=e.BP[1],e.A0=e.BP[0],e.AE=e.BP[1],e.NM(),e.b(),e.applyRGBA(),e.Z5("alpha-area","HQ","f",0,1),e.B1=e.C.BN(e.BT("k")[0]),e.CM=e.C.BN(e.BT("v")[0])},P8:function(){var e,i,t=this,n=t.OI;t.XF(!1);var a=t.C.P;t.W=1;var l=n?a.F:a.I;t.B1.ED||!t.QC&&5*(t.B1.A1-t.B1.V)>l&&(t.W=ZC._i_(5*(t.B1.A1-t.B1.V)/l));var o=t.B1.ED;if(o&&t.PT[0]===ZC.MAX&&t.PT[1]===-ZC.MAX&&(o=!1),o)for(e=0,i=t.R.length;e<i;e++)t.R[e]&&ZC.DT(t.R[e].BU,t.B1.X[t.B1.V],t.B1.X[t.B1.A1])&&(t.R[e].Z=t.KC,t.R[e].MI="min",t.R[e].paint(),t.R[e].MI="max",t.R[e].paint(),delete t.R[e].E["intersect.index"]);else for(e=t.B1.V;e<=t.B1.A1;e+=t.W)t.R[e]&&(t.R[e].MI="min",t.R[e].paint(),t.R[e].MI="max",t.R[e].paint(),delete t.R[e].E["intersect.index"])},paint:function(){var e=this;e.b(),e.KC=e.CO("bl",0),e.A45=ZC.Q.E9(e.CO("bl",1),e.H.AC),e.Q2=ZC.Q.E9(e.CO("bl",2),e.H.AC),e.P8(),e.D=null,e.D6=null,e.ZL=null,e.S1=null}}),ZC.X6=ZC.VY.C7({$i:function(e){this.b(e);var i=this;i.AF="pie3d",i.NF=-1},parse:function(){var e=this;e.b(),e.assign_a([["thickness","NF","ia"]])},TH:function(){return new ZC.A6V(this)}}),ZC.U4=ZC.QI.C7({$i:function(e){this.b(e),this.AF="vbar3d"},TH:function(){return new ZC.A67(this)},parse:function(){var e=this;e.b(),null===ZC._n_(e.o["border-color"])&&(e.BV=e.BP[0]),null===ZC._n_(e.o["line-color"])&&(e.B9=e.BP[0])},paint:function(){var e=this;e.b(),e.sharedZScale()}}),ZC.VK=ZC.QD.C7({$i:function(e){this.b(e),this.AF="hbar3d"},TH:function(){return new ZC.A6N(this)},parse:function(){var e=this;e.b(),null===ZC._n_(e.o["border-color"])&&(e.BV=e.BP[0]),null===ZC._n_(e.o["line-color"])&&(e.B9=e.BP[0])}}),ZC.UE=ZC.QO.C7({$i:function(e){this.b(e),this.AF="line3d"},TH:function(){return new ZC.A6M(this)},parse:function(){var e=this;e.b(),null===ZC._n_(e.o["border-color"])&&(e.BV=e.BP[1])},paint:function(){var e=this;e.b(),e.sharedZScale()}}),ZC.UB=ZC.QG.C7({$i:function(e){this.b(e),this.AF="area3d"},TH:function(){return new ZC.A6J(this)},parse:function(){var e=this;e.b(),null===ZC._n_(e.o["border-color"])&&(e.BV=e.BP[1])},paint:function(){var e=this;e.b(),e.sharedZScale()}}),ZC.YP=ZC.IC.C7({$i:function(e){this.b(e);var i=this;i.AF="venn",i.AC1=[],i.A91=[],i.BM=["scale"],i.OZ="bg"},TH:function(){return new ZC.A81(this)},parse:function(){var e=this;e.BP=e.NO(),e.C1=e.BP[0],e.BV=e.BP[1],e.A0=e.BP[3],e.AE=e.BP[3],e.NM(),e.b(),e.assign_a([["join","AC1"],["share","A91"]])},paint:function(){var e=this;e.b(),e.KC=e.CO("bl",0),e.P8(!0)}}),ZC.M5=ZC.DS.C7({$i:function(e){this.b(e);var i=this;i.C=e.A.A,i.H=i.C.A,i.L=-1,i.AD=null,i.DN=[],i.CR=null,i.BU=null,i.CJ=null,i.JL=[],i.HY=!1,i.PR=!0,i.N=i,i.JB=!1,i.A1Z=!1},GZ:function(e,i){this.b(this.A,e,i,this.LQ(null,!1),this.A.N2)},UV:function(){return[this.iX,this.iY,{reference:this,center:!0}]},ADH:function(){return[this.iX,this.iY]},getTooltipPosition:function(e,i,t){var n,a,l,o,r=this;switch(r.paint(!0),n=r.iX,a=r.iY,l=r.I,o=r.F,i){case"center":n=r.iX+l/2,a=r.iY+o/2;break;case"top":n=r.iX+l/2,a=r.iY,a=t?a-t:a;break;case"bottom":n=r.iX+l/2,a=r.iY+o,a=t?a+t:a;break;case"left":n=r.iX,a=r.iY+o/2,n=t?n-t:n;break;case"right":n=r.iX+l,a=r.iY+o/2,n=t?n+t:n;break;default:n+=r.BJ,a+=r.BH}return{x:n,y:a}},setNodeData:function(e){var i=this;for(var t in e)e.hasOwnProperty(t)&&(i.A.IP?i.A.R[i.L][t]=e[t]:i.E[t]=e[t])},getNodeData:function(e){return this.A.IP?this.A.R[this.L][e]:this.E[e]},AAO:function(){var e,i,t=this,n=t.C.E,a=t.A.L;null===ZC._n_(n.update)&&(n.update={});var l=n.update,o=""+t.AD,r=t.A.ML();for(ZC.P4(o)&&ZC._f_(o)<0&&"currency"===r.negation&&(o=ZC._a_(ZC._f_(o))),r.utc=t.C.U9,r.timezone=t.C.N6,o=ZC.AP.GF(o,r,t.A),l["plot-"+a+"-value"]=o,l["plot-"+a+"-value-0"]=o,e=0,i=t.DN.length;e<i;e++)l["plot-"+a+"-value-"+(e+1)]=t.DN[e];for(l["plot-value"]=l["plot-value-0"]=o,e=0,i=t.DN.length;e<i;e++)l["plot-value-"+(e+1)]=t.DN[e];for(var s in t.A.KB){var A=null;A="object"==typeof t.A.KB[s]&&t.A.KB[s].length?t.A.KB[s][t.L]:t.A.KB[s],l["plot-"+a+"-data-"+s]=A}},T1:function(){var e,i,t=this,n=t.A.B1,a=t.A.CM,l=[n.V,n.A1,a.V,a.A1];if(t.A.IP&&(t.CR=t.A.R[t.L].CR),t.JL!==l){n.CQ?(null!==t.BU?t.iY=n.B2(t.BU):t.iY=n.I4(t.L),t.A.CB&&"100%"===t.A.KQ?t.A.A.F7[t.L]["%total-"+t.A.DY]>0?t.iX=a.B2(100*t.CR/t.A.A.F7[t.L]["%total-"+t.A.DY]):t.iX=a.B2(100*t.CR):t.iX=a.B2(t.CR+0)):(null!==t.BU?t.iX=n.B2(t.BU):t.A.LJ?"bar"===t.A.sMetaType?t.iX=n.I4(t.A.R3):t.iX=n.I4(t.A.R3)+t.A.RH+t.L*(n.A9-2*t.A.RH)/(t.A.R.length-1)-n.A9/2:t.iX=n.I4(t.L),t.A.CB&&"100%"===t.A.KQ?t.A.A.F7[t.L]["%total-"+t.A.DY]>0?t.iY=a.B2(100*t.CR/t.A.A.F7[t.L]["%total-"+t.A.DY]):t.iY=a.B2(100*t.CR):t.iY=a.B2(t.CR+0)),t.A.IP&&(t.A.R[t.L].iX=t.iX,t.A.R[t.L].iY=t.iY),t.JL=l}t.HY||(0!==t.A.E7.length||-1===ZC.AV(["line","area","vbar","hbar","line3d","area3d","vbar3d","hbar3d"],t.A.AF)||t.A.o.override?ZC.A4.browser.mozilla?(t.copy(t.A),t.E7=t.A.E7,t.DE(),t.parse(!1),t.N=t):t.A.o.override?(t.copy(t.A),t.E7=t.A.E7,t.DE(),t.parse(!1),t.N=t):(e=t.ACG(t.A.E7),null===ZC._n_(i=t.A.A5Y[e])?(t.copy(t.A),t.E7=t.A.E7,t.DE(),t.parse(!1),t.N=t,t.A.A5Y[e]=t):t.N=i):t.N=t.A,t.A.o.override&&(t.N.E.plotidx=t.A.L,t.N.E.nodeidx=t.L,t.N.parse(!1)),t.HY=!0)},A9L:function(){var e,i=this;if(i.o.value instanceof Array&&(i.CJ=i.o.value.join(" "),"string"==typeof i.o.value[0]?-1!==(e=ZC.AV(i.A.B1.IM,i.o.value[0]))?i.BU=e:(i.A.B1.IM.push(i.o.value[0]),i.BU=i.A.B1.IM.length-1):i.BU=parseFloat(i.o.value[0]),"string"==typeof i.o.value[1]?-1!==(e=ZC.AV(i.A.CM.JI,i.o.value[1]))?i.AD=e:(i.A.CM.JI.push(i.o.value[1]),i.AD=i.A.CM.JI.length-1):i.AD=parseFloat(i.o.value[1]),null!==i.BU&&i.A.UY(i.BU,i.L),i.A.YG>0&&i.o.value.length>i.A.YG))for(var t=i.o.value.length-i.A.YG;t<i.o.value.length;t++)i.DN.push(i.o.value[t])},parse:function(e){var i=this;if(i.E.plotidx=i.A.L,i.E.nodeidx=i.L,i.K=i.A.K+"-node-"+i.L,null===ZC._n_(e)&&(e=!0),e){if(i.o.value instanceof Array||i.A.A9S)i.A9L();else if(i.CJ=i.o.value,"string"==typeof i.o.value){var t=ZC.AV(i.A.CM.JI,i.o.value);-1!==t?i.AD=t:(i.A.CM.JI.push(i.o.value),i.AD=i.A.CM.JI.length-1)}else i.AD=i.o.value;null===i.CR&&(i.CR=i.AD)}else i.b()},JE:function(e){return this.KE(e,{})},getFormatValue:function(){return this.AD},KE:function(AR,ER,LM,bUrl){var s=this,G,CJ,BD,i,A7,D4;void 0===LM&&(LM=!1);var oRE,oPPI=s.A.JR,oPS=s.A.A;if(!bUrl&&"javascript:"===AR.substring(0,11))try{var EI=AR.replace("javascript:","").replace("()","");eval(EI)&&(G=0===s.DN.length?s.AD:[s.AD].concat(s.DN),AR=eval(EI).call(s,G,{nodeindex:s.L,plotindex:s.A.L,plotid:s.A.H2,nodeinfo:s.LQ(null,!1),plotinfo:s.A.UZ()})||AR)}catch(e){}var EY,PC;if(AR+="",s.A.A6T){CJ=s.getFormatValue(),null!==ZC._n_(s.A.CM.JI[CJ])&&s.A1Z&&(CJ=s.A.CM.JI[CJ]),AR=AR.replace(/%node-numeric-value/g,s.AD).replace(/%node-value/g,CJ).replace(/%previous-node-value/g,s.A.R[s.L-1]?s.A.R[s.L-1].AD:null).replace(/%next-node-value/g,s.A.R[s.L+1]?s.A.R[s.L+1].AD:null).replace(/%node-index/g,s.L).replace(/%plot-text/g,s.A.AR).replace(/%plot-index/g,s.A.L).replace(/%plot-count/g,oPS.A6.length).replace(/%p/g,s.A.L).replace(/%P/g,oPS.A6.length).replace(/%v/g,CJ).replace(/%V/g,s.AD).replace(/%i/g,s.L).replace(/%n/g,s.L);for(EY in s.A.KB)PC="",PC=s.A.KB[EY]instanceof Array?null!==s.A.KB[EY][s.L]?s.A.KB[EY][s.L]:"":null!==s.A.KB[EY]?s.A.KB[EY]:"",oRE=new RegExp("%data-"+EY,"g"),AR=AR.replace(oRE,PC);return AR}var PJ="",RT="",RD="",VN="",S=s.C.BN(s.A.BT("k")[0]),Y=s.C.BN(s.A.BT("v")[0]);S&&(null!==s.BU?PJ=RT=RD=s.BU:(null!==ZC._n_(S.X[s.L])&&(PJ=RT=RD=S.X[s.L]),null!==ZC._n_(S.BX[s.L])&&(RD=RT=S.BX[s.L]))),null!==ZC._n_(G=s.A.B1.IM[PJ])&&"number"==typeof PJ&&(PJ=G),null!==ZC._n_(G=s.A.B1.IM[RT])&&"number"==typeof RT&&(RT=G),null!==ZC._n_(G=s.A.B1.IM[RD])&&"number"==typeof RD&&(RD=G),VN=null!==ZC._n_(s.A.AR)?s.A.AR:"Series "+(s.A.L+1),s.A.LJ&&s.A.A.A6[s.L]&&(VN=s.A.A.A6[s.L].AR||"Series "+s.L);var TS=(VN+"").split(/\s+/),A60=PJ;S&&(BD=S.ML(),ER&&ER["transform-date"]&&ZC._cp_({"transform-date":!0,"transform-date-format":ER["transform-date-format"]},BD),BD.utc=s.C.U9,BD.timezone=s.C.N6,RD=RT=ZC.AP.GF(PJ,BD,S,!0),null===ZC._n_(S.BX[s.BU])&&null===ZC._n_(S.BX[s.L])||(RT=RD=S.BX[s.BU]||S.BX[s.L]),BD["transform-date"]&&(RD=ZC.AP.GF(RD,BD,S,!0)));var A56=(RT+"").split(/\s+/),A6H=(RD+"").split(/\s+/),A1R=(PJ+"").split(/\s+/);CJ=s.getFormatValue(),s.A.CM&&null!==ZC._n_(s.A.CM.JI[CJ])&&s.A1Z&&(CJ=s.A.CM.JI[CJ]);var OK=ZC.P4(CJ)&&ZC._f_(CJ)<0;if(BD=s.A.ML(),ZC._cp_(ER,BD),OK&&"currency"===BD.negation&&(CJ=ZC._a_(ZC._f_(CJ))),BD.utc=s.C.U9,BD.timezone=s.C.N6,CJ=ZC.AP.GF(CJ,BD,s.A,!(!Y||!Y.FD)&&Y.FD),"%v"===AR&&"%vv"!==AR||"%node-value"===AR)return CJ;if("%t"===AR||"%plot-text"===AR)return VN;var CV=s.CV||[];if(Y&&Y.NA){var YD=Y.ML();null===ZC._n_(YD.decimals)&&(YD.decimals=0);var AAY=Y.CQ?Y.NA(this.iX,!0,"piano"===s.A.AF):Y.NA(this.iY,!0,"piano"===s.A.AF),W9=Y.FO(0,AAY,YD);CV.push(["%scale-value-value",W9],["%vv",W9]),null!==ZC._n_(G=Y.BX[s.L])?CV.push(["%scale-value-label",G],["%vl",G]):CV.push(["%scale-value-label",W9],["%vl",W9])}if(Y&&(-1!==AR.indexOf("%scale-value-text")||-1!==AR.indexOf("%vt"))){-1!==(G=ZC.AV(Y.X,s.AD))&&null!==ZC._n_(Y.BX)&&null!==ZC._n_(Y.BX[G])?CV.push(["%scale-value-text",Y.BX[G]],["%vt",Y.BX[G]]):CV.push(["%scale-value-text",s.AD],["%vt",s.AD]),oRE=-1!==AR.indexOf("%vt(")?new RegExp("(%vt)\\(([0-9]*)\\)"):new RegExp("(%scale-value-text)\\(([0-9]*)\\)");for(var oNode_,YE,A62,oPlot_;D4=oRE.exec(AR);)YE="",""!==(G=D4[2])&&(A62=ZC._i_(G),null!==ZC._n_(oPlot_=s.A.A.A6[A62])&&null!==(oNode_=oPlot_.FP(s.L))&&(YE=oNode_.KE(D4[1]))),AR=AR.replace(D4[0],YE),""!==YE&&CV.push([D4[0],YE])}null!==ZC._n_(s.A.LW)&&null!==ZC._n_(s.A.LW[s.L])&&CV.push(["%offset-values",s.A.LW[s.L]]),s.A.A.A11&&CV.push(["%stack-top",-1!==ZC.AV(s.A.A.A11,s.A.L)?1:0]);for(EY in s.A.KB)PC="","number"==typeof(PC=s.A.KB[EY]instanceof Array?null!==s.A.KB[EY][s.L]?s.A.KB[EY][s.L]:"":null!==s.A.KB[EY]?s.A.KB[EY]:"")&&(PC=ZC.AP.GF(PC,BD,s.A,!(!Y||!Y.FD)&&Y.FD)),CV.push(["%data-"+EY,PC]);for(i=0;i<A56.length;i++)CV.push(["%scale-key-label-"+i,A56[i]],["%kl"+i,A56[i]]);for(i=0;i<A6H.length;i++)CV.push(["%scale-key-text-"+i,A6H[i]],["%kt"+i,A6H[i]]);for(i=0;i<A1R.length;i++)CV.push(["%scale-key-value-"+i,A1R[i]],["%kv"+i,A1R[i]],["%k"+i,A1R[i]]);var p,pLen;for(p=0,pLen=oPS.A6.length;p<pLen;p++)null!==ZC._n_(oPS.A6[p].R[s.L])&&CV.push(["%plot-"+p+"-value",oPS.A6[p].R[s.L].AD]);CV.push(["%scale-key-label",RT],["%scale-key-text",RD],["%scale-key-value",PJ],["%scale-key-value-ts",A60],["%kvts",A60],["%kt",RD],["%kl",RT],["%kv",PJ],["%k",PJ],["%node-value",CJ],["%v",CJ],["%node-numeric-value",s.AD],["%previous-node-value",s.A.R[s.L-1]?s.A.R[s.L-1].AD:null],["%next-node-value",s.A.R[s.L+1]?s.A.R[s.L+1].AD:null],["%V",s.AD],["%node-index",s.L],["%node-x",s.iX],["%node-y",s.iY],["%chart-width",s.H.I],["%chart-height",s.H.F],["%i",s.L],["%n",s.L],["%node-count",s.A.R.length],["%N",s.A.R.length]);var ABJ=oPPI["%plot-sum"],A35=ABJ+"",ABP=oPPI["%plot-average"],A34=ABP+"",A8A=ZC._f_(oPS.F7["%pstack-"+s.L+"-"+s.A.DY+"-sum"]||"0"),A4P=A8A+"",AB6=ZC._f_(A8A/oPS.F7["%pstack-"+s.L+"-"+s.A.DY+"-stack-length"]),A53=String(AB6),A92=String(oPS.F7["%pstack-"+s.L+"-"+s.A.DY+"-stack-length"]),A6Q=0;null!==ZC._n_(oPS.F7)&&null!==ZC._n_(oPS.F7[s.L])&&(A6Q=ZC._f_(oPS.F7[s.L]["%total-"+s.A.DY]||"0"));var A3N=A6Q+"";A35=ZC.AP.GF(A35,BD),A34=ZC.AP.GF(A34,BD),A3N=ZC.AP.GF(A3N,BD),A4P=ZC.AP.GF(A4P,BD),A53=ZC.AP.GF(A53,BD),CV.push(["%node-error-plus",s.E["node-error-plus"]],["%node-error-minus",s.E["node-error-minus"]],["%stack-total",A4P],["%stack-average",A53],["%stack-length",A92],["%total",A3N],["%plot-min-index",oPPI["%plot-min-index"]],["%pmi",oPPI["%plot-min-index"]],["%plot-max-index",oPPI["%plot-max-index"]],["%pxi",oPPI["%plot-max-index"]],["%plot-min-value",oPPI["%plot-min-value"]],["%pmv",oPPI["%plot-min-value"]],["%plot-max-value",oPPI["%plot-max-value"]],["%pxv",oPPI["%plot-max-value"]],["%plot-sum",A35],["%psum",A35],["%plot-average",A34],["%pavg",A34],["%plot-values",oPPI["%plot-values"]],["%pv",oPPI["%plot-values"]]);var A9Q=100*s.AD/oPPI["%plot-sum"],YN=A9Q+"";null!==ZC._n_(BD.decimals)&&(YN=ZC.AP.GF(YN,BD)),CV.push(["%plot-percent",YN],["%pper",YN]);var bNpv=!1;for(i=0,A7=CV.length;i<A7;i++)if("%npv"===CV[i][0]){bNpv=!0;break}if(!bNpv&&null!==ZC._n_(s.A.A.F7)&&null!==ZC._n_(s.A.A.F7[s.L])){var JK=100*s.AD/s.A.A.F7[s.L]["%total-"+s.A.DY],HL=JK+"";null!==ZC._n_(BD.decimals)&&(HL=ZC.AP.GF(HL,BD)),CV.push(["%node-percent-value",HL],["%npv",HL])}for(i=0;i<TS.length;i++)CV.push(["%plot-text-"+i,TS[i]],["%t"+i,TS[i]]);CV.push(["%plot-text",VN],["%t",VN],["%plot-description",s.A.YB],["%plot-index",s.A.L],["%p",s.A.L],["%plot-count",oPS.A6.length],["%P",oPS.A6.length],["%id",s.H.K],["%graphid",s.C.K.replace(s.H.K+"-graph-","")]),-1!==AR.indexOf("%negation")&&(OK&&"currency"===BD.negation?(CV.push(["%negation","-"]),OK=!1):CV.push(["%negation",""])),CV.push(["%node-x",s.iX],["%node-y",s.iY],["%node-width",s.I],["%node-height",s.F],["%node-size",s.E["marker.size"]||1]),zingchart.DEV.SORTTOKENS&&CV.sort(ZC.A1F),oRE=new RegExp("\\(([^(]+?)\\)\\(([0-9]*)\\)(\\(*)([0-9]*)(\\)*)");for(var W3,AW,J;D4=oRE.exec(AR);){W3="";var CP=s.A.L,D8=s.L;""!==(G=D4[2])&&(CP=ZC._i_(G)),""!==(G=D4[4])&&(D8=ZC._i_(G)),null!==(J=oPS.A6[CP])&&null!==(AW=J.FP(D8,3))&&(W3=AW.KE(D4[1],ER)),AR=AR.replace(D4[0],W3)}if(-1!==AR.indexOf("%prop-")){oRE=new RegExp("%prop-([a-zA-Z0-9-]+)");for(var oMap=s.getPMap();D4=oRE.exec(AR);)null!==ZC._n_(oMap[D4[1]])&&null!==ZC._n_(s[oMap[D4[1]]])&&(AR=AR.replace(D4[0],s[oMap[D4[1]]]))}var BY;if(-1!==AR.indexOf("%linecolor"))for(oRE=new RegExp("%linecolor([0-9]*)");D4=oRE.exec(AR);)""===D4[1]?(BY=s.N||s).B9||(BY=s.A):BY=oPS.A6[D4[1]],AR=AR.replace(D4[0],BY?BY.B9||"#000":"#000");if(-1!==AR.indexOf("%backgroundcolor"))for(oRE=new RegExp("%backgroundcolor([0-9]*)");D4=oRE.exec(AR);)""===D4[1]?(BY=s.N||s).B9||(BY=s.A):BY=oPS.A6[D4[1]],AR="markerbg"===s.A.OZ?AR.replace(D4[0],BY&&BY.A2?BY.A2.A0||"#000":"#000"):AR.replace(D4[0],BY?BY.A0||"#000":"#000");if(-1!==AR.indexOf("%color"))for(oRE=new RegExp("%color([0-9]*)");D4=oRE.exec(AR);)""===D4[1]?(BY=s.N||s).B9&&"line"!==s.A.OZ||(BY=s.A):BY=oPS.A6[D4[1]],AR="line"===s.A.OZ?AR.replace(D4[0],BY?BY.B9||"#000":"#000"):"markerbg"===s.A.OZ?AR.replace(D4[0],BY&&BY.A2?BY.A2.A0||"#000":"#000"):AR.replace(D4[0],BY?BY.A0||"#000":"#000");for(AR=ZC.AP.YV(AR,this),i=0,A7=CV.length;i<A7;i++)oRE=new RegExp(CV[i][0],"g"),AR="undefined"==typeof CV[i][1]?AR.replace(oRE,""):LM?AR.replace(oRE,encodeURIComponent(CV[i][1])):AR.replace(oRE,CV[i][1]);return AR=AR.replace(new RegExp("%data-([a-zA-Z0-9]+)","g"),""),OK&&"currency"===BD.negation&&(AR="-"+AR),AR},paint:function(){},paint_:function(){},ABC:function(){return{color:this.N.A0}},XP:function(){return{"border-color":this.N.A0,"background-color":this.N.AE,color:this.N.C1}},A7U:function(){return this.XP()},GU:function(e,i){var t,n,a,l=this;if(i||(i=1),l.A.NZ&&l.A.NZ.length>0&&l.A.NZ.length>i-1&&l.GU(e,i+1),l.AM||"pie"===l.A.AF||"pie3d"===l.A.AF){var o,r=1===i?l.A.U:l.A.NZ[i-2];if(r){if(l.A.A71)(o=l.A.A71).K=l.K+"-value-box-"+i,o.Z=o.C6=l.H.usc()?l.H.mc("top"):l.C.AJ["3d"]||l.H.K5?ZC.AK(l.C.K+"-plots-vb-c"):ZC.AK(l.C.K+"-plot-"+l.A.L+"-vb-c"),o.IJ=l.H.usc()?ZC.AK(l.C.A.K+"-top"):ZC.AK(l.C.A.K+"-text"),o.E.plotidx=l.A.L,o.E.nodeidx=l.L,a=ZC.AP.OQ(o.o,l.A.o),o.KE=function(e){return l.KE(e,a)},o.parse();else{o=new ZC.DS(l.A),r.o.rules||l.A.U.HT||(n="all",null!==ZC._n_(t=r.o.type)&&(n=t),"pie"===l.C.AF||"nestedpie"===l.C.AF||"pie3d"===l.C.AF||"all"!==n||l.A.NZ&&0!==l.A.NZ.length||(l.A.A71=o)),o.append(r.o),l.appendToValueBox&&!e&&(o.parse(),o.append(l.appendToValueBox(o))),o.GJ=l.C.K+"-value-box "+l.C.K+"-plot-"+l.A.L+"-value-box zc-value-box",o.K=l.K+"-value-box-"+i,o.Z=o.C6=l.H.usc()?l.H.mc("top"):l.C.AJ["3d"]||l.H.K5?ZC.AK(l.C.K+"-plots-vb-c"):ZC.AK(l.C.K+"-plot-"+l.A.L+"-vb-c"),o.IJ=l.H.usc()?ZC.AK(l.C.A.K+"-top"):ZC.AK(l.C.A.K+"-text"),a=ZC.AP.OQ(o.o,l.A.o),o.KE=function(e){return l.KE(e,a)};var s=l.ABC(o);if(null!==ZC._n_(t=s.color)&&(o.C1=t),null!==ZC._n_(t=s["background-color"])&&(o.A0=o.AE=t),o.E.plotidx=l.A.L,o.E.nodeidx=l.L,l.A.U.HT&&(l.A.U.GZ(l.A.U,o,null,l.LQ(null,!1)),o.parse()),o.parse(),o.JE=function(e){return l.JE(e)},o.DE()&&o.parse(),!l.A.YI){var A=new ZC.DS(l.A);A.copy(o),l.A.YI=A}if(n="all",null!==ZC._n_(t=r.o.type)&&(n=t),o.AM){o.AM=!1;var C=l.A.o["value-box"].text||"";if("values("===n.substring(0,7)){var c=n.substring(7,n.length).replace(")","").split(",");-1!==ZC.AV(c,l.AD)&&(o.AM=!0)}else{var u=n.split(","),p={min:"%plot-min-value",max:"%plot-max-value",first:"%plot-min-index",last:"%plot-max-index"};for(var Z in p)-1!==ZC.AV(u,Z)&&(("first"!==Z&&"last"!==Z||l.L!==l.A.JR[p[Z]])&&("min"!==Z&&"max"!==Z||l.AD!==l.A.JR[p[Z]])||("object"==typeof C&&null!==ZC._n_(C[Z])&&(o.o.text=C[Z],o.parse()),o.AM=!0));-1!==ZC.AV(u,"all")&&(o.AM=!0)}}}if(l.C.E["plot"+l.A.L+".visible"]||(o.E["css-display"]="none"),e)return o;if(o.AM&&null!==ZC._n_(o.AR)&&""!==o.AR){var h=l.ACC(o);o.E.positioninfo=h,o.iX=h[0],o.iY=h[1];var d={};if(-1!==o.iX&&-1!==o.iY){var f=!1;if(null!==ZC._n_(o.o.overlap)&&!ZC._b_(o.o.overlap)){d={x:o.iX,y:o.iY,width:o.I,height:o.F};for(var _=0,g=l.A.A.YH.length;_<g;_++)if(ZC.AO.XI(d,l.A.A.YH[_])){f=!0;break}}f||(l.C.E["plot"+l.A.L+".visible"]||(o.E["css-display"]="none"),o.E.lbltype="vb"+l.C.L,o.paint(),o.EL(),l.A.A.YH.push(d),!o.K5&&ZC.AK(l.H.K+"-map")&&l.A.A.HN.push(ZC.AP.O1(l.C.K,o)))}}return o}}},setupValueBoxWH:function(e){if(null!==ZC._n_(e.o.width)){var i=ZC.IG(e.o.width);i<=1&&(i=this.I*i),e.I=i}if(null!==ZC._n_(e.o.height)){var t=ZC.IG(e.o.height);t<=1&&(t=this.I*t),e.F=t}return e},ACC:function(e){var i,t=this,n=t.C.BN(t.A.BT("v")[0]),a=t.AD>=n.L7&&!n.AU||t.AD<n.L7&&n.AU?-1:1,l="auto";if(null!==ZC._n_(i=e.o.placement)&&(l=i),"auto"===l){var o=null!==ZC._n_(t.A.R[t.L-1])?t.A.R[t.L-1].AD:t.AD,r=null!==ZC._n_(t.A.R[t.L+1])?t.A.R[t.L+1].AD:t.AD;o>=t.AD&&t.AD<=r?l="bottom":o<=t.AD&&t.AD>=r?l="top":o>=t.AD&&t.AD>=r?l=o/t.AD>t.AD/r?"bottom":"top":o<=t.AD&&t.AD<=r&&(l=t.AD/o>r/t.AD?"top":"bottom")}var s=e.I,A=e.F,C=t.iX-s/2,c=t.iY-A/2;switch(l){case"top":c-=a*(A/2+4);break;case"bottom":c+=a*(A/2+4);break;case"left":C-=s/2+4;break;case"right":C+=s/2+4}return t.C.AJ["3d"]||(C=ZC.BQ(t.C.P.iX-s/2,C),C=ZC.CY(t.C.P.iX+t.C.P.I-s/2,C),c=ZC.BQ(t.C.P.iY-A,c),c=ZC.CY(t.C.P.iY+t.C.P.F,c)),null!==ZC._n_(e.o.x)&&(C=e.iX),null!==ZC._n_(e.o.y)&&(c=e.iY),[ZC._i_(C),ZC._i_(c)]},P2:function(e,i){var t,n,a,l,o,r=this,s=["bubble","hbubble","scatter","hscatter"];if("undefined"==typeof r.A.bBS&&(r.A.bBS=-1===ZC.AV(s,r.A.AF)),null!==ZC._n_(r.A.o["markers-on-top"])&&(r.A.bBS=ZC._b_(r.A.o["markers-on-top"])),(!r.C.O7||!r.A.bBS)&&(null===ZC._n_(e)&&(e=!1),null===ZC._n_(i)&&(i=!1),ZC.DT(r.iX,r.C.P.iX-2,r.C.P.iX+r.C.P.I+2)&&ZC.DT(r.iY,r.C.P.iY-2,r.C.P.iY+r.C.P.F+2))){var A=r.C.K+"-node-area "+r.C.K+"-plotset-plot-"+r.A.L+"-node-area zc-node-area";if(-1===ZC.AV(r.H.KM,"skip_segment_tracking")&&r.A.FW){if(r.A.XU&&!zingchart.DEV.SKIPTRACKERS){var C=r.getNodeData("points");-1!==ZC.AV(r.H.KM,"use_fast_mode")&&-1!==ZC.AV(["line","area"],r.A.AF)&&void 0===C&&r.paint(!0),""!==(a="undefined"==typeof r.E.polypoints?ZC.AO.PM(ZC.AO.YW(C,ZC.BQ(6,r.A.B0/2)),4):ZC.AO.PM(C,4))&&r.A.A.HN.push(ZC.Q.GC("poly",r.A.E8,r.N.IR)+'class="'+A+'" id="'+r.K+'" coords="'+a+'" />')}if(("area"===r.A.AF||"area3d"===r.A.AF||"radar"===r.A.AF&&("area"===r.A.CW||"range"===r.A.CW))&&r.A.X2){var c=r.getNodeData("pointsarea");""!==(a=ZC.AO.PM(c,4))&&r.A.A.HN.push(ZC.Q.GC("poly",r.A.E8,r.A.IR)+'class="'+A+'" id="'+r.K+'--area" coords="'+a+'" />')}}if(r.A.U||!r.A.IP||!r.A.A2.o||"none"!==r.A.A2.o.type&&(null===ZC._n_(r.A.A2.o.visible)||ZC._b_(r.A.A2.o.visible))){if(i||r.A.R2){if(r.A.HA)l=r.A.HA,"svg"!==r.H.AC&&(e?(o=new ZC.CF(r.C,r.iX-ZC.AN.E3,r.iY-ZC.AN.E2,r.A.E["z-start"]||0),l.iX=ZC._x_(o.EB[0]),l.iY=ZC._x_(o.EB[1]),r.E["3dxy"]=[l.iX,l.iY]):(l.iX=ZC._x_(r.iX),l.iY=ZC._x_(r.iY)),l.E.plotidx=r.A.L,l.E.nodeidx=r.L,l.K=r.K+"-marker",l.parse(!0));else{if(r.IP?r.A._oMarker?l=r.A._oMarker:r.A._oMarker=l=new ZC.DW(r.A):l=new ZC.DW(r.A),l.K=r.K+"-marker",l.E["p-width"]=r.A.B1.A9,l.E["p-height"]=r.A.CM.A9,r.A.bBS)l.Z=r.A.CO("fl",0),l.C6=r.A.CO("fl",0);else if(l.Z=r.A.CO("bl",1),l.C6=r.A.CO("bl",0),Object&&Object.keys&&Object.keys(r.C.CH).length>0){var u=r.C.CH["p"+r.A.L];"none"!==r.A.IY&&u&&u["n"+r.L]&&(l.Z=r.A.CO("bl",2))}e?(o=new ZC.CF(r.C,r.iX-ZC.AN.E3,r.iY-ZC.AN.E2,r.A.E["z-start"]||0),l.iX=ZC._x_(o.EB[0]),l.iY=ZC._x_(o.EB[1]),r.E["3dxy"]=[l.iX,l.iY]):(l.iX=ZC._x_(r.iX),l.iY=ZC._x_(r.iY)),l.B9=r.A.BP[3],l.BV=r.A.BP[3],l.A0=r.A.BP[2],"bubble"===r.A.AF||"hbubble"===r.A.AF?l.AE=r.A.BP[1]:l.AE=r.A.BP[2],l.append(r.A.A2.o),null!==ZC._n_(r.E["marker.size"])&&(l.AI=r.E["marker.size"]),l.E.plotidx=r.A.L,l.E.nodeidx=r.L,"none"!==r.A.IY&&(r.C.IT[r.A.L]||r.C.KD)&&(r.C.CH["p"+r.A.L]&&r.C.CH["p"+r.A.L]["n"+r.L]?l.OG=r.A.PH?r.A.PH.o:{}:"none"!==r.A.O2&&("plot"===r.A.O2&&r.C.IT[r.A.L]||"graph"===r.A.O2&&r.C.KD)&&(l.OG=r.A.PE?r.A.PE.o:{})),null!==ZC._n_(t=r.A.o.marker)&&null!==ZC._n_(t.styles)&&null!==ZC._n_(n=t.styles[r.L])&&("string"==typeof n?l.append({"background-color":ZC.AP.QT(n,20),"line-color":ZC.AP.JH(n,20),"border-color":ZC.AP.JH(n,20)}):l.append(n)),l.parse(),l.JE=function(e){return r.JE(e)},l.DE()&&l.parse()}if(r.E["marker.size"]=ZC.BQ(2.02,r.E["marker.size"]||l.AI),l.DI=A,!(e||ZC.DT(l.iX,r.C.P.iX-2,r.C.P.iX+r.C.P.I+2)&&ZC.DT(l.iY,r.C.P.iY-2,r.C.P.iY+r.C.P.F+2)))return;if(l.HT&&(r.A.YJ=!1,l.GZ(l,l,null,r.LQ(null,!1)),l.parse()),r.N3=l,l.AM&&"none"!==l.AF){var p=function(){if(r.A.bBS||r.MW(ZC.Q.E9(r.A.CO("bl",0),r.H.AC)),r.E["marker.type"]=l.DQ,r.A.FW&&-1===ZC.AV(r.H.KM,"skip_marker_tracking")&&!zingchart.DEV.SKIPTRACKERS){var e=r.E["3dxy"]?r.E["3dxy"][0]:r.iX,i=r.E["3dxy"]?r.E["3dxy"][1]:r.iY,t=parseInt(e+l.BJ+ZC.MAPTX,10),n=parseInt(i+l.BH+ZC.MAPTX,10),a=parseInt(ZC.BQ(ZC.mobile?6:3,r.E["marker.size"]+1)*(ZC.mobile?1.25:1.05),10),o=!0;"undefined"!=typeof r.A.aLastMarkerXY&&Math.sqrt((t-r.A.aLastMarkerXY[0])*(t-r.A.aLastMarkerXY[0])+(n-r.A.aLastMarkerXY[1])*(n-r.A.aLastMarkerXY[1]))<a&&(o=!1),r.A.aLastMarkerXY=[t,n],o&&(-1!==ZC.AV(["pie","square","rect","rectangle"],l.DQ)?r.A.A.HN.push(ZC.Q.GC("poly",r.A.E8,r.A.IR)+'class="'+A+'" id="'+r.K+'--marker" coords="'+l.FB()+'" />'):r.A.A.HN.push(ZC.Q.GC("circle",r.A.E8,r.A.IR)+'class="'+A+'" id="'+r.K+'--marker" coords="'+t+","+n+","+a+'" />'))}if(r.A.U&&(r.A.E.vboxid=r.K,r.GU()),!r.A.bBS&&r.C.BA&&r.C.BA.HY&&r.A.QH&&r.C.BA.AM){var s=r.C.P,C=r.C.BA,c=C.AQ,u=r.A.HA||l,p=new ZC.DW(r.A);p.copy(u);var Z=(r.iX-s.iX)/s.I,h=(r.iY-s.iY)/s.F;p.iX=c.iX+c.AT+Z*(c.I-2*c.AT),p.iY=c.iY+c.AT+h*(c.F-2*c.AT),p.K=r.K+"-marker-preview",p.DI=r.A.K+"-preview",p.AI=ZC.BQ(2.02,ZC.CY(Z,h)*u.AI),p.Z=p.C6=C.Z,p.parse(),p.paint()}},Z=!1;if((!r.A.bBS||"radar"===r.A.AF&&"dots"===r.A.CW)&&(Z=!0),r.A.GA&&Z&&!r.C.HF){var h=l,d={},f=l.C5,_=l.AI,g=l.iX,v=l.iY;h.iX=g,h.iY=v,d.x=g,d.y=v;var b=r.A.L6,m=r.C.P;h.C5=0,d.alpha=f,3===b?(h.AI=2,d.size=_):8===b?(h.iX=g-m.iX,d.x=g):9===b?(h.iX=g+m.iX,d.x=g):10===b?(h.iY=v-m.iY,d.y=v):11===b&&(h.iY=v+m.iY,d.y=v);var B;for(B in r.A.FT)h[ZC.EA.GK[ZC.EC(B)]]=r.A.FT[B],d[ZC.EC(B)]=r.N[ZC.EA.GK[ZC.EC(B)]];if(null===ZC._n_(r.C.EM)&&(r.C.EM={}),null!==ZC._n_(r.C.EM[r.A.L+"-"+r.L]))for(B in r.C.EM[r.A.L+"-"+r.L])h[ZC.EA.GK[ZC.EC(B)]]=r.C.EM[r.A.L+"-"+r.L][B];r.C.EM[r.A.L+"-"+r.L]={},ZC._cp_(d,r.C.EM[r.A.L+"-"+r.L]);var E=new ZC.EA(h,d,r.A.JD,r.A.L2,ZC.EA.RC[r.A.L5],function(){p()});E.AW=r,E.O6=function(){r.MW(ZC.Q.E9(r.A.CO("bl",0),r.H.AC))},r.LL(E)}else{var K="circle"===l.DQ?"circle":"path";if(r.A.HG){var F=function(i,t){var n=i.cloneNode(!1),a=r.iX,o=r.iY;if(e){var s=new ZC.CF(r.C,a-ZC.AN.E3,o-ZC.AN.E2,r.A.E["z-start"]||0);a=ZC._x_(s.EB[0]),o=ZC._x_(s.EB[1]),r.E["3dxy"]=[a,o]}n.setAttribute("transform","translate("+ZC._i_(a-l.iX)+","+ZC._i_(o-l.iY)+") "+(n.getAttribute("transform")||"")),n.setAttribute("id",t),"bubble"!==r.A.AF&&"hbubble"!==r.A.AF||n.setAttribute("r",r.E["marker.size"]),i.parentNode.appendChild(n)};l.M4&&F(r.A.R9,r.K+"-marker-sh-"+K),F(r.A.HG,r.K+"-marker-"+K),l.D9&&F(r.A.Q5,r.K+"-marker-imgfill")}else{l.paint();var D=l.A0!==l.AE;if(!r.C.IT[r.A.L]&&r.A.YJ&&!D)if("svg"===r.H.AC){if(-1===ZC.AV(["pie","square","rect","rectangle","cross","plus","custom"],l.DQ))if(r.A.HA=l,zingchart.DEV.DOMFRAGMENTS&&document.querySelector){for(var X in r.H.FY)r.A.HG||(r.A.HG=r.H.FY[X].querySelector("#"+r.K+"-marker-"+K)),l.M4&&!r.A.R9&&(r.A.R9=r.H.FY[X].querySelector("#"+r.K+"-marker-sh-"+K)),l.D9&&!r.A.Q5&&(r.A.Q5=r.H.FY[X].querySelector("#"+r.K+"-marker-imgfill")||r.H.FY[X].querySelector("#"+r.K+"-marker-path-imgfill"));r.A.HG||(r.A.HG=ZC.AK(r.K+"-marker-"+K),l.M4&&(r.A.R9=ZC.AK(r.K+"-marker-sh-"+K)),l.D9&&(r.A.Q5=ZC.AK(r.K+"-marker-imgfill")))}else r.A.HG=ZC.AK(r.K+"-marker-"+K),l.M4&&(r.A.R9=ZC.AK(r.K+"-marker-sh-"+K)),l.D9&&(r.A.Q5=ZC.AK(r.K+"-marker-imgfill")||ZC.AK(r.K+"-marker-path-imgfill"))}else"bubble"!==r.A.AF&&"hbubble"!==r.A.AF&&(e||(r.A.HA=l))}"svg"===r.H.AC&&r.A.applyJsRuleSvg(r.A.A2,r.K+"-marker-"+K,r.LQ()),p()}}else r.A.U&&r.GU()}else r.A.U&&r.GU()}}},LL:function(e,i){var t,n=this,a=n.C.LT,l=a.PA,o=n.A.TM;switch(o){default:i&&a.add(i),a.add(e);break;case 1:case 2:case 3:if(i){var r="all";if(1===o?r="plots-group-"+n.L+"-area":2===o&&(r="nodes-group-"+n.A.L+"-area"),null===ZC._n_(l[r])){var s=new ZC.A24(r);a.A9W(s,i.X3)}l[r].add(i)}if(t="all",1===o?t="plots-group-"+n.L:2===o&&(t="nodes-group-"+n.A.L),null===ZC._n_(l[t])){var A=new ZC.A24(t);a.A9W(A,e.X3)}l[t].add(e)}},TR:function(e){var i=this;i.A.IP&&i.A.bXY&&(i.T1(),e&&("scatter"!==i.A.AF&&"hscatter"!==i.A.AF&&"bubble"!==i.A.AF&&"hbubble"!==i.A.AF||i.paint(!0)));var t=i.A.BP;i.M2({layer:e,type:"shape",id:"marker",marker:!0,initcb:function(){this.DQ=i.E["marker.type"],this.iX=i.iX,this.iY=i.iY,"bubble"===i.A.AF||"hbubble"===i.A.AF?(this.AE=t[3],this.A0=t[2]):(this.B9=t[3],this.BV=t[3],this.A0=t[2],this.AE=t[1]),this.AI=i.E["marker.size"]}})},A1C:function(e){var i=this;i.M2({layer:e,type:"line",id:"line",initcb:function(){this.B9=i.A.BP[3]}})},M2:function(e){if(!ZC.move){var i,t,n,a,l,o,r=this,s=e.layer||"hover",A=e.id||"",C=!1;switch(r.GG=null,null!==ZC._n_(i=e.marker)&&(C=ZC._b_(i)),s){case"hover":null!==ZC._n_(r.C.CH["p"+r.A.L])&&null!==ZC._n_(r.C.CH["p"+r.A.L]["n"+r.L])||(n=C?r.A.G4:r.A.IB,a="hover");break;case"highlight":n=C?r.A.UU:r.A.S2,a="hover"}if(null!==ZC._n_(e.state)&&(n=e.state),n&&r.C.E["plot"+r.A.L+".visible"]&&n.AM){switch(e.type){case"box":(o=new ZC.HS(r.A)).PR=!0;break;case"line":o=new ZC.DW(r.A),l=ZC.Q.E9(r.C.K+"-"+a+"-c",r.H.AC),o.CZ=!1;break;case"shape":o=new ZC.DW(r.A);break;case"area":o=new ZC.DW(r.A),l=ZC.Q.E9(r.C.K+"-"+a+"-c",r.H.AC)}if(C&&(o.E["p-width"]=r.A.B1.A9,o.E["p-height"]=r.A.CM.A9),zingchart.DEV.PLOTSHLAYER&&"hover"===a?o.Z=o.C6=ZC.AK(r.C.K+"-plots-hover-c"):o.Z=o.C6=ZC.AK(r.C.K+"-"+a+"-c"),o.K=r.K+"-"+(""!==A?A+"-":"")+s,o.E.plotidx=r.A.L,o.E.nodeidx=r.L,"hover"!==s&&(o.A1T=!0),e.initcb&&e.initcb.call(o),o.append(n.o),e.parsecb&&e.parsecb.call(o),"hover"===s&&null!==ZC._n_(i=r.A.o)&&null!==ZC._n_(i.styles)&&null!==ZC._n_(t=i.styles[r.L])&&("string"==typeof t?o.append({"background-color":t,"line-color":t,"border-color":t}):o.append(t)),null!==ZC._n_(i=r.A.o[s+"-state"])&&null!==ZC._n_(i.styles)&&null!==ZC._n_(t=i.styles[r.L])&&("string"==typeof t?o.append({"background-color":t,"line-color":t,"border-color":t}):o.append(t)),r.A.HT&&r.GZ(o,s),"hover"===s&&r.A.A2&&r.A.A2.HT&&(r.A.A2.GZ(r.A.A2,o,null,r.LQ(null,!1)),o.parse()),o.parse(),o.JE=function(e){return r.JE(e)},o.DE()&&o.parse(),o.AM){switch(e.setupcb&&e.setupcb.call(o),e.type){case"box":case"shape":o.locate(2),o.paint();break;case"line":ZC.CS.setup(l,o),"plot"===r.A.A3G?ZC.CS.paint(l,o,r.A.V1):ZC.CS.paint(l,o,r.getNodeData("points"));break;case"area":"spline"!==r.A.CW&&(null!==ZC._n_(i=n.o["alpha-area"])&&(o.C5=ZC._f_(i)),ZC.CS.setup(l,o),o.paint())}r.GG=o}}}},MW:function(){},setup:function(){},A3H:function(){},LN:function(){var e=this;ZC.Q.EU([e.K+"-hover-gradient",e.K+"-marker-hover-gradient",e.H.K+"-tooltip-text-gradient",e.H.K+"-tooltip-text-sh-gradient"])},LQ:function(e,i){var t=this;void 0===i&&(i=!0);var n=!1;"none"!==t.A.IY&&t.C.CH&&t.C.CH["p"+t.A.L]&&t.C.CH["p"+t.A.L]["n"+t.L]&&(n=!0);var a={id:t.C.A.K,graphid:t.C.K,graphindex:t.C.L,plotid:t.A.H2,plotindex:t.A.L,nodeindex:t.L,key:null===t.BU?t.L:t.BU,scaleval:t.A.B1?t.A.B1.X[null===t.BU?t.L:t.BU]:null,scaletext:t.A.B1?t.A.B1.FO(t.L,null===t.BU?null:t.A):null,value:t.AD,text:i?t.KE(t.A.JV):t.A.JV,ev:e?ZC.A4.C0(e):null,x:t.iX,y:t.iY,width:t.I,height:t.F,size:t.E["marker.size"]||1,selected:n};for(var l in t.A.KB)t.A.KB[l]instanceof Array?null!==ZC._n_(t.A.KB[l][t.L])&&(a["data-"+l]=t.A.KB[l][t.L]):a["data-"+l]=t.A.KB[l];return a},WX:function(e,i){ZC.AP.BZ("node_"+i,this.H,this.LQ(e))}}),ZC.A2T=ZC.M5.C7({setup:function(){this.T1()},ABC:function(){return{color:this.N.B9}},XP:function(){return{"background-color":this.N.B9,"border-color":this.N.B9,color:this.N.C1}},getTooltipPosition:function(e,i){return this.b(e,i,this.N3.AI)},paint:function(e){function i(){!t.C.O7&&ZC.DT(t.iX,l.iX-1,l.iX+l.I+1)&&ZC.DT(t.iY,l.iY-1,l.iY+l.F+1)&&(t.P2(),t.MW(ZC.Q.E9(t.A.CO("bl",1),t.H.AC)),t.A.U&&t.A.U.AM&&t.A.E.vboxid!==t.K&&t.GU())}var t=this;void 0===e&&(e=!1),t.b();var n=t.A.OI,a=t.A.Q2,l=t.A.B1,o=t.A.R;if(t.setup(),!t.A.IP||t.C.AJ["3d"]||t.A.FW){t.N.CZ=t.CZ=!1,t.N.C6=t.A.CO("bl",0);var r=[],s=t.A.CW;(t.C.O7||t.A.TY)&&"spline"===t.A.CW&&(s="segmented");var A="undefined"!=typeof t.A.G7?t.A.G7:t.A.W,C="undefined"!=typeof t.A.HD?t.A.HD:t.A.W,c=!0,u=!0;(null===ZC._n_(o[t.L-A])||"log"!==l.CA&&!l.ED&&t.L<=l.V)&&(c=!1);var p=t.A.LJ?t.A.R.length:l.A1;(null===ZC._n_(o[t.L+C])||"log"!==l.CA&&!l.ED&&t.L>=p)&&(u=!1);var Z,h,d,f;switch(s){default:c&&(t.A.FP(t.L-A,0).setup(),t.A.UL&&(Z=ZC.AO.JO(t.A.R[t.L-A].iX,t.A.R[t.L-A].iY,t.A.R[t.L].iX,t.A.R[t.L].iY),r.push(Z))),r.push([t.iX,t.iY]),u&&(t.A.FP(t.L+C,2).setup(),Z=t.A.UL?ZC.AO.JO(t.A.R[t.L].iX,t.A.R[t.L].iY,t.A.R[t.L+C].iX,t.A.R[t.L+C].iY,t.N.C5):[o[t.L+C].iX,o[t.L+C].iY],r.push(Z));break;case"spline":if(t.A.D&&(r=t.A.D),t.A.D=[],o[t.L+1]){var _=[],g=[];for(h=-1;h<3;h++)o[t.L+h]?(t.A.FP(t.L+h,2).setup(),n?(_.push(o[t.L+h].iX),g.push(o[t.L+h].iY)):(_.push(o[t.L+h].iY),g.push(o[t.L+h].iX))):0===_.length?n?(g.push(t.iY),_.push(t.iX)):(g.push(t.iX),_.push(t.iY)):(_.push(_[_.length-1]),g.push(g[g.length-1]));var v=ZC._a_(g[2]-g[1]);v=Math.min(v,Math.max(t.C.I,t.C.F));var b=ZC.AO.XZ(t.A.Q8,_,v);if(t.A.UL){for(h=0;h<ZC._i_(b.length/2)+(1===t.N.C5?1:0);h++)b[h]&&(n?r.push([b[h][1],t.iY+(l.AU?1:-1)*b[h][0]*v]):r.push([t.iX+(l.AU?-1:1)*b[h][0]*v,b[h][1]]));for(h=ZC._i_(b.length/2)-1,d=b.length;h<d;h++)b[h]&&(n?t.A.D.push([b[h][1],t.iY+(l.AU?1:-1)*b[h][0]*v]):t.A.D.push([t.iX+(l.AU?-1:1)*b[h][0]*v,b[h][1]]))}else for(h=0;h<ZC._i_(b.length);h++)n?r.push([b[h][1],t.iY+(l.AU?1:-1)*b[h][0]*v]):r.push([t.iX+(l.AU?-1:1)*b[h][0]*v,b[h][1]])}break;case"stepped":if(c)switch(t.A.FP(t.L-A,0).setup(),Z=ZC.AO.JO(t.A.R[t.L-A].iX,t.A.R[t.L-A].iY,t.A.R[t.L].iX,t.A.R[t.L].iY),t.A.SI){default:n?r.push([o[t.L-A].iX,Z[1]],[t.iX,Z[1]]):r.push([Z[0],o[t.L-A].iY],[Z[0],t.iY]);break;case"before":r.push([t.A.R[t.L-A].iX,o[t.L-A].iY],[t.A.R[t.L-A].iX,t.iY]);break;case"after":}if(r.push([t.iX,t.iY]),u)switch(t.A.FP(t.L+C,0).setup(),Z=ZC.AO.JO(t.A.R[t.L+A].iX,t.A.R[t.L+A].iY,t.A.R[t.L].iX,t.A.R[t.L].iY),t.A.SI){default:r.push(n?[t.iX,Z[1]]:[Z[0],t.iY]);break;case"before":break;case"after":r.push([t.A.R[t.L+A].iX,t.iY],[t.A.R[t.L+A].iX,o[t.L+C].iY])}break;case"jumped":c?(t.A.FP(t.L-A,0).setup(),Z=ZC.AO.JO(t.A.R[t.L-A].iX,t.A.R[t.L-A].iY,t.A.R[t.L].iX,t.A.R[t.L].iY),r.push(n?[t.iX,Z[1]]:[Z[0],t.iY])):r.push(n?[t.iX,t.iY-l.A9/2]:[t.iX-l.A9/2,t.iY]),r.push([t.iX,t.iY]),u?(t.A.FP(t.L+C,0).setup(),Z=ZC.AO.JO(t.A.R[t.L+A].iX,t.A.R[t.L+A].iY,t.A.R[t.L].iX,t.A.R[t.L].iY),r.push(n?[t.iX,Z[1]]:[Z[0],t.iY])):r.push(n?[t.iX,t.iY+l.A9/2]:[t.iX+l.A9/2,t.iY])}if(t.setNodeData({points:r}),"ready"!==t.C.M9&&(t.A.V1=t.A.V1.concat(r)),!e&&!t.C.AJ["3d"]){var m=t.N=t.A.I8(t,t.N),B=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area";if(m.DI=B,m.K=t.K,t.A.HT&&t.GZ(m),ZC.CS.setup(a,m),t.paintPreview(m,r),t.A.GA&&!t.C.HF){var E=new ZC.DW(t),K={};E.copy(m),E.K=t.K,E.Z=t.A.CO("bl",1),E.C6=t.A.CO("bl",0),E.D=r,K.points=r;var F=[],D=t.A.L6,X=t.C.P;for(E.C5=0,K.alpha=m.C5,h=0;h<r.length;h++)2===D?F[h]=[r[h][0],X.iY+X.F/2]:3===D?F[h]=[r[h][0],X.iY-5]:4===D?F[h]=[r[h][0],X.iY+X.F+5]:5===D?F[h]=[X.iX-5,r[h][1]]:6===D?F[h]=[X.iX+X.I+5,r[h][1]]:7===D?F[h]=[X.iX+X.I/2,r[h][1]]:8===D?F[h]=[r[h][0]-X.I,r[h][1]]:9===D?F[h]=[r[h][0]+X.I,r[h][1]]:10===D?F[h]=[r[h][0],r[h][1]-X.F]:11===D?F[h]=[r[h][0],r[h][1]+X.F]:12===D?F[h]=[(r[0][0]+r[r.length-1][0])/2,r[0][1]]:13===D&&(F[h]=[r[0][0],(r[0][1]+r[r.length-1][1])/2]),D>1&&(E.D=F,K.points=r);for(f in t.A.FT)E[ZC.EA.GK[ZC.EC(f)]]=t.A.FT[f],K[ZC.EC(f)]=m[ZC.EA.GK[ZC.EC(f)]];if(t.C.EM||(t.C.EM={}),null!==ZC._n_(t.C.EM[t.A.L+"-"+t.L]))for(f in t.C.EM[t.A.L+"-"+t.L])E[ZC.EA.GK[ZC.EC(f)]]=t.C.EM[t.A.L+"-"+t.L][f];t.C.EM[t.A.L+"-"+t.L]={},ZC._cp_(K,t.C.EM[t.A.L+"-"+t.L]);var I=new ZC.EA(E,K,t.A.JD,t.A.L2,ZC.EA.RC[t.A.L5],function(){i()});I.AW=t,I.O6=function(){t.MW(ZC.Q.E9(t.A.CO("bl",1),t.H.AC))},I.II=a,t.LL(I)}else ZC.CS.paint(a,m,r),i()}}},paintPreview:function(e,i){var t=this;if(t.C.BA&&t.C.BA.HY&&t.A.QH){var n,a=t.A.mapPointsToPreview(i);t.A.VP?n=t.A.VP:(n=new ZC.D0(t),t.A.VP=n),n.copy(e),n.K=t.K+"-line-preview",n.DI=t.A.K+"-preview";var l=ZC.Q.E9(t.C.BA.Z,t.H.AC);n.B0=1;var o=t.o["preview-state"];o&&(n.append(o),n.parse()),ZC.CS.paint(l,n,a,null,3)}},A3H:function(e){var i=this;ZC.move||(i.A1C(e),i.A.R2&&i.TR(e))}}),ZC.A2S=ZC.M5.C7({setup:function(){this.T1()},ABC:function(){return{color:this.N.B9}},XP:function(){return{"background-color":this.N.B9,"border-color":this.N.B9,color:this.N.C1}},getTooltipPosition:function(e,i){return this.b(e,i,this.N3.AI)},paint:function(e){function i(){!C.C.O7&&ZC.DT(C.iX,p.iX-1,p.iX+p.I+1)&&ZC.DT(C.iY,p.iY-1,p.iY+p.F+1)&&(C.P2(),C.MW(ZC.Q.E9(C.A.CO("bl",1),C.H.AC)),C.A.U&&C.A.U.AM&&C.A.E.vboxid!==C.K&&C.GU())}var t,n,a,l,o,r,s,A,C=this;void 0===e&&(e=!1),C.b();var c=C.A.OI,u=C.A.Q2,p=C.A.B1,Z=C.A.CM,h=C.A.R;if(C.setup(),!C.A.IP||C.C.AJ["3d"]||C.A.FW){C.N.CZ=C.CZ=!1,C.N.C6=C.A.CO("bl",1);var d=Z.H4,f=Z.B2(d);f=c?ZC._l_(f,Z.iX,Z.iY+Z.I):ZC._l_(f,Z.iY,Z.iY+Z.F);var _=p.DL?p.A9/2:0,g=[],v=[],b=[],m=null;null!==ZC._n_(C.A.A.F1)&&null!==ZC._n_(C.A.A.F1[C.L])&&(m=C.A.A.F1[C.L]);var B=C.A.CW;(C.C.O7||C.A.TY)&&"spline"===C.A.CW&&(B="segmented"),n=C.N.B0/2-1,a="svg"===C.H.AC&&ZC.mobile?C.N.HQ/4:0,"vml"===C.H.AC&&C.A.GA&&(a=.5),C.C.AJ["3d"]&&(1===C.A.HQ?a=1:(a=C.A.HQ/3,"canvas"===C.H.AC&&(ZC.A4.browser.msie||ZC.A4.browser.opera)&&(a=.5)),p.AU&&(a=-a));var E,K="undefined"!=typeof C.A.G7?C.A.G7:C.A.W,F="undefined"!=typeof C.A.HD?C.A.HD:C.A.W,D=!0,X=!0;(!h[C.L-K]||"log"!==p.CA&&!p.ED&&C.L<=p.V)&&(D=!1);var I=C.A.LJ?C.A.R.length:p.A1;switch((!h[C.L+F]||"log"!==p.CA&&!p.ED&&C.L>=I)&&(X=!1),B){default:if(D)C.A.FP(C.L-K,0).setup(),C.A.UL?(o=ZC.AO.JO(h[C.L-K].iX,h[C.L-K].iY,h[C.L].iX,h[C.L].iY),b.push([ZC._i_(o[0])-a,o[1]-n]),C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(o[0])-a,f]),v.push([ZC._i_(o[0])-a,o[1]+n]),g.push([o[0],o[1]])):v.push([ZC._i_(C.iX),f]);else if(p.ED||C.L!==p.V)C.A.CB&&null!==ZC._n_(m)?(E=C.A.A.A6[C.A.L-1])&&E.R[C.L]&&v.push([ZC._i_(C.iX),E.R[C.L].iY+n]):(v.push([ZC._i_(C.iX),f]),b.push([ZC._i_(C.iX-p.A9/2),f]),b.push([ZC._i_(C.iX),f]));else if(p.AU)C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(p.iX+p.I-p.BW-_),f]),v.push([ZC._i_(p.iX+p.I-p.BW-_),C.iY+n]);else{var x=ZC._i_(p.iX+p.A5+_);C.A.LJ&&(x=p.I4(C.A.R3)-p.A9/2),C.A.CB&&null!==ZC._n_(m)||v.push([x,f]),v.push([x,C.iY+n])}b.push([ZC._i_(C.iX),C.iY-n]),v.push([ZC._i_(C.iX),C.iY+n]),g.push([C.iX,C.iY]),X?(C.A.FP(C.L+F,2).setup(),l=C.A.UL?ZC.AO.JO(h[C.L].iX,h[C.L].iY,h[C.L+F].iX,h[C.L+F].iY):[h[C.L+F].iX,h[C.L+F].iY],b.push([ZC._i_(l[0]),l[1]-n]),v.push([ZC._i_(l[0]),l[1]+n]),C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(l[0]),f]),o=C.A.UL?ZC.AO.JO(h[C.L].iX,h[C.L].iY,h[C.L+F].iX,h[C.L+F].iY,C.N.C5):[h[C.L+F].iX,h[C.L+F].iY],g.push([o[0],o[1]])):C.L===p.A1?p.AU?(v.push([p.iX+p.A5-_,C.iY+n]),C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(p.iX+p.A5-_),f])):(v.push([p.iX+p.I-p.BW-_,C.iY+n]),C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(p.iX+p.I-p.BW-_),f])):C.A.CB&&null!==ZC._n_(m)?(E=C.A.A.A6[C.A.L-1])&&E.R[C.L]&&v.push([ZC._i_(C.iX),E.R[C.L].iY+n]):(v.push([ZC._i_(C.iX),f]),b.push([ZC._i_(C.iX),f]),b.push([ZC._i_(C.iX+p.A9/2),f]));break;case"spline":if(null!==ZC._n_(C.A.D6)&&(b=C.A.D6),null!==ZC._n_(C.A.AG)&&(v=C.A.AG),C.A.D6=[],C.A.AG=[],null!==ZC._n_(C.A.D)&&(g=C.A.D),C.A.D=[],h[C.L+1]){var y=[],w=[];for(r=-1;r<3;r++)h[C.L+r]?(C.A.FP(C.L+r,2).setup(),c?(y.push(h[C.L+r].iX),w.push(h[C.L+r].iY)):(y.push(h[C.L+r].iY),w.push(h[C.L+r].iX))):0===y.length?c?(w.push(C.iY),y.push(C.iX)):(w.push(C.iX),y.push(C.iY)):(y.push(y[y.length-1]),w.push(w[w.length-1]));var Y=ZC._a_(w[2]-w[1]);Y=Math.min(Y,Math.max(C.C.I,C.C.F));var M=ZC.AO.XZ(C.A.Q8,y,Y);if(C.A.UL){for(0===v.length&&(C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(C.iX+(p.AU?-1:1)*M[0][0]*Y),f])),r=0;r<ZC._i_(M.length/2)+(1===C.N.C5?1:0);r++)M[r]&&(c?g.push([M[r][1],C.iY+(p.AU?1:-1)*M[r][0]*Y]):g.push([C.iX+(p.AU?-1:1)*M[r][0]*Y,M[r][1]]));for(r=0;r<ZC._i_(M.length/2)+(1===C.N.HQ?1:0);r++)b.push([ZC._i_(C.iX+(p.AU?-1:1)*M[r][0]*Y),M[r][1]-n]),v.push([ZC._i_(C.iX+(p.AU?-1:1)*M[r][0]*Y),M[r][1]]);for(C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(v[v.length-1][0]),f]),A=1===C.HQ?ZC.CY(2,ZC._i_(M.length/2)):1,r=ZC._i_(M.length/2)-1,s=M.length;r<s;r++)M[r]&&(c?C.A.D.push([M[r][1],C.iY+(p.AU?1:-1)*M[r][0]*Y]):C.A.D.push([C.iX+(p.AU?-1:1)*M[r][0]*Y,M[r][1]]));for(r=ZC._i_(M.length/2)-A,s=M.length;r<s;r++)0===C.A.AG.length&&(C.A.CB&&null!==ZC._n_(m)||C.A.AG.push([ZC._i_(C.iX+(p.AU?-1:1)*M[r][0]*Y),f])),C.A.AG.push([ZC._i_(C.iX+(p.AU?-1:1)*M[r][0]*Y),M[r][1]]),C.A.D6.push([ZC._i_(C.iX+(p.AU?-1:1)*M[r][0]*Y),M[r][1]-n])}else{for(0===v.length&&(C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(C.iX+(p.AU?-1:1)*M[0][0]*Y),f])),r=0;r<M.length;r++)c?g.push([M[r][1],C.iY+(p.AU?1:-1)*M[r][0]*Y]):g.push([C.iX+(p.AU?-1:1)*M[r][0]*Y,M[r][1]]);for(r=0;r<M.length;r++)b.push([ZC._i_(C.iX+(p.AU?-1:1)*M[r][0]*Y),M[r][1]-n]),v.push([ZC._i_(C.iX+(p.AU?-1:1)*M[r][0]*Y),M[r][1]]);for(C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(v[v.length-1][0]),f]),A=1===C.HQ?ZC.CY(2,ZC._i_(M.length/2)):1,r=M.length,s=M.length;r<s;r++)c?C.A.D.push([M[r][1],C.iY+(p.AU?1:-1)*M[r][0]*Y]):C.A.D.push([C.iX+(p.AU?-1:1)*M[r][0]*Y,M[r][1]]);for(r=M.length-A,s=M.length;r<s;r++)0===C.A.AG.length&&(C.A.CB&&null!==ZC._n_(m)||C.A.AG.push([ZC._i_(C.iX+(p.AU?-1:1)*M[r][0]*Y),f])),C.A.AG.push([ZC._i_(C.iX+(p.AU?-1:1)*M[r][0]*Y),M[r][1]]),C.A.D6.push([ZC._i_(C.iX+(p.AU?-1:1)*M[r][0]*Y),M[r][1]-n])}}else v.length>0&&v.push([v[v.length-1][0],f]);break;case"stepped":if(D)switch(C.A.FP(C.L-K,0).setup(),o=ZC.AO.JO(h[C.L-K].iX,h[C.L-K].iY,h[C.L].iX,h[C.L].iY),C.A.SI){default:b.push([ZC._i_(o[0])-a,C.iY-n]),C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(o[0])-a,f]),v.push([ZC._i_(o[0])-a,C.iY+n]),g.push(c?[h[C.L-K].iX,o[1]]:[o[0],h[C.L-K].iY]),g.push(c?[C.iX,o[1]]:[o[0],C.iY]);break;case"before":b.push([ZC._i_(h[C.L-K].iX)-a,C.iY-n]),C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(h[C.L-K].iX)-a,f]),v.push([ZC._i_(h[C.L-K].iX)-a,C.iY+n]),g.push([h[C.L-K].iX,h[C.L-K].iY]),g.push([h[C.L-K].iX,C.iY]);break;case"after":b.push([ZC._i_(C.iX)-a,C.iY-n]),C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(C.iX)-a,f]),v.push([ZC._i_(C.iX)-a,C.iY+n])}else p.ED||C.L!==p.V?C.A.CB&&null!==ZC._n_(m)?(E=C.A.A.A6[C.A.L-1])&&E.R[C.L]&&v.push([ZC._i_(C.iX),E.R[C.L].iY+n]):(v.push([ZC._i_(C.iX),f]),b.push([ZC._i_(C.iX-p.A9/2),f]),b.push([ZC._i_(C.iX),f])):p.AU?(C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(p.iX+p.I-p.BW-_),f]),v.push([ZC._i_(p.iX+p.I-p.BW-_),C.iY+n])):(C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(p.iX+p.A5+_),f]),v.push([ZC._i_(p.iX+p.A5+_),C.iY+n]));if(b.push([ZC._i_(C.iX),C.iY-n]),v.push([ZC._i_(C.iX),C.iY+n]),g.push([C.iX,C.iY]),X)switch(C.A.FP(C.L+F,2).setup(),o=ZC.AO.JO(h[C.L].iX,h[C.L].iY,h[C.L+F].iX,h[C.L+F].iY,C.N.C5),C.A.SI){default:b.push([ZC._i_(o[0]),C.iY-n]),v.push([ZC._i_(o[0]),C.iY+n]),C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(o[0]),f]),g.push(c?[C.iX,o[1]]:[o[0],C.iY]);break;case"before":b.push([ZC._i_(C.iX),C.iY-n]),v.push([ZC._i_(C.iX),C.iY+n]),C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(C.iX),f]);break;case"after":b.push([ZC._i_(h[C.L+F].iX),C.iY-n]),v.push([ZC._i_(h[C.L+F].iX),C.iY+n]),C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(h[C.L+F].iX),f]),g.push([h[C.L+F].iX,C.iY]),g.push([h[C.L+F].iX,h[C.L+F].iY])}else C.L===p.A1?p.AU?(v.push([p.iX+p.A5-_,C.iY+n]),C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(p.iX+p.A5-_),f])):(v.push([p.iX+p.I-p.BW-_,C.iY+n]),C.A.CB&&null!==ZC._n_(m)||v.push([ZC._i_(p.iX+p.I-p.BW-_),f])):C.A.CB&&null!==ZC._n_(m)?(E=C.A.A.A6[C.A.L-1])&&E.R[C.L]&&v.push([ZC._i_(C.iX),E.R[C.L].iY+n]):(v.push([ZC._i_(C.iX),f]),b.push([ZC._i_(C.iX),f]),b.push([ZC._i_(C.iX+p.A9/2),f]))}if(C.A.CB&&null!==ZC._n_(m))for(r=m.length-1;r>=0;r--)v.push(m[r]);if(C.setNodeData({points:g,pointsarea:v}),"ready"!==C.C.M9&&(C.A.V1=C.A.V1.concat(g)),null===ZC._n_(C.A.A.F1)&&(C.A.A.F1=[]),C.A.A.F1[C.L]=b,!e&&!C.C.AJ["3d"]){var H=C.N=C.A.I8(C,C.N),L=C.C.K+"-node-area "+C.C.K+"-plotset-plot-"+C.A.L+"-node-area zc-node-area";H.DI=L,H.K=C.K,C.A.HT&&C.GZ(H);var P,N=C.C.P;if(0!==C.A.E7.length||C.A.HT||"undefined"==typeof C.A.A96||C.N.o.override||C.C.KD?((P=new ZC.DW(C.A)).copy(H),P.C5=C.A.HQ):P=C.A.A96,C.GZ(P),P.C5=ZC._f_(P.o["alpha-area"]||"1"),P.CZ=!1,P.L1=!0,P.B0=0,P.AT=0,P.EX=0,P.G6=0,P.Z=C.A.CO("bl",C.C.CB?0:1),P.D=v,P.D1=[N.iX,N.iY,N.iX+N.I,N.iY+N.F],null!==ZC._n_(t=C.A.E["min-y"])&&(P.E["bound-1"]=t,P.D1[1]=t),null!==ZC._n_(t=C.A.E["max-y"])&&(P.E["bound-3"]=t,P.D1[3]=t),P.K=C.K+"-area",C.A.GA||(P.E.areanode=!0),ZC.CS.setup(u,H),C.paintPreview(H,g,v),C.A.GA&&!C.C.HF){var O=new ZC.DW(C),k={};O.copy(H),O.K=C.K,O.Z=C.A.CO("bl",2),O.C6=C.A.CO("bl",1),O.D=g;var Q=P,R={},z=[],T=[];O.D=g,k.points=g,Q.D=v,R.points=v;var G=C.A.L6,S=C.C.P;O.C5=0,k.alpha=H.C5,Q.C5=0,R.alpha=C.A.HQ;var J=function(e){for(var i=e?v:g,t=e?T:z,n=0;n<i.length;n++)2===G?t[n]=[i[n][0],S.iY+C.C.P.F/2]:3===G?t[n]=[i[n][0],S.iY-5]:4===G?t[n]=[i[n][0],S.iY+S.F+5]:5===G?t[n]=[S.iX-5,i[n][1]]:6===G?t[n]=[S.iX+S.I+5,i[n][1]]:7===G?t[n]=[S.iX+S.I/2,i[n][1]]:8===G?t[n]=[i[n][0]-S.I,i[n][1]]:9===G?t[n]=[i[n][0]+S.I,i[n][1]]:10===G?t[n]=[i[n][0],i[n][1]-S.F]:11===G?t[n]=[i[n][0],i[n][1]+S.F]:12===G?t[n]=[(i[0][0]+i[i.length-1][0])/2,i[0][1]]:13===G&&(t[n]=[i[0][0],(i[0][1]+i[i.length-1][1])/2]),G>1&&(e?(Q.D=T,R.points=v):(O.D=z,k.points=g))};J(),J(!0);var V;for(V in C.A.FT)O[ZC.EA.GK[ZC.EC(V)]]=C.A.FT[V],k[ZC.EC(V)]=H[ZC.EA.GK[ZC.EC(V)]],Q[ZC.EA.GK[ZC.EC(V)]]=C.A.FT[V],R[ZC.EC(V)]=H[ZC.EA.GK[ZC.EC(V)]];if(null===ZC._n_(C.C.EM)&&(C.C.EM={}),null===ZC._n_(C.C.SM)&&(C.C.SM={}),null!==ZC._n_(C.C.EM[C.A.L+"-"+C.L])){for(V in C.C.EM[C.A.L+"-"+C.L])O[ZC.EA.GK[ZC.EC(V)]]=C.C.EM[C.A.L+"-"+C.L][V];for(V in C.C.SM[C.A.L+"-"+C.L])Q[ZC.EA.GK[ZC.EC(V)]]=C.C.SM[C.A.L+"-"+C.L][V]}C.C.EM[C.A.L+"-"+C.L]={},ZC._cp_(k,C.C.EM[C.A.L+"-"+C.L]),C.C.SM[C.A.L+"-"+C.L]={},ZC._cp_(R,C.C.SM[C.A.L+"-"+C.L]);var U=new ZC.EA(O,k,C.A.JD,C.A.L2,ZC.EA.RC[C.A.L5],function(){i()});U.AW=C,U.O6=function(){C.MW(ZC.Q.E9(C.A.CO("bl",1),C.H.AC))},U.II=u;var W=new ZC.EA(Q,R,C.A.JD,C.A.L2,ZC.EA.RC[C.A.L5],function(){});W.AW=C,C.LL(U,W)}else P.paint(),0!==C.A.E7.length||"undefined"!=typeof C.A.A96||C.N.o.override||C.C.KD||C.C.HF||(C.A.A96=P),ZC.CS.paint(u,H,g),i()}}},paintPreview:function(e,i,t){var n=this;if(n.C.BA&&n.C.BA.HY&&n.A.QH){var a,l=n.C.P,o=n.C.BA,r=n.A.mapPointsToPreview(t),s=new ZC.DW(n.A);s.copy(e),s.CZ=!0,s.L1=!0,s.B0=0,s.AT=0,s.EX=0,s.G6=0,s.C5=n.A.HQ,s.D1=[l.iX,l.iY,l.iX+l.I,l.iY+l.F],s.K=n.K+"-area-preview",s.DI=n.A.K+"-preview",s.Z=o.Z;var A=n.A.o["preview-state"];A&&(null!==ZC._n_(A["alpha-area"])?(a=A.alpha,A.alpha=A["alpha-area"]):A.alpha=s.C5,s.append(A),s.parse(),null!==ZC._n_(a)?A.alpha=a:delete A.alpha),s.D=r,s.paint();var C,c=n.A.mapPointsToPreview(i);n.A.VP?C=n.A.VP:(C=new ZC.D0(n),n.A.VP=C),C.copy(e),C.K=n.K+"-line-preview",C.DI=n.A.K+"-preview";var u=ZC.Q.E9(o.Z,n.H.AC);C.B0=1,A&&(C.append(A),C.parse()),ZC.CS.paint(u,C,c,null,3)}},A3H:function(e){var i=this;ZC.move||(i.A.OI||i.M2({layer:e,type:"area",initcb:function(){this.A0=i.A.BP[2],this.AE=i.A.BP[2],this.D=i.getNodeData("pointsarea")||[]},setupcb:function(){this.B0=0,this.AT=0,this.C5=i.A.HQ;var e=i.C.P;this.D1=[e.iX,e.iY,e.iX+e.I,e.iY+e.F]}}),i.A1C(e),i.A.R2&&i.TR(e))}}),ZC.Z9=ZC.M5.C7({setup:function(){this.T1()},UV:function(){var e=this;e.paint(!0);var i=e.C.BN(e.A.BT("v")[0]);return[e.iX+e.I/2,e.iY+(i.AU?e.F:0),{reference:e,center:!0}]},ACC:function(e){var i=this,t="top-out",n=i.C.BN(i.A.BT("v")[0]),a=i.AD>=n.H4&&!n.AU||i.AD<n.H4&&n.AU?1:-1;e=i.setupValueBoxWH(e),null!==ZC._n_(e.o.placement)&&(t=e.o.placement);var l=e.I,o=e.F,r=i.iX+i.I/2-l/2,s=i.iYVal-o/2,A=e.AA%180==90,C=A?l/2:o/2,c=A?l/2-o/2:0;switch(t){case"top-out":case"top":s-=a*(C+5);break;case"top-in":s+=a*(C+5);break;case"middle":s+=a*(i.F/2);break;case"bottom-in":s+=a*(i.F-C-5);break;case"bottom-out":case"bottom":s+=a*(i.F+o/2+5)}if(null!==ZC._n_(e.o.x)||null!==ZC._n_(e.o.y))null!==ZC._n_(e.o.x)&&(r=e.iX),null!==ZC._n_(e.o.y)&&(s=e.iY);else{var u=ZC._c_(i.A.o.tolerance,5);if(!ZC.AO._boxoverlap2_(i,i.C.P,u))return[-1,-1]}var p=e.o.tolerance||[i.C.P.E5,i.C.P.E6,i.C.P.DP,i.C.P.DV];return i.C.AJ["3d"]||(r=ZC.BQ(i.C.P.iX+0-p[3],r),r=ZC.CY(i.C.P.iX+i.C.P.I-l-0+p[1],r),s-c<i.C.P.iY+5-p[0]&&(s=i.C.P.iY+5-p[0]+c),s+c>i.C.P.iY+i.C.P.F-o-5+p[2]&&(s=i.C.P.iY+i.C.P.F-o-5+p[2]-c)),[ZC._i_(r),ZC._i_(s)]},getPMap:function(){var e=this.b();return this.addPMap(e,"barWidth","I"),e},paint:function(e){var i,t=this;if(t.b(),!t.C.AJ["3d"]){void 0===e&&(e=!1);var n=t.A.B1,a=t.A.CM;t.setup();var l=a.H4,o=a.B2(l),r=t.A.QF(),s=r.A9,A=r.ET,C=r.CC,c=r.CT,u=r.F3,p=r.D3,Z=r.EZ;e?A=t.A.E["node-"+t.L+"-bar-index"]:t.A.E["node-"+t.L+"-bar-index"]=r.ET;var h,d,f,_,g;if(t.A.CB){h=0;for(var v=t.A.A.K6[A],b=0;b<v.length;b++){var m=t.A.A.A6[v[b]].R[t.L];m&&(h+=m.AD)}}var B=1,E=1;if(t.A.CB&&(t.CR!==t.AD&&(B=(h-t.CR+t.AD)/h),E=(h-t.CR)/h),a.AU){var K=B;B=E,E=K}t.A.LJ&&(A=t.L);var F=t.iX-s/2+C+A*(p+u)-A*Z;if(F=ZC._l_(F,t.iX-s/2+C,t.iX+s/2-c),t.A.D3>0){var D=p;(p=t.A.D3)<=1&&(p*=D),F+=(D-p)/2}var X=p,I=t.iY,x=null!==ZC._n_(t.A.LW[t.L])?t.A.LW[t.L]:0;if(I=t.A.CB&&"100%"===t.A.KQ?a.B2(100*(t.CR+x)/t.A.A.F7[t.L]["%total-"+t.A.DY]):a.B2(t.CR+x),t.A.CB){d="100%"===t.A.KQ?a.B2(100*(t.CR-t.AD+x)/t.A.A.F7[t.L]["%total-"+t.A.DY]):a.B2(t.CR-t.AD+x),I=ZC._i_(I),d=ZC._i_(d);var y=!a.AU&&t.AD>=0||a.AU&&t.AD<=0?-1:1,w=0,Y=0;""!==t.A.PQ?(w=t.WK(t.A.PQ)[0],Y=0):w=t.A.AT,""!==t.A.NL?(Y=t.WK(t.A.NL)[0],w=0):Y=t.A.AT,w!==Y&&(y=0),f=I-d+y*w,t.AD<0&&(I=d),a.AU?f>0&&(f=ZC._a_(f),I=d):f<0&&(f=ZC._a_(f),I=d-f),a.AU&&t.AD<0&&(f+=Y)}else d=a.B2(x),(f=I-d)<0?(f=ZC._a_(f),I=d-f):I=d;if(t.A.TD&&t.A.CB&&t.A.L>0&&t.A.A.A6[t.A.L-1].R[t.L]&&0===t.A.A.A6[t.A.L-1].R[t.L].AD&&(f-=1,I+=a.AU?1:-1),f<2&&(t.AD>0||t.A.TD)&&(f=1,a.AU?t.A.CB&&t.A.L>0&&(I-=1):t.A.CB?0===t.A.L&&(I-=1):I=x?d-1:o-2),t.I=X,t.F=f,t.iX=F,t.iY=I,a.AU?t.AD>=a.H4?t.iYVal=I+t.F:t.iYVal=I:t.AD>=a.H4?t.iYVal=I:t.iYVal=I+t.F,t.C.CX){var M="middle";t.C.CX.o.marker&&null!==ZC._n_(i=t.C.CX.o.marker.alignment)&&(M=i),null!==ZC._n_(t.A.o["guide-marker"])&&null!==ZC._n_(i=t.A.o["guide-marker"].alignment)&&(M=i),"node"===M&&(t.E.A5C=t.iX+t.I/2)}if(!e){t.setNodeData({x:F,y:I,w:X,h:f});var H,L=!0;if("none"!==t.A.IY||t.C.IT[t.A.L]||t.C.KD||t.A.SQ&&t.A.SQ[t.L]?(H=t.N=t.A.I8(t,t.N),L=!1):H=t.N,(0!==t.A.E7.length||t.A.HT||t.N.o.override||t.C.KD)&&(L=!1),t.AM){var P;switch(t.A.CW){default:0!==t.A.E7.length||t.A.HT||"undefined"==typeof t.A.TP||t.N.o.override||t.C.KD?(P=new ZC.HS(t.A)).copy(H):P=t.A.TP,t.A.HT&&(t.GZ(P),P.parse()),P.F9=t.A.F9,P.K=t.K,P.iX=F,P.iY=I,P.I=t.I,P.F=t.F,n.A9<5&&P.I<5?(P.I=ZC.BQ(1,P.I)+1,P.MZ=!1,P.CZ=!1):(P.MZ=!0,P.CZ=!0),P.I<5&&n.A1!==n.V&&t.C.P.I/(n.A1-n.V)<1&&(P.QJ=!0);break;case"pyramid":case"cone":0!==t.A.E7.length||t.A.HT||"undefined"==typeof t.A.TP||t.N.o.override||t.C.KD?(P=new ZC.DW(t.A)).copy(H):P=t.A.TP,t.A.HT&&(t.GZ(P),P.parse()),P.K=t.K,a.AU&&!t.A.CB?(g=t.AD>=0?0:t.F,_=t.AD>=0?t.F:0):(g=t.AD>=0?t.F:0,_=t.AD>=0?0:t.F),P.D=[],P.D.push([F+t.I/2-B*t.I/2,I+g],[F+t.I/2+B*t.I/2,I+g]),t.A.CB&&0!==E?P.D.push([F+t.I/2+E*t.I/2,I+_],[F+t.I/2-E*t.I/2,I+_]):P.D.push([F+t.I/2,I+_]),P.D.push([P.D[0][0],P.D[0][1]]),t.setNodeData({points:P.D}),P.iX=F,P.iY=I,P.locate(2)}P.Z=t.A.CO("bl",1),P.C6=t.A.CO("bl",0),t.paintPreview(H,L);var N=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area";P.DI=N;var O=ZC._c_(t.A.o.tolerance,5),k=function(){if("undefined"!=typeof t.paint_&&t.paint_(),t.MW(ZC.Q.E9(P.Z,t.H.AC)),ZC.AO._boxoverlap2_(t,t.C.P,O)&&t.A.FW&&-1===ZC.AV(t.H.KM,"skip_segment_tracking")){var e=X<5?.5:-.5,i=f<3?.5:-.5,n=ZC.Q.GC("rect",t.A.E8,P.IR)+'class="'+N+'" id="'+t.K+'" coords="'+ZC._i_(F+t.A.BJ+ZC.MAPTX-e)+","+ZC._i_(I+t.A.BH+ZC.MAPTX-i)+","+ZC._i_(F+t.A.BJ+X+ZC.MAPTX+e)+","+ZC._i_(I+t.A.BH+f+ZC.MAPTX+i)+'" />';t.A.A.HN.push(n)}t.A.U&&t.A.U.AM&&t.GU()};if(t.A.GA&&!t.C.HF){var Q=P,R={};Q.iX=F,Q.iY=I,Q.I=X,Q.F=f,R.x=F,R.y=I,R.width=X,R.height=f;var z=t.A.L6,T=t.C.P;Q.C5=0,R.alpha=H.C5,2===z?(Q.iY=T.iY+T.F/2,Q.F=1,R.height=t.F,R.y=I):3===z?(Q.iY=T.iY,Q.F=1,R.height=t.F,R.y=I):4===z?(Q.iY=T.iY+T.F,Q.F=1,R.height=t.F,R.y=I):5===z?(Q.iX=T.iX,Q.I=1,R.width=t.I,R.x=F):6===z?(Q.iX=T.iX+T.I,Q.I=1,R.width=t.I,R.x=F):7===z?(Q.iX=T.iX+T.I/2,Q.I=1,R.width=t.I,R.x=F):8===z?(Q.iX=F-T.I,R.x=F):9===z?(Q.iX=F+T.I,R.x=F):10===z?(Q.iY=I-T.F,R.y=I):11===z?(Q.iY=I+T.F,R.y=I):12===z?(Q.I=1,R.width=t.I):13===z&&(Q.F=1,R.height=t.F);var G;for(G in t.A.FT)Q[ZC.EA.GK[ZC.EC(G)]]=t.A.FT[G],R[ZC.EC(G)]=H[ZC.EA.GK[ZC.EC(G)]];if(null===ZC._n_(t.C.EM)&&(t.C.EM={}),null!==ZC._n_(t.C.EM[t.A.L+"-"+t.L]))for(G in t.C.EM[t.A.L+"-"+t.L])Q[ZC.EA.GK[ZC.EC(G)]]=t.C.EM[t.A.L+"-"+t.L][G];if(t.C.EM[t.A.L+"-"+t.L]={},ZC._cp_(R,t.C.EM[t.A.L+"-"+t.L]),ZC.AO._boxoverlap2_(t,t.C.P,O)){var S=new ZC.EA(Q,R,t.A.JD,t.A.L2,ZC.EA.RC[t.A.L5],function(){k()});S.AW=t,S.O6=function(){t.MW(ZC.Q.E9(P.Z,t.H.AC))},t.LL(S)}}else{if(P.AM||0===t.A.E7.length&&!t.A.HT)if(t.A.VR||(t.A.VR={iX:P.iX,iY:P.iY,F:P.F}),t.A.A2F)if(t.A.SB)if(t.A.SB.el&&"RECT"===t.A.SB.el.tagName.toUpperCase()){var J=!1;if(t.A.Q7&&t.A.VR&&ZC._a_(P.iX-t.A.VR.iX)<.75&&ZC._a_(P.iY-t.A.VR.iY)<1.5&&ZC._a_(P.F-t.A.VR.F)<1.5&&(J=!0),!J){t.A.VR={iX:P.iX,iY:P.iY,F:P.F};var V=t.A.SB.el.cloneNode(!1);V.setAttribute("id",t.K),V.setAttribute("x",t.iX),V.setAttribute("y",t.iY),V.setAttribute("height",t.F),t.A.SB.df?t.H.FY[P.Z.id].appendChild(V):t.A.SB.el.parentNode.appendChild(V)}}else P.paint();else P.paint(),t.A.SB={id:P.K+"-path"},zingchart.DEV.DOMFRAGMENTS&&document.querySelector&&t.H.FY&&t.H.FY[P.Z.id]?(t.A.SB.df=!0,t.A.SB.el=t.H.FY[P.Z.id].querySelector("#"+P.K+"-path")):(t.A.SB.df=!1,t.A.SB.el=ZC.AK(t.A.SB.id));else ZC.AO._boxoverlap2_(t,t.C.P,O)&&P.paint();P.AM&&k()}"svg"===t.H.AC&&t.A.applyJsRuleSvg(t.A,t.K+"-path",t.LQ()),0!==t.A.E7.length||t.A.HT||"undefined"!=typeof t.A.TP||t.N.o.override||t.C.KD||t.A.GA||(t.A.TP=P)}}}},paintPreview:function(e,i){var t,n,a=this;if(a.C.BA&&a.C.BA.HY&&a.A.QH){var l=a.C.P,o=a.C.BA,r=o.AQ,s=(a.iX-l.iX)/l.I,A=(a.iY-l.iY)/l.F;a.A.VO?t=a.A.VO:(t=new ZC.HS(a.A),a.A.VO=t,t.copy(e),(n=a.A.o["preview-state"])&&(t.append(n),t.parse())),i||(t.copy(e),(n=a.A.o["preview-state"])&&(t.append(n),t.parse())),t.K=a.K+"-preview",t.DI=a.A.K+"-preview",t.iX=r.iX+r.AT+s*(r.I-2*r.AT),t.iY=r.iY+r.AT+A*(r.F-2*r.AT),t.I=a.I/l.I*(r.I-2*r.AT),t.F=a.F/l.F*(r.F-2*r.AT),r.I/a.A.R.length<10?(t.I=t.I+.5,t.MZ=!1,t.CZ=!1):(t.MZ=!0,t.CZ=!0),t.Z=t.C6=o.Z,t.paint()}},A3H:function(e){var i=this;if(e=e||"hover",!ZC.move){var t="";switch(i.A.CW){default:t="box";break;case"pyramid":t="shape"}i.M2({layer:e,type:t,initcb:function(){this.A0=i.A.BP[3],this.B9=i.A.BP[1],this.BV=i.A.BP[1],this.AE=i.A.BP[2]},setupcb:function(){switch(i.A.CW){default:this.iX=i.getNodeData("x"),this.iY=i.getNodeData("y"),this.I=i.getNodeData("w"),this.F=i.getNodeData("h");var e=i.C.P;this.iY<e.iY&&(this.F=this.F-(e.iY-this.iY),this.iY=e.iY),this.iY+this.F>e.iY+e.F&&(this.F=e.iY+e.F-this.iY);break;case"pyramid":case"cone":this.D=i.getNodeData("points")}}}),i.MW(ZC.Q.E9(i.C.K+"-hover-c",i.H.AC),!0),i.A.RK=null}}}),ZC.Z2=ZC.M5.C7({setup:function(){this.T1()},UV:function(){var e=this;e.paint(!0);var i=e.C.BN(e.A.BT("v")[0]);return[e.iX+(i.AU?0:e.I),e.iY+e.F/2,{reference:e,center:!0}]},ACC:function(e){var i=this,t="top-out",n=i.C.BN(i.A.BT("v")[0]),a=i.AD>=n.H4&&!n.AU||i.AD<n.H4&&n.AU?-1:1;null!==ZC._n_(e.o.placement)&&(t=e.o.placement);var l=e.I,o=e.F,r=i.iXVal-l/2,s=i.iY+i.F/2-o/2,A=e.AA%180==90?o/2:l/2;switch(t){case"top-out":case"top":r-=a*(A+5);break;case"top-in":r+=a*(A+5);break;case"middle":r+=a*(i.I/2);break;case"bottom-in":r+=a*(i.I-A-5);break;case"bottom-out":case"bottom":r+=a*(i.I+A+5)}if(null!==ZC._n_(e.o.x)||null!==ZC._n_(e.o.y))null!==ZC._n_(e.o.x)&&(r=e.iX),null!==ZC._n_(e.o.y)&&(s=e.iY);else{var C=ZC._c_(i.A.o.tolerance,5);if(!ZC.AO._boxoverlap2_(i,i.C.P,C))return[-1,-1]}var c=e.o.tolerance||[i.C.P.E5,i.C.P.E6,i.C.P.DP,i.C.P.DV];return i.C.AJ["3d"]||(r=ZC.BQ(i.C.P.iX+5-c[3],r),r=ZC.CY(i.C.P.iX+i.C.P.I-l-5+c[1],r),s=ZC.BQ(i.C.P.iY+0-c[0],s),s=ZC.CY(i.C.P.iY+i.C.P.F-o/2-0+c[2],s)),[ZC._i_(r),ZC._i_(s)]},paint:function(e){var i=this;if(i.b(),!i.C.AJ["3d"]){void 0===e&&(e=!1);var t=i.A.B1,n=i.A.CM;i.setup();var a=i.A.QF(),l=a.A9,o=a.ET,r=a.CC,s=a.CT,A=a.F3,C=a.D3,c=a.EZ;e?o=i.A.E["node-"+i.L+"-bar-index"]:i.A.E["node-"+i.L+"-bar-index"]=a.ET;var u,p,Z,h,d;if(i.A.CB){u=0;for(var f=i.A.A.K6[o],_=0;_<f.length;_++){var g=i.A.A.A6[f[_]].R[i.L];g&&(u+=g.AD)}}var v=1,b=1;if(i.A.CB&&(i.CR!==i.AD&&(v=(u-i.CR+i.AD)/u),b=(u-i.CR)/u),n.AU){var m=v;v=b,b=m}i.A.LJ&&(o=i.L);var B=i.iY-l/2+r+o*(C+A)-o*c;if(B=ZC._l_(B,i.iY-l/2+r,i.iY+l/2-s),i.A.D3>0){var E=C;(C=i.A.D3)<=1&&(C*=E),B+=(E-C)/2}var K=C,F=i.iX,D=null!==ZC._n_(i.A.LW[i.L])?i.A.LW[i.L]:0;if(F=i.A.CB&&"100%"===i.A.KQ?n.B2(100*(i.CR+D)/i.A.A.F7[i.L]["%total-"+i.A.DY]):n.B2(i.CR+D),i.A.CB){p="100%"===i.A.KQ?n.B2(100*(i.CR-i.AD+D)/i.A.A.F7[i.L]["%total-"+i.A.DY]):n.B2(i.CR-i.AD+D),F=ZC._i_(F),p=ZC._i_(p);var X=!n.AU&&i.AD>=0||n.AU&&i.AD<=0?1:-1,I=0,x=0;""!==i.A.OC?(I=i.WK(i.A.OC)[0],x=0):I=i.A.AT,""!==i.A.P6?(x=i.WK(i.A.P6)[0],I=0):x=i.A.AT,I!==x&&(X=0),Z=F-p+X*I,i.AD>0?F=p:Z=ZC._a_(Z),n.AU?Z>0?(Z=ZC._a_(Z),F=p):(Z=ZC._a_(Z),F-=Z):Z<0&&(Z=ZC._a_(Z),F=p-Z)}else p=n.B2(D),(Z=F-p)<0?(Z=ZC._a_(Z),F=p-Z):F=p;if(i.A.TD&&i.A.CB&&i.A.L>0&&i.A.A.A6[i.A.L-1].R[i.L]&&0===i.A.A.A6[i.A.L-1].R[i.L].AD&&(Z-=1,F+=n.AU?-1:1),Z<1&&(i.AD>0||i.A.TD)&&(Z=1,n.AU?i.A.CB?0===i.A.L&&(F-=1):F-=2:i.A.L>0&&i.A.CB&&(F-=1)),i.I=Z,i.F=K,i.iX=F,i.iY=B,n.AU?i.AD>=n.H4?i.iXVal=F:i.iXVal=F+i.I:i.AD>=n.H4?i.iXVal=F+i.I:i.iXVal=F,!e){i.setNodeData({x:F,y:B,w:Z,h:K});var y,w=!0;if("none"!==i.A.IY||i.C.IT[i.A.L]||i.C.KD||i.A.SQ&&i.A.SQ[i.L]?(y=i.N=i.A.I8(i,i.N),w=!1):y=i.N,(0!==i.A.E7.length||i.A.HT||i.N.o.override||i.C.KD)&&(w=!1),i.AM){var Y;switch(i.A.CW){default:0!==i.A.E7.length||i.A.HT||"undefined"==typeof i.A.TP||i.N.o.override||i.C.KD?(Y=new ZC.HS(i.A)).copy(y):Y=i.A.TP,i.A.HT&&(i.GZ(Y),Y.parse()),Y.F9=i.A.F9,Y.K=i.K,Y.iX=F,Y.iY=B,Y.I=i.I,Y.F=i.F,t.A9<5&&Y.F<5?(Y.F=ZC.BQ(1,Y.F)+1,Y.MZ=!1,Y.CZ=!1):(Y.MZ=!0,Y.CZ=!0),Y.F<5&&t.A1!==t.V&&i.C.P.F/(t.A1-t.V)<1&&(Y.QJ=!0);break;case"pyramid":case"cone":0!==i.A.E7.length||i.A.HT||"undefined"==typeof i.A.TP||i.N.o.override||i.C.KD?(Y=new ZC.DW(i.A)).copy(y):Y=i.A.TP,i.A.HT&&(i.GZ(Y),Y.parse()),Y.K=i.K,n.AU&&!i.A.CB?(d=i.AD>=0?i.I:0,h=i.AD>=0?0:i.I):(d=i.AD>=0?0:i.I,h=i.AD>=0?i.I:0),Y.D=[],Y.D.push([F+d,B+i.F/2-v*i.F/2],[F+d,B+i.F/2+v*i.F/2]),i.A.CB&&0!==b?Y.D.push([F+h,B+i.F/2+b*i.F/2],[F+h,B+i.F/2-b*i.F/2]):Y.D.push([F+h,B+i.F/2]),Y.D.push([Y.D[0][0],Y.D[0][1]]),i.E.points=Y.D,Y.iX=F,Y.iY=B,Y.locate(2)}Y.Z=i.A.CO("bl",1),Y.C6=i.A.CO("bl",0),i.paintPreview(y,w);var M=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area";Y.DI=M;var H=ZC._c_(i.A.o.tolerance,5),L=function(){if("undefined"!=typeof i.paint_&&i.paint_(),i.MW(ZC.Q.E9(Y.Z,i.H.AC)),ZC.AO._boxoverlap2_(i,i.C.P,H)&&i.A.FW&&-1===ZC.AV(i.H.KM,"skip_segment_tracking")){var e=Z<3?.5:-.5,t=K<5?.5:-.5,n=ZC.Q.GC("rect",i.A.E8,Y.IR)+'class="'+M+'" id="'+i.K+'" coords="'+ZC._i_(F+i.A.BJ+ZC.MAPTX-e)+","+ZC._i_(B+i.A.BH+ZC.MAPTX-t)+","+ZC._i_(F+i.A.BJ+Z+ZC.MAPTX+e)+","+ZC._i_(B+i.A.BH+K+ZC.MAPTX+t)+'" />';i.A.A.HN.push(n)}i.A.U&&i.A.U.AM&&i.GU()};if(i.A.GA&&!i.C.HF){var P=Y,N={};P.iX=F,P.iY=B,P.I=Z,P.F=K,N.x=F,N.y=B,N.width=Z,N.height=K;var O=i.A.L6,k=i.C.P;P.C5=0,N.alpha=y.C5,2===O?(P.iX=k.iX+k.I/2,P.I=1,N.width=i.I,N.x=F):3===O?(P.iX=k.iX+k.I,P.I=1,N.width=i.I,N.x=F):4===O?(P.iX=k.iX,P.I=1,N.width=i.I,N.x=F):5===O?(P.iY=k.iY+k.F,P.F=1,N.height=i.F,N.y=B):6===O?(P.iY=k.iY,P.F=1,N.height=i.F,N.y=B):7===O?(P.iY=k.iY+k.F/2,P.F=1,N.height=i.F,N.y=B):8===O?(P.iY=B+k.F,N.y=B):9===O?(P.iY=B-k.F,N.y=B):10===O?(P.iX=F+k.I,N.x=F):11===O?(P.iX=F-k.I,N.x=F):12===O?(P.F=1,N.height=i.F):13===O&&(P.I=1,N.width=i.I);var Q;for(Q in i.A.FT)P[ZC.EA.GK[ZC.EC(Q)]]=i.A.FT[Q],N[ZC.EC(Q)]=i.N[ZC.EA.GK[ZC.EC(Q)]];if(null===ZC._n_(i.C.EM)&&(i.C.EM={}),null!==ZC._n_(i.C.EM[i.A.L+"-"+i.L]))for(Q in i.C.EM[i.A.L+"-"+i.L])P[ZC.EA.GK[ZC.EC(Q)]]=i.C.EM[i.A.L+"-"+i.L][Q];if(i.C.EM[i.A.L+"-"+i.L]={},ZC._cp_(N,i.C.EM[i.A.L+"-"+i.L]),ZC.AO._boxoverlap2_(i,i.C.P,H)){var R=new ZC.EA(P,N,i.A.JD,i.A.L2,ZC.EA.RC[i.A.L5],function(){L()});R.AW=i,R.O6=function(){i.MW(ZC.Q.E9(Y.Z,i.H.AC))},i.LL(R)}}else(Y.AM||0===i.A.E7.length&&!i.A.HT)&&ZC.AO._boxoverlap2_(i,i.C.P,H)&&Y.paint(),Y.AM&&L();"svg"===i.H.AC&&i.A.applyJsRuleSvg(i.A,i.K+"-path",i.LQ()),0!==i.A.E7.length||i.A.HT||"undefined"!=typeof i.A.TP||i.N.o.override||i.C.KD||i.A.GA||(i.A.TP=Y)}}}},paintPreview:function(e,i){var t,n,a=this;if(a.C.BA&&a.C.BA.HY&&a.A.QH){var l=a.C.P,o=a.C.BA,r=o.AQ,s=(a.iX-l.iX)/l.I,A=(a.iY-l.iY)/l.F;a.A.VO?t=a.A.VO:(t=new ZC.HS(a.A),a.A.VO=t,t.copy(e),(n=a.A.o["preview-state"])&&(t.append(n),t.parse())),i||(t.copy(e),(n=a.A.o["preview-state"])&&(t.append(n),t.parse())),t.K=a.K+"-preview",t.DI=a.A.K+"-preview",t.iX=r.iX+r.AT+s*(r.I-2*r.AT),t.iY=r.iY+r.AT+A*(r.F-2*r.AT),t.I=a.I/l.I*(r.I-2*r.AT),t.F=a.F/l.F*(r.F-2*r.AT),r.I/a.A.R.length<10?(t.I=t.I+.5,t.MZ=!1,t.CZ=!1):(t.MZ=!0,t.CZ=!0),t.Z=t.C6=o.Z,t.paint()}},A3H:function(e){var i=this;if(!ZC.move){var t="";switch(i.A.CW){default:t="box";break;case"pyramid":t="shape"}i.M2({layer:e,type:t,initcb:function(){this.B9=i.A.BP[1],this.BV=i.A.BP[1],this.A0=i.A.BP[3],this.AE=i.A.BP[2]},setupcb:function(){switch(i.A.CW){default:this.iX=i.getNodeData("x"),this.iY=i.getNodeData("y"),this.I=i.getNodeData("w"),this.F=i.getNodeData("h");var e=i.C.P;this.iX<e.iX&&(this.I=this.I-(e.iX-this.iX),this.iX=e.iX),this.iX+this.I>e.iX+e.I&&(this.I=e.iX+e.I-this.iX);break;case"pyramid":case"cone":this.D=i.getNodeData("points")}}}),i.MW(ZC.Q.E9(i.C.K+"-hover-c",i.H.AC),!0),i.A.RK=null}}}),ZC.A5K=ZC.M5.C7({setup:function(){var e=this,i=e.A.B1,t=e.A.CM,n=[i.V,i.A1,t.V,t.A1];if(e.JL!==n){if("scatter"===e.A.AF){if(e.A.LJ&&e.A.PT){var a=ZC.AO.W7(e.A.PT[0],e.A.PT[1]),l=(e.BU-a[0])/(a[1]-a[0]);e.iX=i.I4(e.A.R3)-i.A9/2+e.A.RH+l*(i.A9-2*e.A.RH)}else e.iX=i.B2(e.BU);e.iY=t.B2(e.AD)}else e.iY=i.B2(e.BU),e.iX=t.B2(e.AD);e.JL=n}e.HY||(e.copy(e.A),e.E7=e.A.E7,e.DE()&&e.parse(!1),e.HY=!0)},parse:function(){this.b(),this.o.value instanceof Array||(this.BU=this.L)},ABC:function(){return{color:"-1"===this.A.A2.A0?this.N.A0:this.A.A2.A0}},getTooltipPosition:function(e,i){return this.b(e,i,this.N3.AI)},XP:function(){return{"background-color":"-1"===this.A.A2.AE?this.N.AE:this.A.A2.AE,"border-color":"-1"===this.A.A2.AE?this.N.AE:this.A.A2.AE,color:this.N.C1}},paint:function(e){var i=this;i.b();var t=i.A.B1,n=i.A.CM;i.setup(),e||(t.CQ?ZC.DT(i.iX,n.iX+(n.AU?n.BW:n.A5)-1,n.iX+n.I-(n.AU?n.A5:n.BW)+1)&&ZC.DT(i.iY,t.iY+(t.AU?t.BW:t.A5)-1,t.iY+t.F-(t.AU?t.A5:t.BW)+1)&&i.P2(!1,!0):ZC.DT(i.iX,t.iX+(t.AU?t.BW:t.A5)-1,t.iX+t.I-(t.AU?t.A5:t.BW)+1)&&ZC.DT(i.iY,n.iY+(n.AU?n.A5:n.BW)-1,n.iY+n.F-(n.AU?n.BW:n.A5)+1)&&i.P2(!1,!0))},A3H:function(e){var i=this;ZC.move||i.TR(e)}}),ZC.A6O=ZC.M5.C7({$i:function(e){this.b(e),this.SK=null},parse:function(){this.b(),this.o.value instanceof Array||(this.BU=this.L),this.o.value instanceof Array&&null!==ZC._n_(this.o.value[2])?this.SK=ZC._f_(this.o.value[2]):this.SK=2},ABC:function(){return{color:"-1"===this.A.A2.A0?this.N.A0:this.A.A2.A0}},getTooltipPosition:function(e,i){var t=this,n=t.A.getSize(ZC._a_(t.SK));return this.b(e,i,n)},XP:function(){return{"background-color":"-1"===this.A.A2.AE?this.N.AE:this.A.A2.AE,"border-color":"-1"===this.A.A2.AE?this.N.AE:this.A.A2.AE,color:this.N.C1}},KE:function(e,i,t,n){var a=this,l=a.A.ML();ZC._cp_(i,l);var o=ZC.AP.GF(a.SK,l);return a.CV=[["%v0",a.BU],["%v1",a.AD],["%v2",o],["%node-size-value",o]],e=a.b(e,i,t,n)},setup:function(){var e=this,i=e.A.B1,t=e.A.CM,n=[i.V,i.A1,t.V,t.A1];if(e.JL!==n){if("bubble"===e.A.AF){if(e.A.LJ&&e.A.PT){var a=ZC.AO.W7(e.A.PT[0],e.A.PT[1]),l=(e.BU-a[0])/(a[1]-a[0]);e.iX=i.I4(e.A.R3)-i.A9/2+e.A.RH+l*(i.A9-2*e.A.RH)}else e.iX=i.B2(e.BU);e.iY=t.B2(e.AD)}else e.iY=i.B2(e.BU),e.iX=t.B2(e.AD);e.JL=n}e.HY||(e.copy(e.A),e.E7=e.A.E7,e.DE()&&e.parse(!1),e.HY=!0)},ACC:function(e){var i,t=this,n="auto";null!==ZC._n_(i=e.o.placement)&&(n=i);var a=e.I,l=e.F,o=t.E["marker.size"],r=t.iX-a/2,s=t.iY-l/2,A=0,C=0;switch(n){case"top":s-=l/2+o,C=t.iY-t.C.P.iY+o;break;case"bottom":s+=l/2+o,C=t.C.P.iY+t.C.P.F-t.iY+o;break;case"left":r-=a/2+o,A=t.iX-t.C.P.iX+o;break;case"right":r+=a/2+o,A=t.C.P.iX+t.C.P.I-t.iX+o}return null!==ZC._n_(e.o.x)&&(r=e.iX),null!==ZC._n_(e.o.y)&&(s=e.iY),r<t.C.P.iX&&(r=t.C.P.iX+A),r+a>t.C.P.iX+t.C.P.I&&(r=t.C.P.iX+t.C.P.I-a-A),s<t.C.P.iY&&(s=t.C.P.iY+C),s+l>t.C.P.iY+t.C.P.F&&(s=t.C.P.iY+t.C.P.F-l-C),[ZC._i_(r),ZC._i_(s)]},paint:function(e){var i=this;void 0===e&&(e=!1),i.b();var t=i.A.B1,n=i.A.CM;i.setup(),i.E["marker.size"]=i.A.getSize(ZC._a_(i.SK)),e||(t.CQ?ZC.DT(i.iX,n.iX+(n.AU?n.BW:n.A5)-1,n.iX+n.I-(n.AU?n.A5:n.BW)+1)&&ZC.DT(i.iY,t.iY+(t.AU?t.BW:t.A5)-1,t.iY+t.F-(t.AU?t.A5:t.BW)+1)&&i.P2(!1,!0):ZC.DT(i.iX,t.iX+(t.AU?t.BW:t.A5)-1,t.iX+t.I-(t.AU?t.A5:t.BW)+1)&&ZC.DT(i.iY,n.iY+(n.AU?n.A5:n.BW)-1,n.iY+n.F-(n.AU?n.BW:n.A5)+1)&&i.P2(!1,!0))},A3H:function(e){var i=this;ZC.move||i.TR(e)}}),ZC.A8V=ZC.M5.C7({U:null,$i:function(e){this.b(e)},parse:function(){this.b()},AAO:function(){this.b();var e=this,i=e.C.E;i.update.npv=i.update["node-percent-value"]=e.KE("%npv")},KE:function(e,i,t,n){var a=this,l=a.A.ML();ZC._cp_(i,l),-1===e.indexOf("%npv")&&-1===e.indexOf("%node-percent-value")||null!==ZC._n_(l.decimals)&&-1!==l.decimals||(l.decimals=1);var o=0,r="0";if(a.A.A.KH[a.L]>0&&(r=""+(o=100*a.AD/a.A.A.KH[a.L])),a.A.A.A6.length>1&&a.A.L===a.A.A.A6.length-1){var s=0;if(null===ZC._n_(a.A.o.totals)){for(var A=0;A<a.A.A.A6.length-1;A++)if(a.A.A.A6[A].AM){var C=0,c="0";a.A.A.KH[a.L]>0&&(c=""+(C=100*a.A.A.A6[A].R[a.L].AD/a.A.A.KH[a.L])),null!==ZC._n_(l.decimals)&&(c=C.toFixed(ZC.BQ(0,ZC._i_(l.decimals)))),s+=ZC._f_(c)}r=""+(o=Math.max(0,100-s))}}null!==ZC._n_(l.decimals)&&(r=o.toFixed(ZC.BQ(0,ZC._i_(l.decimals))));var u=ZC._f_(a.A.A.KH[a.L]||"0"),p=""+u;return p=ZC.AP.GF(u,l,a.A),a.CV=[["%node-percent-value",r],["%npv",r],["%pie-total-value",p]],e=a.b(e,i,t,n)},getTooltipPosition:function(e,i){var t,n,a,l=this,o=(l.B3+l.BI)/2%360;switch(i){case"out":n=(t=ZC.AO.BK(l.iX,l.iY,l.AI+l.DR+e.DR,o))[0]+l.BJ,a=t[1]+l.BH,o>270&&o<=360?a-=e.F:o>90&&o<=180?n-=e.I:o>180&&o<=270&&(n-=e.I,a-=e.F);break;case"center":n=(t=ZC.AO.BK(l.iX,l.iY,l.CN+.5*(l.AI-l.CN)+l.DR,o))[0]+l.BJ,a=t[1]+l.BH;break;default:n=l.iX+l.BJ,a=l.iY+l.BH}return{x:n,y:a}},UV:function(e){var i,t=this,n=(t.B3+t.BI)/2%360,a=0;null!==ZC._n_(i=e["offset-r"])&&(a=ZC._f_(ZC._p_(i))),a<1&&(a*=t.AI);var l=ZC.AO.BK(t.iX,t.iY,t.CN+.6*(t.AI-t.CN)+t.DR+a,n);return[l[0],l[1],{reference:t,center:!0}]},ADH:function(){var e=this,i=(e.B3+e.BI)/2%360,t=ZC.AO.BK(e.iX,e.iY,e.CN+.5*(e.AI-e.CN)+e.DR,i);return[t[0],t[1]]},setup:function(){var e=this,i=e.C.BN(e.A.BT("k")[0]),t=e.L%i.GX,n=Math.floor(e.L/i.GX);e.iX=i.iX+t*i.GH+i.GH/2+i.BJ,e.iY=i.iY+n*i.G8+i.G8/2+i.BH,e.HY||(e.copy(e.A),e.E7=e.A.E7,e.DE()&&e.parse(!1),e.HY=!0)},ABC:function(e){var i,t=this,n={},a="out";return null!==ZC._n_(i=e.o.placement)&&(a=i),n.color="out"===a?t.A0:t.C1,n},ACC:function(e){var i,t=this,n="out";null!==ZC._n_(i=e.o.placement)&&(n=i);var a,l,o,r,s,A=e.I,C=e.F,c=(t.B3+t.BI)/2%360,u=c;if("out"===n){c=u=t.A.A.Y4["n"+t.L][t.A.L];var p=function(i,n){n<0&&(n=360+n),n%=360;var a=(s=ZC.AO.BK(t.iX,t.iY,i+t.DR+e.DR+20,n))[0]+e.BJ-A/2,l=s[1]+e.BH-C/2;return n>=0&&n<=90||n>=270&&n<=360?a+=A/2+10:a-=A/2+10,[a,l]},Z=p(t.AI,u);a=Z[0],l=Z[1],t.U=e;var h={x:a,y:l,width:A,height:C},d=zingchart.DEV.SPREADTYPE;r=!0;for(var f=0,_=0,g=-1,v=0,b=0;r&&b<1024;){r=!1;for(var m=0,B=t.A.A.TQ.length;m<B;m++)o=t.A.A.TQ[m],(ZC.AO.XI(h,o)||h.x+e.I>t.C.P.iX+t.C.P.I||h.x<t.C.P.iX||h.y+e.F>t.C.P.iY+t.C.P.F||h.y<t.C.P.iY)&&(r=!0,0===d?(f+=.4,g*=-1):1===d&&(_+=2),Z=p(t.AI+_,u+f*g),h.x=Z[0],h.y=Z[1],b++,++v>100&&(v=0,0===d?(f=0,_+=2):1===d&&(_=0,f+=.4,g*=-1)))}a=h.x,l=h.y,c=u+f,o={text:t.A.AR,x:h.x,y:h.y,width:A,height:C,plotindex:t.A.L,nodeindex:t.L},t.A.A.TQ.push(o)}else if("in"===n||"radial"===n){var E=t.CN<30?.65:.5;a=(s=t.B3%360==t.BI%360?0===t.CN?[t.iX,t.iY]:ZC.AO.BK(t.iX,t.iY,t.CN+.3*(t.AI-t.CN)+t.DR+e.DR,270):ZC.AO.BK(t.iX,t.iY,t.CN+E*(t.AI-t.CN)+t.DR+e.DR,c))[0]-A/2+t.BJ,l=s[1]-C/2+t.BH}else if(-1!==n.indexOf("fixed=")){var K=n.split(/=|;|,/),F=(t.AI+t.CN)/2,D=c;K[1]&&(F=(F=ZC.IG(K[1],!0))>=-1&&F<=1||-1!==K[1].indexOf("%")?t.CN+t.DR+F*(t.AI-t.CN):t.CN+t.DR+F),K[2]&&(D=(D=ZC.IG(K[2],!0))>=-1&&D<=1||-1!==K[2].indexOf("%")?t.B3+D*(t.BI-t.B3):t.B3+D),K[3]&&("+"===K[3].charAt(0)||"-"===K[3].charAt(0)?(D%=360,e.AA=D+ZC._f_(K[3]),e.AA>90&&e.AA<270&&(e.AA+=180)):e.AA=ZC._f_(K[3])),a=(s=ZC.AO.BK(t.iX,t.iY,F,D))[0]-A/2,l=s[1]-C/2}else"center"===n&&(a=t.iX-A/2+t.BJ,l=t.iY-C/2+t.BH);return r&&(a=-9999,l=-9999,e.AM=!1),null!==ZC._n_(e.o.x)&&(a=e.iX),null!==ZC._n_(e.o.y)&&(l=e.iY),a>=-2&&(a=ZC._a_(a)),l>=-2&&(l=ZC._a_(l)),[ZC._i_(a),ZC._i_(l),c]},appendToValueBox:function(e){var i=this,t={};if("radial"===e.o.placement){var n=.9*ZC._a_(i.AI-i.CN),a=Math.PI*(i.AI+i.CN)*.9*ZC._a_(i.BI-i.B3)/360,l=ZC._i_(Math.max(n,a)/(.75*e.DK));if(null===ZC._n_(e.o.visible)?t.visible=1===i.A.A.A6.length||a>1.25*e.DK:t.visible=e.J5.visible,null===ZC._n_(e.o["max-chars"])&&(t["max-chars"]=l),null===ZC._n_(e.o.angle)){var o=(i.B3+i.BI)/2%360;i.A.A.A6.length>1?a>n?o>0&&o<180?o-=90:o+=90:o>90&&o<270&&(o+=180):o=0,t.angle=o}}return t},GU:function(e,i){var t,n=this,a=n.b(e,i);if(e)return a;if(n.AM&&a.AM&&null!==ZC._n_(a.AR)&&""!==a.AR){var l="out";if(null!==ZC._n_(t=a.o.placement)&&(l=t),"out"===l){var o=!0;if(null!==ZC._n_(t=a.o.connected)&&(o=ZC._b_(t)),o){var r=new ZC.DW(n.A);r.Z=r.C6=n.A.CO("bl",0),r.append(n.A.C2.o),r.K=n.K+"-connector",r.B9=n.A0,r.DQ="line",r.D=[];var s=a.E.positioninfo,A=(n.B3+n.BI)/2%360,C=ZC.AO.BK(n.iX,n.iY,n.AI+n.DR,A);C[0]+=n.BJ,C[1]+=n.BH,r.D.push(C);var c=ZC.AO.BK(n.iX,n.iY,n.AI+n.DR+10,A);c[0]+=n.BJ,c[1]+=n.BH,a.iX>=n.iX?"vml"===n.H.AC?r.D.push([s[0],s[1]+a.F/2]):r.D.push([c[0],c[1],s[0],s[1]+a.F/2]):"vml"===n.H.AC?r.D.push([s[0]+a.I+2,s[1]+a.F/2]):r.D.push([c[0],c[1],s[0]+a.I+2,s[1]+a.F/2]),r.parse(),r.JE=function(e){return n.JE(e)},r.DE()&&r.parse(),r.AM&&r.paint()}}}},paint:function(){var e,i=this;if(i.b(),!(i.AD<0)){var t=i.C.BN(i.A.BT("k")[0]);i.setup();var n="pie-sel-"+i.A.L+"-"+i.L;if(i.o.detached&&"undefined"==typeof i.C.E[n]&&(i.C.E[n]=!0),i.AI=ZC.CY(t.G8,t.GH)/2,null!==ZC._n_(i.A.o.size)){var a=ZC.IG(i.A.o.size,!1);i.AI=a<=1?i.AI*a:a}else i.AI=t.JM*i.AI;i.CN<=1&&(i.CN*=i.AI),i.CN=Math.max(0,i.CN),i.o.slice=i.CN,i.DR<=1&&(i.DR*=i.AI),i.o["offset-r"]=i.DR,i.C.E[n]&&(i.DR+=ZC._i_(.15*i.AI));var l=i.N=i.A.I8(i,i);if(i.GZ(l),i.AD>=0||0===i.A.A.KH[i.L]){var o=new ZC.DW(i.A);o.K=i.K,o.Z=i.A.CO("bl",1),o.C6=i.A.CO("bl",0),o.copy(l);var r=i.iX,s=i.iY;i.DR>0&&(r=(e=ZC.AO.BK(i.iX,i.iY,i.DR,(i.B3+i.BI)/2))[0],s=e[1]),o.iX=r,o.iY=s,o.AI=i.AI,o.o.size=i.AI,o.DQ="pie",o.B3=ZC._f_(i.B3),o.BI=ZC._f_(i.BI),o.CN=i.CN,o.E.plotidx=i.A.L,o.E.nodeidx=i.L,o.parse(),i.G0=o;var A=function(){if(!i.A.K5&&i.AM){var e=o.FB(),t=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",n=ZC.Q.GC("poly",i.A.E8,i.A.IR)+'class="'+t+'" id="'+i.K+'" coords="'+e+'" />';i.A.A.HN.push(n)}i.A.U&&i.GU()};if(i.A.GA&&!i.C.HF){var C=o,c={};C.iX=r,C.iY=s,C.B3=i.B3,C.BI=i.BI,c.angleStart=i.B3,c.angleEnd=i.BI,c.x=r,c.y=s;var u=i.A.L6;C.C5=0,c.alpha=l.C5,2===u?(C.BI=i.B3,c.angleEnd=i.BI):3===u?(C.AI=i.CN,c.size=i.AI):4===u?(e=ZC.AO.BK(i.iX,i.iY,1.2*i.AI,(i.B3+i.BI)/2),C.iX=e[0],C.iY=e[1],c.x=r,c.y=s):5===u&&(C.B3=C.BI=(i.B3+i.BI)/2,c.angleStart=i.B3,c.angleEnd=i.BI);var p;for(p in i.A.FT)C[ZC.EA.GK[ZC.EC(p)]]=i.A.FT[p],c[ZC.EC(p)]=l[ZC.EA.GK[ZC.EC(p)]];if(null===ZC._n_(i.C.EM)&&(i.C.EM={}),null!==ZC._n_(i.C.EM[i.A.L+"-"+i.L]))for(p in i.C.EM[i.A.L+"-"+i.L])C[ZC.EA.GK[ZC.EC(p)]]=i.C.EM[i.A.L+"-"+i.L][p];i.C.EM[i.A.L+"-"+i.L]={},ZC._cp_(c,i.C.EM[i.A.L+"-"+i.L]);var Z=new ZC.EA(C,c,i.A.JD,i.A.L2,ZC.EA.RC[i.A.L5],function(){A()});Z.AW=i,i.LL(Z)}else o.paint(),A()}else i.A.U&&i.GU()}},A3H:function(e){var i=this;ZC.move||i.M2({layer:e,type:"shape",initcb:function(){if(this.copy(i),this.iX=i.iX,this.iY=i.iY,i.DR>0){var e=ZC.AO.BK(i.iX,i.iY,i.DR,(i.B3+i.BI)/2);this.iX=e[0],this.iY=e[1]}this.AI=i.AI,this.DQ="pie",this.A0=i.A.BP[3],this.AE=i.A.BP[2],this.B3=ZC._f_(i.B3),this.BI=ZC._f_(i.BI),this.CN=i.CN},parsecb:function(){this.o.size=i.AI,this.o.slice=i.CN,this.o["offset-r"]=i.DR}})},WX:function(e,i){var t=this;if(t.b(e,i),"click"===i&&e.which<=1&&t.A.A7J){zingchart.SKIP.ANIMATION=!0,zingchart.SKIP.EVENT=!0;var n="pie-sel-"+t.A.L+"-"+t.L;t.C.E[n]="undefined"==typeof t.C.E[n]||!t.C.E[n],t.C.K3(),zingchart.SKIP.EVENT=!1,zingchart.SKIP.ANIMATION=!1}}}),ZC.A41=ZC.M5.C7({setup:function(){var e=this,i=e.C.BN(e.A.BT("k")[0]);e.iX=i.iX+i.I/2+i.BJ,e.iY=i.iY+i.F/2+i.BH,e.HY||(e.copy(e.A),e.o.slice=null,e.E7=e.A.E7,e.DE()&&e.parse(!1),e.HY=!0)},ADH:function(){var e=this,i=(e.B3+e.BI)/2%360,t=ZC.AO.BK(e.iX,e.iY,e.CN+e.E.bandwidth/2+e.DR,i);return[t[0],t[1]]},KE:function(e,i,t,n){var a=this,l=a.A.ML();ZC._cp_(i,l);var o=100*a.AD/a.A.A.KH[a.L],r=""+o;return null!==ZC._n_(l.decimals)&&(r=o.toFixed(ZC.BQ(0,ZC._i_(l.decimals)))),a.CV=[["%node-percent-value",r],["%npv",r]],e=a.b(e,i,t,n)},ABC:function(e){var i={},t="in";return null!==ZC._n_(e.o.placement)&&(t=e.o.placement),i.color="out"===t?this.A0:this.C1,i},ACC:function(e){var i=this,t="in";null!==ZC._n_(e.o.placement)&&(t=e.o.placement);var n,a,l,o=e.I,r=e.F,s=(i.B3+i.BI)/2%360;return"out"===t?i.L===i.A.R.length-1?(l=ZC.AO.BK(i.iX,i.iY,i.A.TV+i.A.R.length*(i.E.bandwidth+i.E.bandspace)+15+e.DR,s),n=s>=0&&s<90||s>=270&&s<360?l[0]+10+i.BJ:l[0]-o-10+i.BJ,a=l[1]-r/2+i.BH):(n=-1,a=-1):(n=(l=ZC.AO.BK(i.iX,i.iY,i.CN+i.E.bandwidth/2+e.DR,s))[0]-o/2+i.BJ,a=l[1]-r/2+i.BH),null!==ZC._n_(e.o.x)&&(n=e.iX),null!==ZC._n_(e.o.y)&&(a=e.iY),[ZC._i_(n),ZC._i_(a),s]},GU:function(e){var i=this,t=i.b(e);if(e)return t;if(t.AM&&null!==ZC._n_(t.AR)&&""!==t.AR){var n="in";if(null!==ZC._n_(t.o.placement)&&(n=t.o.placement),"out"===n&&i.L===i.A.R.length-1){var a=new ZC.DW(i.A);a.Z=a.C6=i.H.usc()?i.H.mc("top"):i.C.AJ["3d"]||i.H.K5?ZC.AK(i.C.K+"-plots-vb-c"):ZC.AK(i.C.K+"-plot-"+i.A.L+"-vb-c"),a.append(i.A.C2.o),a.B9=i.A0,a.DQ="line",a.D=[];var l=(i.B3+i.BI)/2%360,o=ZC.AO.BK(i.iX,i.iY,i.CN+i.E.bandwidth+t.DR,l),r=ZC.AO.BK(i.iX,i.iY,i.A.TV+i.A.R.length*(i.E.bandwidth+i.E.bandspace)+15+t.DR,l);o[0]+=i.BJ,r[0]+=i.BJ,o[1]+=i.BH,r[1]+=i.BH,a.D.push(o),l>=0&&l<90||l>=270&&l<360?a.D.push([r[0],r[1],r[0]+10,r[1]]):a.D.push([r[0],r[1],r[0]-10,r[1]]),a.parse(),a.JE=function(e){return i.JE(e)},a.DE()&&a.parse(),a.AM&&a.paint()}}},paint:function(){function e(){var e=C.FB(),i=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area",n=ZC.Q.GC("poly",t.A.E8,t.A.IR)+'class="'+i+'" id="'+t.K+'" coords="'+e+'" />';t.A.A.HN.push(n),t.A.U&&t.A.U.AM&&t.GU()}var i,t=this;t.b();var n=t.C.BN(t.A.BT("k")[0]);t.setup(),t.AI=ZC.CY(n.I,n.F)/2,t.AI=n.JM*t.AI,t.CN=t.A.TV,t.CN<1&&(t.CN=t.A.TV*t.AI);var a=t.A.SH;a<1&&(a=t.A.SH*t.AI);var l=2,o=t.AI-t.CN;if(null!==ZC._n_(t.A.aBandWidths)&&null!==ZC._n_(t.A.aBandWidths[t.L])){(l=ZC._f_(t.A.aBandWidths[t.L]))>1&&(l/=100),l=ZC._i_(o*l),l=ZC.BQ(l,2);for(var r=0,s=0;s<t.L;s++)r+=ZC._f_(t.A.aBandWidths[s]);r>1&&(r/=100),r=ZC._i_(o*r),t.CN+=r,t.AI=t.CN+l}else l=(o-(t.A.R.length-1)*a)/t.A.R.length,l=ZC.BQ(l,2),t.CN+=t.L*(l+a),t.AI=t.CN+l;var A=t.N=t.A.I8(t,t);t.GZ(A);var C=new ZC.DW(t.A);C.K=t.K,C.Z=t.A.CO("bl",1),C.C6=t.A.CO("bl",0),C.copy(A),C.iX=t.iX,C.iY=t.iY,C.DQ="pie",C.B3=t.B3,C.BI=t.BI,C.CN=t.CN,C.AI=t.AI,C.parse();var c=C.CN;if(t.E.bandwidth=l,t.E.bandspace=a,t.A.GA&&!t.C.HF){var u=C,p={};u.B3=t.B3,u.BI=t.BI,p.angleStart=t.B3,p.angleEnd=t.BI;var Z=t.A.L6;if(u.C5=0,p.alpha=A.C5,2===Z)u.BI=t.B3,p.angleEnd=t.BI;else if(3===Z)u.CN=c+t.E.bandwidth,p.slice=c;else if(4===Z){var h=ZC.AO.BK(t.iX,t.iY,t.AI,(t.B3+t.BI)/2);u.iX=h[0],u.iY=h[1],p.x=t.iX,p.y=t.iY}else 5===Z&&(u.B3=u.BI=(t.B3+t.BI)/2,p.angleStart=t.B3,p.angleEnd=t.BI);for(i in t.A.FT)u[ZC.EA.GK[ZC.EC(i)]]=t.A.FT[i],p[ZC.EC(i)]=A[ZC.EA.GK[ZC.EC(i)]];if(t.C.EM||(t.C.EM={}),null!==ZC._n_(t.C.EM[t.A.L+"-"+t.L]))for(i in t.C.EM[t.A.L+"-"+t.L])u[ZC.EA.GK[ZC.EC(i)]]=t.C.EM[t.A.L+"-"+t.L][i];t.C.EM[t.A.L+"-"+t.L]={},ZC._cp_(p,t.C.EM[t.A.L+"-"+t.L]);var d=new ZC.EA(u,p,t.A.JD,t.A.L2,ZC.EA.RC[t.A.L5],function(){e()});d.AW=t,t.LL(d)}else C.paint(),e()},A3H:function(e){var i=this;ZC.move||i.M2({layer:e,type:"shape",initcb:function(){this.copy(i),this.iX=i.iX,this.iY=i.iY,this.DQ="pie",this.A0=i.A.BP[3],this.AE=i.A.BP[2],this.B3=i.B3,this.BI=i.BI,this.CN=i.CN,this.AI=i.AI},parsecb:function(){this.o.slice=null}})}}),ZC.A6R=ZC.M5.C7({$i:function(e){this.b(e);var i=this;i.CG=null,i.CL=null,i.MI="max"},KE:function(e,i,t,n){var a=this;return"range"===a.A.CW&&(a.CV=[["%node-min-value",a.CG],["%node-max-value",a.CL]]),e=a.b(e,i,t,n)},A9L:function(){var e=this;if("range"===e.A.CW&&e.o.value instanceof Array){var i=e.o.value.length;i>2&&(e.BU=ZC._f_(e.o.value[0])),e.CG=ZC._f_(e.o.value[i-2]),e.CL=ZC._f_(e.o.value[i-1]),e.AD=e.CR=e.CL,e.DN.push(e.CG)}else e.b()},setup:function(){var e=this,i=e.A.B1,t=e.A.CM,n=[i.V,i.A1,t.V,t.A1];if(e.JL!==n){var a;a="range"===e.A.CW?t.TZ("min"===e.MI?e.CG:e.CL):t.TZ(e.CR);var l=null!==ZC._n_(e.BU),o=i.A77(l?e.BU:e.L,a,l);e.iX=o[0],e.iY=o[1],e.JL=n}e.HY||(e.copy(e.A),e.E7=e.A.E7,e.DE()&&e.parse(!1),e.HY=!0)},ACC:function(e){var i,t=this,n=t.A.B1,a=t.A.CM,l=t.C.BN("scale"),o=l.iX+l.I/2,r=l.iY+l.F/2,s=e.I,A=e.F,C="out";null!==ZC._n_(e.o.placement)&&(C=e.o.placement);var c=1.15;switch(C){case"out":c=1.15;break;case"over":c=1;break;case"in":c=.85;break;case"middle":c=.5}var u,p,Z=n.EG/(n.X.length-(360===n.EG||n.DL?0:1)),h=a.TZ(t.CR);switch(t.A.CW){case"matrix":case"piano":var d=(ZC.CY(l.I/2,l.F/2)*l.JM-a.A5)/t.A.A.A6.length;u=a.A5+t.A.L*d,p=a.A5+(t.A.L+1)*d,i=ZC.AO.BK(o,r,(u+p)/2*c+e.DR,n.DG+(n.DL?Z/2:0)+t.L*Z);break;default:if(null!==ZC._n_(t.BU)){var f=n.DG+n.EG*(t.BU-n.B4)/(n.BL-n.B4);i=ZC.AO.BK(o,r,a.A5+h*c+e.DR,f)}else i=ZC.AO.BK(o,r,a.A5+h*c+e.DR,n.DG+(n.DL?Z/2:0)+t.L*Z)}return i[0]-=s/2,i[1]-=A/2,null!==ZC._n_(e.o.x)&&(i[0]=e.iX),null!==ZC._n_(e.o.y)&&(i[1]=e.iY),[ZC._i_(i[0]),ZC._i_(i[1])]},ABC:function(){return{color:"rose"===this.A.CW?this.A0:this.B9}},XP:function(){return{"background-color":"rose"===this.A.CW?this.A0:this.B9,"border-color":"rose"===this.A.CW?this.A0:this.B9,color:this.C1}},paint:function(){function e(){if(n.A.RS>=n.A.R.length&&n.A.XU){var e=n.C.K+"-node-area "+n.C.K+"-plotset-plot-"+n.A.L+"-node-area zc-node-area",i="",t="";-1!==ZC.AV(["line","area","range"],n.A.CW)?""!==(t="range"!==n.A.CW||n.A.X2?ZC.AO.PM(ZC.AO.YW(n.E.points),4):ZC.AO.PM(p,4))&&(i=ZC.Q.GC("poly",n.A.E8,n.A.IR)+'class="'+e+'" id="'+n.K+'" coords="'+t+'" />'):-1!==ZC.AV(["rose","column","bar","matrix","piano"],n.A.CW)&&(t=A.FB(),i=ZC.Q.GC("poly",n.A.E8,n.A.IR)+'class="'+e+'" id="'+n.K+'" coords="'+t+'" data-z-sort="'+(n.A.A.A6.length-n.A.L)+'" />'),n.A.A.HN.push(i)}n.A.U&&n.A.E.vboxid!==n.K&&n.GU()}var i,t,n=this;n.b();var a=n.A.Q2,l=n.A.A45,o=n.A.B1,r=n.A.CM,s=n.A.R;n.setup(),n.CZ=!1,n.C6=n.A.CO("bl",0);var A,C,c,u=[],p=[],Z=[],h=[],d="range"===n.A.CW,f=n.N=n.A.I8(n,n);if(n.A.HT&&n.GZ(f),-1!==ZC.AV(["line","area","range"],n.A.CW)){u=[],p=[],Z=[],h=[];var _=n.iX,g=n.iY,v=n.iX,b=n.iY;d&&(n.MI="max",n.setup(),_=n.iX,g=n.iY,n.MI="min",n.setup(),v=n.iX,b=n.iY),n.A.IP&&(n.A.D.push([_,g]),n.A.AG.push([_,g])),n.L>0?(c=s[n.L-1])&&(c.MI="max",c.setup(),C=ZC.AO.JO(c.iX,c.iY,_,g),u.push(C),p.push(C),d&&(c.MI="min",c.setup(),C=ZC.AO.JO(c.iX,c.iY,v,b),Z.push(C),h.push(C))):(c=s[n.A.R.length-1])&&(c.MI="max",c.setup(),C=ZC.AO.JO(c.iX,c.iY,_,g),u.push(C),p.push(C),d&&(c.MI="min",c.setup(),C=ZC.AO.JO(c.iX,c.iY,v,b),Z.push(C),h.push(C))),u.push([_,g]),p.push([_,g]),d&&(Z.push([v,b]),h.push([v,b])),n.L<n.A.R.length-1?(c=s[n.L+1])&&(c.MI="max",c.setup(),C=ZC.AO.JO(_,g,c.iX,c.iY),u.push(C),p.push(C),d&&(c.MI="min",c.setup(),C=ZC.AO.JO(v,b,c.iX,c.iY),Z.push(C),h.push(C))):(c=s[0])&&(c.MI="max",c.setup(),C=ZC.AO.JO(_,g,c.iX,c.iY),u.push(C),p.push(C),d&&(c.MI="min",c.setup(),C=ZC.AO.JO(v,b,c.iX,c.iY),Z.push(C),h.push(C))),ZC.CS.setup(a,f)}d&&(u.push(null),u=u.concat(Z.reverse()),p=p.concat(h.reverse()));var m,B,E,K,F,D=n.C.P;m=n.C.BN("scale"),"area"!==n.A.CW&&"range"!==n.A.CW||(B=m.iX+m.I/2,E=m.iY+m.F/2,K=360/o.X.length,"area"===n.A.CW&&p.push([B,E]),n.A.IP||((F=new ZC.DW(n.A)).K=n.K+"-area",F.Z=n.A.CO("bl",0),F.copy(f),F.L1=!0,F.D=p,F.parse(),F.C5=n.A.HQ,1===F.C5&&0===F.AT&&(F.A0=ZC.AP.QT(ZC.AP.G5(F.A0),20),F.AE=ZC.AP.QT(ZC.AP.G5(F.AE),20),F.AT=2,F.BV=F.A0),F.D1=[D.iX,D.iY,D.iX+D.I,D.iY+D.F],ZC.CS.setup(l,F))),n.E.points=u,n.E.pointsarea=p,n.setNodeData({points:u,pointsarea:p});var X,I,x,y,w,Y,M,H,L,P,N;if(n.A.IP&&n.L===o.A1&&("area"===n.A.CW&&((F=new ZC.DW(n.A)).K=n.K+"-area",F.Z=n.A.CO("bl",0),F.copy(n.A),F.L1=!0,F.D=n.A.AG,F.parse(),F.C5=n.A.HQ,F.D1=[D.iX,D.iY,D.iX+D.I,D.iY+D.F],F.paint()),"line"!==n.A.CW&&"area"!==n.A.CW&&"range"!==n.A.CW||(n.A.D[0]&&n.A.D.push([n.A.D[0][0],n.A.D[0][1]]),ZC.CS.paint(a,f,n.A.D))),-1!==ZC.AV(["dots","scatter","area","line"],n.A.CW))n.P2(!1,!0);else if(-1!==ZC.AV(["rose","column","bar","piano","matrix"],n.A.CW)){(A=new ZC.DW(n.A)).K=n.K+"-pie",A.copy(f),A.Z=n.A.CO("bl",1),A.C6=n.A.CO("bl",0),B=(m=n.C.BN("scale")).iX+m.I/2,E=m.iY+m.F/2;var O=.1*(K=o.EG/(o.X.length-(360===o.EG||o.DL?0:1)));n.A.CB||(O=.1*K+.4*K*n.A.L/n.A.A.A6.length),null!==ZC._n_(i=n.A.A5T)&&(O=i<1?K*i:i),Y=r.A5;var k=n.A.A;n.A.CB&&null!==ZC._n_(k.A1Y["stack"+n.L])&&(Y+=k.A1Y["stack"+n.L]);var Q=ZC._i_(r.TZ(n.CR));if(n.A.CB&&(k.A1Y["stack"+n.L]=Q),null===ZC._n_(n.BU))x=o.DG+n.L*K-K/2+O+(o.DL?K/2:0),y=o.DG+(n.L+1)*K-K/2-O+(o.DL?K/2:0);else{var R=o.DG+o.EG*(n.BU-o.B4)/(o.BL-o.B4);x=R-K/2+O,y=R+K/2-O}if(w=Q+r.A5,"piano"===n.A.CW||"matrix"===n.A.CW){var z=(ZC.CY(m.I/2,m.F/2)*m.JM-r.A5)/n.A.A.A6.length;w=r.A5+n.A.L*z,Y=r.A5+(n.A.L+1)*z}n.setNodeData({x:B,y:E,sz:w,sl:Y,as:x,ae:y}),A.iX=B,A.iY=E,A.DQ="pie",A.B3=x,A.BI=y,A.AI=w,A.CN=Y,A.parse(),A.JE=function(e){return n.JE(e)},A.DE()&&A.parse()}if(n.A.GA&&-1!==ZC.AV(["line","area","rose","column","bar","matrix","piano"],n.A.CW)){switch(n.A.CW){case"line":case"area":I={},(X=new ZC.DW(n)).copy(f),X.K=n.K,X.Z=n.A.CO("bl",1),X.C6=n.A.CO("bl",0),X.D=u,X.C5=0,I.alpha=f.C5,I.points=u;var T=[];"area"===n.A.CW&&(L={},M=[],(H=F).D=p,H.C5=0,L.points=p,L.alpha=n.A.HQ);break;case"rose":case"column":case"bar":case"matrix":case"piano":I={},(X=A).iX=B,X.iY=E,X.B3=x,X.BI=y,X.C5=0,I.angleStart=x,I.angleEnd=y,I.x=B,I.y=E,I.size=w,I.alpha=f.C5}var G=n.A.L6,S=n.C.P;switch(G){case 1:break;case 7:switch(n.A.CW){case"line":case"area":for(t=0;t<u.length;t++)T[t]=[u[t][0],S.iY+S.F/2];if(X.D=T,I.points=u,"area"===n.A.CW){for(t=0;t<p.length;t++)M[t]=[p[t][0],S.iY+S.F/2];H.D=M,L.points=p}}break;case 2:switch(n.A.CW){case"line":case"area":for(t=0;t<u.length;t++)T[t]=[S.iX+S.I/2,u[t][1]];if(X.D=T,I.points=u,"area"===n.A.CW){for(t=0;t<p.length;t++)M[t]=[S.iX+S.I/2,p[t][1]];H.D=M,L.points=p}break;case"rose":case"column":case"bar":case"matrix":case"piano":X.BI=x,I.angleEnd=y}break;case 3:switch(n.A.CW){case"line":case"area":for(t=0;t<u.length;t++)T[t]=[S.iX+S.I/2,S.iY+S.F/2];if(X.D=T,I.points=u,"area"===n.A.CW){for(t=0;t<p.length;t++)M[t]=[S.iX+S.I/2,S.iY+S.F/2];H.D=M,L.points=p}break;case"rose":case"column":case"bar":case"matrix":case"piano":X.AI=r.A5,I.size=w}break;case 4:switch(n.A.CW){case"line":case"area":for(t=0;t<u.length;t++)P=S.iX+S.I/2-u[t][0],N=S.iY+S.F/2-u[t][1],T[t]=[S.iX+S.I/2-2.5*P,S.iY+S.F/2-2.5*N];if(X.D=T,I.points=u,"area"===n.A.CW){for(t=0;t<p.length;t++)P=S.iX+S.I/2-p[t][0],N=S.iY+S.F/2-p[t][1],M[t]=[S.iX+S.I/2-2.5*P,S.iY+S.F/2-2.5*N];H.D=M,L.points=p}break;case"rose":case"column":case"bar":case"matrix":case"piano":X.AI=2*w,I.size=w}break;case 5:switch(n.A.CW){case"rose":case"column":case"bar":case"matrix":case"piano":X.B3=X.BI=(x+y)/2,I.angleStart=x,I.angleEnd=y}}var J;for(J in n.A.FT)X[ZC.EA.GK[ZC.EC(J)]]=n.A.FT[J],I[ZC.EC(J)]=f[ZC.EA.GK[ZC.EC(J)]];if(null===ZC._n_(n.C.EM)&&(n.C.EM={},"area"===n.A.CW&&(n.C.SM={})),null!==ZC._n_(n.C.EM[n.A.L+"-"+n.L])){for(J in n.C.EM[n.A.L+"-"+n.L])X[ZC.EA.GK[ZC.EC(J)]]=n.C.EM[n.A.L+"-"+n.L][J];if("area"===n.A.CW)for(J in n.C.SM[n.A.L+"-"+n.L])H[ZC.EA.GK[ZC.EC(J)]]=n.C.SM[n.A.L+"-"+n.L][J]}n.C.EM[n.A.L+"-"+n.L]={},ZC._cp_(I,n.C.EM[n.A.L+"-"+n.L]),"area"===n.A.CW&&(n.C.SM[n.A.L+"-"+n.L]={},ZC._cp_(L,n.C.SM[n.A.L+"-"+n.L]));var V=new ZC.EA(X,I,n.A.JD,n.A.L2,ZC.EA.RC[n.A.L5],function(){e()});V.AW=n,-1!==ZC.AV(["line","area"],n.A.CW)&&(V.II=a);var U=null;"area"===n.A.CW&&((U=new ZC.EA(H,L,n.A.JD,n.A.L2,ZC.EA.RC[n.A.L5],function(){})).AW=n),n.LL(V,U)}else{switch(n.A.CW){case"line":case"area":case"range":n.A.IP||(ZC.CS.paint(a,f,u),"area"!==n.A.CW&&"range"!==n.A.CW||F.paint());break;case"rose":case"column":case"bar":case"matrix":case"piano":A.paint()}e()}},A3H:function(e){var i=this;ZC.move||(i.A.IB&&i.A.AM&&(-1!==ZC.AV(["line","area","range"],i.A.CW)?(i.A1C(e),"area"!==i.A.CW&&"range"!==i.A.CW||i.M2({layer:e,type:"area",initcb:function(){this.D=i.E.pointsarea},setupcb:function(){this.B0=0,this.AT=0,this.C5=i.A.HQ;var e=i.C.P;this.D1=[e.iX,e.iY,e.iX+e.I,e.iY+e.F]}})):-1!==ZC.AV(["rose","column","bar","matrix","piano"],i.A.CW)&&i.M2({layer:e,type:"shape",initcb:function(){this.copy(i),this.B9=i.A.BP[1],this.BV=i.A.BP[1],this.A0=i.A.BP[3],this.AE=i.A.BP[2],this.iX=i.getNodeData("x"),this.iY=i.getNodeData("y"),this.CN=i.getNodeData("sl"),this.B3=i.getNodeData("as"),this.BI=i.getNodeData("ae"),this.DQ="pie",this.AI=i.getNodeData("sz")}})),-1!==ZC.AV(["dots","scatter","line"],i.A.CW)&&i.TR(e))}}),ZC.A5I=ZC.Z9.C7({$i:function(e){this.b(e),this.FG=null},KE:function(e,i,t,n){var a=this,l=a.A.ML();ZC._cp_(i,l);var o=ZC.AP.GF(a.A.PP[a.L],l);return a.CV=[["%node-goal-value",o],["%g",o]],e=a.b(e,i,t,n)},ACC:function(e){var i=this;return"goal"===ZC._n_(e.o.placement)?[i.FG.iX+i.FG.I/2-e.I/2,i.FG.iY-e.F]:i.b(e)},A9L:function(){var e,i=this;if(i.DN=[],i.CJ=i.o.value,"string"==typeof i.o.value){var t=ZC.AV(i.A.CM.JI,i.o.value);-1!==t?i.AD=t:(i.A.CM.JI.push(i.o.value),i.AD=i.A.CM.JI.length-1)}else i.AD=ZC._f_(i.o.value);i.A.o.goals&&null!==ZC._n_(e=i.A.o.goals[i.L])&&i.DN.push(ZC._f_(e))},paint:function(){this.b()},paint_:function(){var e,i,t=this;if(null!==ZC._n_(t.A.PP[t.L])&&t.AM){var n=t.A.CM.B2(t.A.PP[t.L]);t.FG=new ZC.HS(t.A),t.FG.K=t.K+"-goal",t.FG.copy(t.A.FG),t.FG.Z=t.A.CO("fl",0),t.FG.C6=t.A.CO("fl",0),t.FG.JE=function(e){return t.JE(e)},t.FG.DE()&&t.FG.parse(),null!==ZC._n_(e=t.FG.o)&&null!==ZC._n_(e.styles)&&null!==ZC._n_(i=e.styles[t.L])&&("string"==typeof i?t.FG.append({"background-color":i}):t.FG.append(i),t.FG.parse());var a=.2;if(null!==ZC._n_(e=t.FG.o.extension)&&(a=ZC._f_(e)),t.FG.iX=t.getNodeData("x")-t.I*a,t.FG.I=t.I*(1+2*a),null===ZC._n_(t.A.FG.o.height)&&(t.FG.F=ZC.CY(5,t.C.P.F/30)),t.FG.iY=n-t.FG.F/2,t.FG.AM){t.FG.paint();var l=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area";t.A.A.HN.push(ZC.Q.GC("rect",t.A.E8,t.A.IR)+'class="'+l+'" id="'+t.K+'--goal" coords="'+ZC._i_(t.FG.iX+t.A.BJ+ZC.MAPTX)+","+ZC._i_(t.FG.iY+t.A.BH+ZC.MAPTX)+","+ZC._i_(t.FG.iX+t.A.BJ+t.FG.I+ZC.MAPTX)+","+ZC._i_(t.FG.iY+t.A.BH+t.FG.F+ZC.MAPTX)+'" />')}}},A3H:function(e){var i=this;if(!ZC.move&&(i.b(e),i.FG&&i.FG.AM)){var t=new ZC.HS(i.A);t.copy(i.FG),t.Z=ZC.AK(i.C.K+"-hover-c"),t.M4=!1,t.iX=i.FG.iX,t.iY=i.FG.iY,t.paint()}}}),ZC.A5J=ZC.Z2.C7({$i:function(e){this.b(e),this.FG=null},KE:function(e,i,t,n){var a=this,l=a.A.ML();ZC._cp_(i,l);var o=ZC.AP.GF(a.A.PP[a.L],l);return a.CV=[["%node-goal-value",o],["%g",o]],e=a.b(e,i,t,n)},ACC:function(e){var i=this;return"goal"===ZC._n_(e.o.placement)?[i.FG.iX+i.FG.I,i.FG.iY+i.FG.F/2-e.F/2]:i.b(e)},A9L:function(){var e,i=this;if(i.DN=[],i.CJ=i.o.value,"string"==typeof i.o.value){var t=ZC.AV(i.A.CM.JI,i.o.value);-1!==t?i.AD=t:(i.A.CM.JI.push(i.o.value),i.AD=i.A.CM.JI.length-1)}else i.AD=ZC._f_(i.o.value);i.A.o.goals&&null!==ZC._n_(e=i.A.o.goals[i.L])&&i.DN.push(ZC._f_(e))},paint:function(){this.b()},paint_:function(){var e,i,t=this;if(null!==ZC._n_(t.A.PP[t.L])&&t.AM){var n=t.A.CM.B2(t.A.PP[t.L]);t.FG=new ZC.HS(t.A),t.FG.K=t.K+"-goal",t.FG.copy(t.A.FG),t.FG.Z=t.A.CO("fl",0),t.FG.C6=t.A.CO("fl",0),t.FG.JE=function(e){return t.JE(e)},t.FG.DE()&&t.FG.parse(),null!==ZC._n_(e=t.FG.o)&&null!==ZC._n_(e.styles)&&null!==ZC._n_(i=e.styles[t.L])&&("string"==typeof i?t.FG.append({"background-color":i}):t.FG.append(i),t.FG.parse());var a=.2;if(null!==ZC._n_(e=t.FG.o.extension)&&(a=ZC._f_(e)),t.FG.iY=t.getNodeData("y")-t.F*a,t.FG.F=t.F*(1+2*a),null===ZC._n_(t.A.FG.o.width)&&(t.FG.I=ZC.CY(5,t.C.P.I/30)),t.FG.iX=n-t.FG.I/2,t.FG.AM){t.FG.paint();var l=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area";t.A.A.HN.push(ZC.Q.GC("rect",t.A.E8,t.A.IR)+'class="'+l+'" id="'+t.K+'--goal" coords="'+ZC._i_(t.FG.iX+t.A.BJ+ZC.MAPTX)+","+ZC._i_(t.FG.iY+t.A.BH+ZC.MAPTX)+","+ZC._i_(t.FG.iX+t.A.BJ+t.FG.I+ZC.MAPTX)+","+ZC._i_(t.FG.iY+t.A.BH+t.FG.F+ZC.MAPTX)+'" />')}}},A3H:function(e){var i=this;if(!ZC.move&&(i.b(e),i.FG&&i.FG.AM)){var t=new ZC.HS(i.A);t.copy(i.FG),t.Z=ZC.AK(i.C.K+"-hover-c"),t.M4=!1,t.iX=i.FG.iX,t.iY=i.FG.iY,t.paint()}}}),ZC.A72=ZC.M5.C7({A9L:function(){var e,i=this;i.o.value instanceof Array&&null!==ZC._n_(i.o.value[1])&&(i.CJ=i.o.value[1],"string"==typeof i.o.value[0]?-1!==(e=ZC.AV(i.A.B1.IM,i.o.value[0]))?i.BU=e:(i.A.B1.IM.push(i.o.value[0]),i.BU=i.A.B1.IM.length-1):i.BU=ZC._f_(i.o.value[0]),"string"==typeof i.o.value[1]?-1!==(e=ZC.AV(i.A.CM.JI,i.o.value[1]))?i.AD=e:(i.A.CM.JI.push(i.o.value[1]),i.AD=i.A.CM.JI.length-1):i.AD=ZC._f_(i.o.value[1]),null!==i.BU&&i.A.UY(i.BU,i.L))},setup:function(){var e=this,i=e.A.B1,t=e.A.CM,n=[i.V,i.A1,t.V,t.A1];e.JL!==n&&(i.AU?e.iX=i.iX+i.I-i.A5-(e.L-i.V+1)*i.A9:e.iX=i.iX+i.A5+(e.L-i.V)*i.A9,t.AU?e.iY=t.iY+t.A5+(e.A.L-t.B4)*t.A9:e.iY=t.iY+t.F-t.A5-(e.A.L-t.B4+1)*t.A9,e.JL=n),e.HY||(e.copy(e.A),e.E7=e.A.E7,e.DE()&&e.parse(!1),e.HY=!0),e.GZ(e)},ACC:function(e){var i=this,t="over";null!==ZC._n_(e.o.placement)&&(t=e.o.placement);var n=e.I,a=e.F,l=i.iX+i.I/2-n/2,o=i.iY+i.F/2-a/2;switch(t){case"top":o-=i.F/2+a/2+2;break;case"left":l-=i.I/2+n/2+2;break;case"bottom":o+=i.F/2+a/2+2;break;case"right":l+=i.I/2+n/2+2}return null!==ZC._n_(e.o.x)&&(l=e.iX),null!==ZC._n_(e.o.y)&&(o=e.iY),[ZC._i_(l),ZC._i_(o)]},ABC:function(){return{color:"#000"}},getFormatValue:function(){return this.CJ},KE:function(e,i,t,n){var a,l=this,o=l.A.CM,r=l.A.L;return a=null!==ZC._n_(o.BX[r])?o.BX[r]:o.X[r],l.CV=[["%y",a],["%scale-value-label",a]],e=l.b(e,i,t,n)},T1:function(){var e=this;e.setup();var i,t=e.A.B1,n=e.A.CM;switch(e.A.A6U){case"plot-max":i=(ZC._f_(e.AD)-e.A.XY)/(e.A.A4B-e.A.XY);break;case"plot-total":i=(ZC._f_(e.AD)-e.A.XY)/(e.A.A5W-e.A.XY);break;case"chart-max":i=(ZC._f_(e.AD)-e.A.WO)/(e.A.A3K-e.A.WO);break;case"chart-total":i=(ZC._f_(e.AD)-e.A.WO)/(e.A.A4D-e.A.WO)}switch(ZC.P4(i)||(i=.5),e.I=t.A9,e.F=n.A9,e.A.CW){case"alpha":case"brightness":e.C5=e.A.Q3+i*(e.A.UO-e.A.Q3);break;case"horizontal":e.I=1.01+e.A.Q3*t.A9+i*t.A9*(e.A.UO-e.A.Q3),t.AU&&(e.iX=e.iX+t.A9-e.I);break;case"vertical":e.F=1.01+e.A.Q3*n.A9+i*n.A9*(e.A.UO-e.A.Q3),n.AU||(e.iY=e.iY+n.A9-e.F);break;case"size":e.I=1.01+e.A.Q3*t.A9+i*t.A9*(e.A.UO-e.A.Q3),e.F=1.01+e.A.Q3*n.A9+i*n.A9*(e.A.UO-e.A.Q3),e.iX+=(t.A9-e.I)/2,e.iY+=(n.A9-e.F)/2}e.iX-=e.AT/2,e.iY-=e.AT/2,e.I+=e.AT,e.F+=e.AT},paint:function(){var e=this;e.b(),e.T1();var i=e.C.P;if(!(e.iY+5<i.iY||e.iY+5>=i.iY+i.F)){if(e.AM){var t=zingchart.pool.getInstance("HS",e,e.A.K+"-piano-box");if(t.K=e.K,t.copy(e),("none"!==e.A.IY||e.C.IT[e.A.L]||e.C.KD||e.A.SQ&&e.A.SQ[e.L])&&t.copy(e.A.I8(e,t)),t.iX=e.iX,t.iY=e.iY,t.I=e.I,t.F=e.F,t.Z=e.A.CO("bl",1),t.C6=e.A.CO("bl",0),(-1!==t.BV&&t.AT>0||t.PQ+t.OC+t.NL+t.P6!==""||-1!==t.A0||-1!==t.AE||""!==t.D9||""!==t.GQ||""!==t.HJ)&&(t.paint(),!t.K5)){var n=e.C.K+"-node-area "+e.C.K+"-plotset-plot-"+e.A.L+"-node-area zc-node-area";e.A.A.HN.push(ZC.Q.GC("rect",e.A.E8,e.A.IR)+'class="'+n+'" id="'+e.K+'" coords="'+ZC._i_(e.iX+ZC.MAPTX)+","+ZC._i_(e.iY+ZC.MAPTX)+","+ZC._i_(e.iX+e.I+ZC.MAPTX)+","+ZC._i_(e.iY+e.F+ZC.MAPTX)+'" />')}}e.A.U&&e.A.U.AM&&e.GU()}},A3H:function(e){var i=this;ZC.move||i.M2({layer:e,type:"box",initcb:function(){this.AE=i.A.BP[3],this.B9=i.A.BP[1],this.BV=i.A.BP[1],this.A0=i.A.BP[2]},setupcb:function(){this.iX=i.iX,this.iY=i.iY,this.I=i.I,this.F=i.F}})}}),ZC.A5O=ZC.M5.C7({setup:function(){var e=this,i=e.A.B1,t=e.A.CM,n=[i.V,i.A1,t.V,t.A1];e.JL!==n&&(i.AU?e.iX=i.iX+i.I-i.A5-(e.L+1)*i.A9:e.iX=i.iX+i.A5+e.L*i.A9,t.AU?e.iY=t.iY+t.A5+e.A.L*t.A9:e.iY=t.iY+t.F-t.A5-(e.A.L+1)*t.A9,e.JL=n),e.HY||(e.copy(e.A),e.E7=e.A.E7,e.DE()&&e.parse(!1),e.HY=!0)},KE:function(e,i,t,n){var a=this,l=ZC._f_(a.A.A.F7["%pstack-"+a.L+"-0-sum"]||"0"),o=a.A.ML();ZC._cp_(i,o),a.CV=[];var r,s;if(a.A.L>0&&a.A.A.A6[a.A.L-1]&&a.A.A.A6[a.A.L-1].R[a.L]?s=""+(r=100*a.AD/a.A.A.A6[a.A.L-1].R[a.L].AD):(r=100,s="100"),null!==ZC._n_(o.decimals)&&(s=r.toFixed(ZC.BQ(0,ZC._i_(o.decimals)))),a.CV.push(["%output-percent-value",s]),l>0){var A=100*a.AD/l,C=""+A;null!==ZC._n_(o.decimals)&&(C=A.toFixed(ZC.BQ(0,ZC._i_(o.decimals)))),a.CV.push(["%node-percent-value",C]),a.CV.push(["%npv",C])}return e=a.b(e,i,t,n)},paint:function(){var e,i,t,n,a,l,o,r,s,A,C,c,u,p=this;p.b();var Z=p.A.B1,h=p.A.CM;p.setup(),"static"===p.A.A2D?(p.C.AY.S7[p.L],e=p.C.AY.A84[p.L]):(p.C.AY.B4,e=p.C.AY.BL);var d=p.A.KX;d<=1&&(d*=Z.A9);var f=p.A.NK;f<=1&&(f*=Z.A9);var _=p.A.LR;_<=1&&(_*=Z.A9);var g=Z.A9-d-f-_,v=_+g*(p.AD/e),b=0;p.A.L+1<p.A.A.A6.length&&p.A.A.A6[p.A.L+1].R[p.L]&&(b=p.A.A.A6[p.A.L+1].R[p.L].AD);var m=_+g*(b/e);p.E["entry-exit"]=[v,m];var B=p.iX+(Z.AU?f:d)+g/2+_/2;if(n=[],h.AU?n.push([B-v/2,p.iY],[B+v/2,p.iY],[B+m/2,p.iY+h.A9],[B-m/2,p.iY+h.A9],[B-v/2,p.iY]):n.push([B-v/2,p.iY+h.A9],[B+v/2,p.iY+h.A9],[B+m/2,p.iY],[B-m/2,p.iY],[B-v/2,p.iY+h.A9]),p.E.points=n,p.AM){var E=new ZC.DW(p.A);E.K=p.K+"-trapeze",E.copy(p),E.D=n,E.parse(),E.Z=p.A.CO("bl",1),E.C6=p.A.CO("bl",0),E.paint();var K=E.FB(),F=p.C.K+"-node-area "+p.C.K+"-plotset-plot-"+p.A.L+"-node-area zc-node-area";p.A.A.HN.push(ZC.Q.GC("poly",p.A.E8,p.A.IR)+'class="'+F+'" id="'+p.K+'" coords="'+K+'" />')}for(i=0,t=p.A.OO.length;i<t;i++){var D=p.A.OO[i];D&&null!==ZC._n_(D.o.values)&&null!==ZC._n_(D.o.values[p.L])&&(null===ZC._n_(D.o.width)&&null===ZC._n_(D.o.height)||((a=new ZC.HS(p.A)).append(D.o),a.parse()),l=0,o=0,null!==ZC._n_(D.o.width)&&(l=a.I),null!==ZC._n_(D.o.height)&&(o=a.F),0===l&&(l=ZC.BQ(20,Z.A9/10)),0===o&&(o=ZC.BQ(16,h.A9/10)),(r=new ZC.DW(p.A)).K=p.K+"-arrow-entry",r.copy(p),r.append(D.o),r.parse(),n=[],1===p.A.OO.length?A=p.iY+h.A9/2:(C=h.A9/(p.A.OO.length+1),A=p.iY+C+i*C),Z.AU?(s=p.iX+Z.A9+l-d-g/2+(v+m)/4-_/2+2,n.push([s,A-2*o/6],[s-2*l/3,A-o/6],[s-2*l/3,A-3*o/6],[s-l,A],[s-2*l/3,A+3*o/6],[s-2*l/3,A+o/6],[s,A+2*o/6],[s,A-2*o/6])):(s=p.iX+d-l+g/2-(v+m)/4+_/2-2,n.push([s,A-2*o/6],[s+2*l/3,A-o/6],[s+2*l/3,A-3*o/6],[s+l,A],[s+2*l/3,A+3*o/6],[s+2*l/3,A+o/6],[s,A+2*o/6],[s,A-2*o/6])),r.D=n,r.parse(),r.Z=p.A.CO("bl",1),r.C6=p.A.CO("bl",0),r.paint(),null!==ZC._n_(D.o.labels)&&null!==ZC._n_(D.o.labels[p.L])&&""!==D.o.labels[p.L]&&(c=D.o.labels[p.L],(u=new ZC.DS(p.A)).K=p.K+"-entry-label-"+i,u.GJ=p.K+"-entry-label "+p.A.K+"-entry-label zc-entry-label",u.copy(p),u.o.text=c,u.append(D.o),null!==ZC._n_(D.o.label)&&u.append(D.o.label),u.Z=p.A.CO("fl",0),u.parse(),Z.AU?u.iX=s+2:u.iX=s-u.I-2,u.iY=A-u.F/2,u.paint(),u.EL()))}for(i=0,t=p.A.VE.length;i<t;i++){var X=p.A.VE[i];X&&null!==ZC._n_(X.o.values)&&null!==ZC._n_(X.o.values[p.L])&&(null===ZC._n_(X.o.width)&&null===ZC._n_(X.o.height)||((a=new ZC.HS(p.A)).append(X.o),a.parse()),l=0,o=0,null!==ZC._n_(X.o.width)&&(l=a.I),null!==ZC._n_(X.o.height)&&(o=a.F),0===l&&(l=ZC.BQ(20,Z.A9/10)),0===o&&(o=ZC.BQ(16,h.A9/10)),(r=new ZC.DW(p.A)).K=p.K+"-arrow-exit",r.copy(p),r.append(X.o),r.parse(),n=[],1===p.A.VE.length?A=p.iY+h.A9/2:(C=h.A9/(p.A.VE.length+1),A=p.iY+C+i*C),Z.AU?(s=p.iX+f+g/2-(v+m)/4+_/2-2,n.push([s,A-2*o/6],[s-2*l/3,A-o/6],[s-2*l/3,A-3*o/6],[s-l,A],[s-2*l/3,A+3*o/6],[s-2*l/3,A+o/6],[s,A+2*o/6],[s,A-2*o/6])):(s=p.iX+Z.A9-f-g/2+(v+m)/4-_/2+2,n.push([s,A-2*o/6],[s+2*l/3,A-o/6],[s+2*l/3,A-3*o/6],[s+l,A],[s+2*l/3,A+3*o/6],[s+2*l/3,A+o/6],[s,A+2*o/6],[s,A-2*o/6])),r.D=n,r.parse(),r.Z=p.A.CO("bl",1),r.C6=p.A.CO("bl",0),r.paint(),null!==ZC._n_(X.o.labels)&&null!==ZC._n_(X.o.labels[p.L])&&""!==X.o.labels[p.L]&&(c=X.o.labels[p.L],(u=new ZC.DS(p.A)).K=p.K+"-exit-label-"+i,u.GJ=p.K+"-exit-label "+p.A.K+"-exit-label zc-exit-label",u.copy(p),u.o.text=c,u.append(X.o),null!==ZC._n_(X.o.label)&&u.append(X.o.label),u.parse(),u.Z=p.A.CO("fl",0),Z.AU?u.iX=s-l-u.I-2:u.iX=s+l+2,u.iY=A-u.F/2,u.paint(),u.EL()))}p.A.U&&p.GU()},ACC:function(e){var i,t=this,n=t.A.B1,a=t.A.CM;null!==ZC._n_(e.o.placement)&&(i=e.o.placement);var l=t.iX+n.A9/2-e.I/2,o=t.iY+a.A9/2-e.F/2,r=t.E["entry-exit"],s=(r[0]+r[1])/2;switch(i){case"in":case"auto":break;case"top":o=t.iY+5;break;case"bottom":o=t.iY+a.A9-e.F-5;break;case"left":l=t.iX+n.A9/2-s/2+5;break;case"left-out":l=t.iX+n.A9/2-s/2-e.I-5;break;case"right":l=t.iX+n.A9/2+s/2-e.I-5;break;case"right-out":l=t.iX+n.A9/2+s/2+5}return null!==ZC._n_(e.o.x)&&(l=e.iX),null!==ZC._n_(e.o.y)&&(o=e.iY),[ZC._i_(l),ZC._i_(o)]},A3H:function(){var e=this;if(!ZC.move&&e.A.IB&&e.A.AM){e.b();var i=new ZC.DW(e.A);i.K=e.K+"-trapeze-hover",i.Z=ZC.AK(e.C.K+"-hover-c"),i.D=e.E.points,i.parse(),i.B9=e.A.BP[1],i.BV=e.A.BP[1],i.A0=e.A.BP[2],i.AE=e.A.BP[3],i.append(e.A.IB.o),i.parse(),i.JE=function(i){return e.JE(i)},i.DE()&&i.parse(),i.AM&&i.paint()}}}),ZC.A5N=ZC.M5.C7({setup:function(){var e=this,i=e.A.B1,t=e.A.CM,n=[i.V,i.A1,t.V,t.A1];e.JL!==n&&(i.AU?e.iY=i.iY+i.A5+e.L*i.A9:e.iY=i.iY+i.F-i.A5-(e.L+1)*i.A9,t.AU?e.iX=t.iX+t.I-t.A5-(e.A.L+1)*t.A9:e.iX=t.iX+t.A5+e.A.L*t.A9,e.JL=n),e.HY||(e.copy(e.A),e.E7=e.A.E7,e.DE()&&e.parse(!1),e.HY=!0)},KE:function(e,i,t,n){var a=this,l=ZC._f_(a.A.A.F7["%pstack-"+a.L+"-0-sum"]||"0"),o=a.A.ML();ZC._cp_(i,o),a.CV=[];var r,s;if(a.A.L>0&&a.A.A.A6[a.A.L-1]&&a.A.A.A6[a.A.L-1].R[a.L]?s=""+(r=100*a.AD/a.A.A.A6[a.A.L-1].R[a.L].AD):(r=100,s="100"),null!==ZC._n_(o.decimals)&&(s=r.toFixed(ZC.BQ(0,ZC._i_(o.decimals)))),a.CV.push(["%output-percent-value",s]),l>0){var A=100*a.AD/l,C=""+A;null!==ZC._n_(o.decimals)&&(C=A.toFixed(ZC.BQ(0,ZC._i_(o.decimals)))),a.CV.push(["%node-percent-value",C]),a.CV.push(["%npv",C])}return e=a.b(e,i,t,n)},ACC:function(e){var i,t=this,n=t.A.B1,a=t.A.CM;null!==ZC._n_(e.o.placement)&&(i=e.o.placement);var l=t.iX+a.A9/2-e.I/2,o=t.iY+n.A9/2-e.F/2,r=t.E["entry-exit"],s=(r[0]+r[1])/2;switch(i){case"in":case"auto":break;case"top":l=t.iX+a.A9-e.I-5;break;case"bottom":l=t.iX+5;break;case"left":o=t.iY+n.A9/2-s/2+5;break;case"left-out":o=t.iY+n.A9/2-s/2-e.F-5;break;case"right":o=t.iY+n.A9/2+s/2-e.F-5;break;case"right-out":o=t.iY+n.A9/2+s/2+5}return null!==ZC._n_(e.o.x)&&(l=e.iX),null!==ZC._n_(e.o.y)&&(o=e.iY),[ZC._i_(l),ZC._i_(o)]},paint:function(){var e,i,t,n,a,l,o,r,s,A,C,c,u,p=this;p.b();var Z=p.A.B1,h=p.A.CM;p.setup(),"static"===p.A.A2D?(p.C.AY.S7[p.L],e=p.C.AY.A84[p.L]):(p.C.AY.B4,e=p.C.AY.BL);var d=p.A.KX;d<=1&&(d*=Z.A9);var f=p.A.NK;f<=1&&(f*=Z.A9);var _=p.A.LR;_<=1&&(_*=Z.A9);var g=Z.A9-d-f-_,v=_+g*(p.AD/e),b=0;p.A.L+1<p.A.A.A6.length&&p.A.A.A6[p.A.L+1].R[p.L]&&(b=p.A.A.A6[p.A.L+1].R[p.L].AD);var m=_+g*(b/e);p.E["entry-exit"]=[v,m];var B=p.iY+(Z.AU?d:f)+g/2+_/2;if(o=[],h.AU?o.push([p.iX+h.A9,B-v/2],[p.iX+h.A9,B+v/2],[p.iX,B+m/2],[p.iX,B-m/2],[p.iX+h.A9,B-v/2]):o.push([p.iX,B-v/2],[p.iX,B+v/2],[p.iX+h.A9,B+m/2],[p.iX+h.A9,B-m/2],[p.iX,B-v/2]),p.E.points=o,p.AM){var E=new ZC.DW(p.A);E.K=p.K+"-trapeze",E.copy(p),E.D=o,E.parse(),E.Z=p.A.CO("bl",1),E.C6=p.A.CO("bl",0),E.paint();var K=E.FB(),F=p.C.K+"-node-area "+p.C.K+"-plotset-plot-"+p.A.L+"-node-area zc-node-area";p.A.A.HN.push(ZC.Q.GC("poly",p.A.E8,p.A.IR)+'class="'+F+'" id="'+p.K+'" coords="'+K+'" />')}for(i=0,t=p.A.OO.length;i<t;i++){var D=p.A.OO[i];D&&null!==ZC._n_(D.o.values)&&null!==ZC._n_(D.o.values[p.L])&&(null===ZC._n_(D.o.width)&&null===ZC._n_(D.o.height)||((l=new ZC.HS(p.A)).append(D.o),l.parse()),n=0,a=0,null!==ZC._n_(D.o.width)&&(n=l.I),null!==ZC._n_(D.o.height)&&(a=l.F),0===a&&(a=ZC.BQ(20,Z.A9/10)),0===n&&(n=ZC.BQ(16,h.A9/10)),(r=new ZC.DW(p.A)).K=p.K+"-arrow-entry",r.copy(p),r.append(D.o),r.parse(),o=[],1===p.A.OO.length?s=p.iX+h.A9/2:(C=h.A9/(p.A.OO.length+1),s=p.iX+C+i*C),Z.AU?(A=p.iY+d-a+g/2-(v+m)/4+_/2-2,o.push([s-2*n/6,A],[s+2*n/6,A],[s+n/6,A+2*a/3],[s+3*n/6,A+2*a/3],[s,A+a],[s-3*n/6,A+2*a/3],[s-n/6,A+2*a/3])):(A=p.iY+Z.A9+a-d-g/2+(v+m)/4-_/2+2,o.push([s-2*n/6,A],[s+2*n/6,A],[s+n/6,A-2*a/3],[s+3*n/6,A-2*a/3],[s,A-a],[s-3*n/6,A-2*a/3],[s-n/6,A-2*a/3])),r.D=o,r.parse(),r.Z=p.A.CO("bl",1),r.C6=p.A.CO("bl",0),r.paint(),null!==ZC._n_(D.o.labels)&&null!==ZC._n_(D.o.labels[p.L])&&""!==D.o.labels[p.L]&&(c=D.o.labels[p.L],(u=new ZC.DS(p.A)).K=p.K+"-entry-label-"+i,u.GJ=p.K+"-entry-label "+p.A.K+"-entry-label zc-entry-label",u.copy(p),u.o.text=c,u.append(D.o),null!==ZC._n_(D.o.label)&&u.append(D.o.label),u.AR=c,u.Z=p.A.CO("fl",0),u.parse(),u.iX=s-u.I/2,Z.AU?u.iY=A-u.F-2:u.iY=A+2,u.paint(),u.EL()))}for(i=0,t=p.A.VE.length;i<t;i++){var X=p.A.VE[i];X&&null!==ZC._n_(X.o.values)&&null!==ZC._n_(X.o.values[p.L])&&(null===ZC._n_(X.o.width)&&null===ZC._n_(X.o.height)||((l=new ZC.HS(p.A)).append(X.o),l.parse()),n=0,a=0,null!==ZC._n_(X.o.width)&&(n=l.I),null!==ZC._n_(X.o.height)&&(a=l.F),0===a&&(a=ZC.BQ(20,Z.A9/10)),0===n&&(n=ZC.BQ(16,h.A9/10)),(r=new ZC.DW(p.A)).K=p.K+"-arrow-exit",r.copy(p),r.append(X.o),r.parse(),o=[],1===p.A.OO.length?s=p.iX+h.A9/2:(C=h.A9/(p.A.OO.length+1),s=p.iX+C+i*C),Z.AU?(A=p.iY+d+g/2+(v+m)/4+_/2+2,o.push([s-2*n/6,A],[s+2*n/6,A],[s+n/6,A+2*a/3],[s+3*n/6,A+2*a/3],[s,A+a],[s-3*n/6,A+2*a/3],[s-n/6,A+2*a/3])):(A=p.iY+Z.A9-d-g/2-(v+m)/4-_/2-2,o.push([s-2*n/6,A],[s+2*n/6,A],[s+n/6,A-2*a/3],[s+3*n/6,A-2*a/3],[s,A-a],[s-3*n/6,A-2*a/3],[s-n/6,A-2*a/3])),r.D=o,r.parse(),r.Z=p.A.CO("bl",1),r.C6=p.A.CO("bl",0),r.paint(),null!==ZC._n_(X.o.labels)&&null!==ZC._n_(X.o.labels[p.L])&&""!==X.o.labels[p.L]&&(c=X.o.labels[p.L],(u=new ZC.DS(p.A)).K=p.K+"-exit-label-"+i,u.GJ=p.K+"-exit-label "+p.A.K+"-exit-label zc-exit-label",u.copy(p),u.o.text=c,u.append(X.o),null!==ZC._n_(X.o.label)&&u.append(X.o.label),u.AR=c,u.Z=p.A.CO("fl",0),u.parse(),u.iX=s-u.I/2,Z.AU?u.iY=A+a+2:u.iY=A-a-u.F-2,u.paint(),u.EL()))}p.A.U&&p.GU()},A3H:function(){var e=this;if(!ZC.move&&e.A.IB&&e.A.AM){e.b();var i=new ZC.DW(e.A);i.K=e.K+"-trapeze-hover",i.Z=ZC.AK(e.C.K+"-hover-c"),i.D=e.E.points,i.parse(),i.B9=e.A.BP[1],i.BV=e.A.BP[1],i.A0=e.A.BP[2],i.AE=e.A.BP[3],i.append(e.A.IB.o),i.parse(),i.JE=function(i){return e.JE(i)},i.DE()&&i.parse(),i.AM&&i.paint()}}}),ZC.A6Y=ZC.M5.C7({$i:function(e){this.b(e),this.IZ=null},setup:function(){var e=this,i=e.A.B1,t=e.A.CM,n=[i.V,i.A1,t.V,t.A1];if(e.JL!==n&&(null!==e.BU?e.iX=i.B2(e.BU):e.iX=i.I4(e.L),e.iY=t.B2(e.AD),e.E.WZ=t.B2(e.AD),e.E.A9R=t.B2(e.DN[0]),e.E.AAQ=t.B2(e.DN[1]),e.E.V5=t.B2(e.DN[2]),e.JL=n),(!e.HY||e.A.IP&&e.A.MR.size<3)&&(e.copy(e.A),e.E7=e.A.E7,e.DE()&&e.parse(!1),e.IZ=new ZC.DS(e.A),e.IZ.copy(e),e.DN[2]<e.AD&&(e.IZ.A0=e.IZ.AE=e.C1,e.IZ.BV=e.B9),e.DN[2]<e.AD?(e.A.o["trend-down"]&&(e.IZ.append(e.A.o["trend-down"]),e.IZ.parse()),e.A.MR.down||(e.A.MR.down=new ZC.DS(e.A),e.A.MR.down.copy(e.IZ),e.A.MR.size++)):e.DN[2]>e.AD?(e.A.o["trend-up"]&&(e.IZ.append(e.A.o["trend-up"]),e.IZ.parse()),e.A.MR.up||(e.A.MR.up=new ZC.DS(e.A),e.A.MR.up.copy(e.IZ),e.A.MR.size++)):(e.A.o["trend-equal"]&&(e.IZ.append(e.A.o["trend-equal"]),e.IZ.parse()),e.A.MR.equal||(e.A.MR.equal=new ZC.DS(e.A),e.A.MR.equal.copy(e.IZ),e.A.MR.size++)),e.HY=!0),e.A.IP){e.DN[2]<e.AD?e.IZ=e.A.MR.down:e.DN[2]>e.AD?e.IZ=e.A.MR.up:e.IZ=e.A.MR.equal;var a=ZC.CY(e.E.WZ,e.E.V5),l=ZC.BQ(e.E.WZ,e.E.V5)-ZC.CY(e.E.WZ,e.E.V5);l<2&&(l=2),e.E.A7O=a+l/2}},KE:function(e,i,t,n){function a(e){return ZC.AP.GF(e,o)}var l=this,o=l.A.ML();return ZC._cp_(i,o),l.CV=[["%node-value-stock-open",a(l.AD)],["%open",a(l.AD)],["%v0",a(l.AD)],["%node-value-stock-high",a(l.DN[0])],["%high",a(l.DN[0])],["%v1",a(l.DN[0])],["%node-value-stock-low",a(l.DN[1])],["%low",a(l.DN[1])],["%v2",a(l.DN[1])],["%node-value-stock-close",a(l.DN[2])],["%close",a(l.DN[2])],["%v3",a(l.DN[2])]],e=l.b(e,i,t,n)},A9L:function(){var e,i,t=this;if(t.DN=[],t.o.value instanceof Array&&5===t.o.value.length)t.BU=ZC._f_(t.o.value[0]),null!==t.BU&&(null!==ZC._n_(t.A.JY[t.BU])&&-1!==ZC.AV(t.A.JY[t.BU],t.L)||t.A.UY(t.BU,t.L)),i=[t.o.value[1],t.o.value[2],t.o.value[3],t.o.value[4]];else if(t.o.value[1]instanceof Array){if("string"==typeof t.o.value[0]){var n=ZC.AV(t.A.B1.IM,t.o.value[0]);-1!==n?t.BU=n:(t.A.B1.IM.push(t.o.value[0]),t.BU=t.A.B1.IM.length-1)}else t.BU=ZC._f_(t.o.value[0]);null!==t.BU&&(null!==ZC._n_(t.A.JY[t.BU])&&-1!==ZC.AV(t.A.JY[t.BU],t.L)||t.A.UY(t.BU,t.L)),i=t.o.value[1]}else i=t.o.value;t.CJ=i.join(" "),t.AD=ZC._f_(i[0]),null!==ZC._n_(e=i[1])&&t.DN.push(ZC._f_(e)),null!==ZC._n_(e=i[2])&&t.DN.push(ZC._f_(e)),null!==ZC._n_(e=i[3])&&t.DN.push(ZC._f_(e))},ABC:function(){var e=this,i={};return e.DN[2]<e.AD?i["background-color"]=e.IZ.B9:i["background-color"]=e.IZ.A0,i.color=e.IZ.C1,i},XP:function(){var e=this,i={};return e.DN[2]<e.AD?i["background-color"]=e.IZ.B9:i["background-color"]=e.IZ.A0,i["border-color"]=i["background-color"],i.color=e.IZ.C1,i},A7U:function(){return this.XP()},paint:function(){var e,i=this;i.b();var t=i.A.B1;i.setup();for(var n=t.A9*i.A.W,a=i.A.L,l=0,o=0;o<i.A.A.JZ.stock.length;o++)l++,-1!==ZC.AV(i.A.A.JZ[i.A.AF][o],i.A.L)&&(a=o);var r=i.A.CC;r<=1&&(r*=n);var s=i.A.CT;s<=1&&(s*=n);var A=n-r-s,C=i.A.F3;C<=1&&(C*=A),A<1&&(A=.8*n,r=.1*n,s=.1*n);var c=A,u=i.A.EZ;0!==u&&(C=0),l>1&&(u>1?c=(A-(l-1)*C+(l-1)*u)/l:u*=c=(A-(l-1)*C)/(l-(l-1)*u)),c=ZC._l_(c,1,A);var p=i.iX-n/2+r+a*(c+C)-a*u;p=ZC._l_(p,i.iX-n/2+r,i.iX+n/2-s);var Z=c,h=ZC.CY(i.E.WZ,i.E.V5),d=ZC.BQ(i.E.WZ,i.E.V5)-ZC.CY(i.E.WZ,i.E.V5);d<2&&(d=2),r+s===0&&(p-=.5,Z+=1),i.I=Z,i.F=d,i.iX=p,i.E.A7O=h+d/2,i.setNodeData({x:p,y:h,w:Z,h:d});var f;if(i.AM){f=ZC.Q.E9(i.H.usc()?i.H.K+"-main-c":i.H.K5?i.C.K+"-plots-bl-c":i.C.K+"-plot-"+i.A.L+"-bl-1-c",i.H.AC);var _=i.iX+i.I/2;i.DN[2]<i.AD&&(e=i.A.o["trend-down"])?(i.E["selected-state"]=e["selected-state"],i.E["background-state"]=e["background-state"]):i.DN[2]>i.AD&&(e=i.A.o["trend-up"])?(i.E["selected-state"]=e["selected-state"],i.E["background-state"]=e["background-state"]):i.DN[2]===i.AD&&(e=i.A.o["trend-equal"])&&(i.E["selected-state"]=e["selected-state"],i.E["background-state"]=e["background-state"]);var g,v=i.A.I8(i,i.IZ);switch(i.A.CW){default:(g=[]).push([_,i.E.A9R],[_,ZC.CY(i.E.WZ,i.E.V5)],null,[_,i.E.AAQ],[_,ZC.BQ(i.E.WZ,i.E.V5)]),ZC.CS.paint(f,v,g);var b,m;m=i.DN[2]<i.AD?i.A.ABO:i.DN[2]>i.AD?i.A.ACL:i.A.AB8,0!==i.A.E7.length||void 0===m||i.N.o.override||i.C.KD?(b=new ZC.HS(i.A)).copy(v):b=m,i.GZ(b),b.Z=i.A.CO("bl",1),b.C6=i.A.CO("bl",0),b.K=i.K,b.iX=p,b.iY=h,b.I=i.I,b.F=i.F,b.paint(),0!==i.A.E7.length||void 0!==m||i.N.o.override||i.C.KD||(i.DN[2]<i.AD?i.A.ABO=b:i.DN[2]>i.AD?i.A.ACL=b:i.A.AB8=b);break;case"whisker":case"ohlc":g=[];var B=Math.max(i.I/4,4);g.push([_,i.E.A9R],[_,i.E.AAQ],null,[_-B,i.E.WZ],[_,i.E.WZ],null,[_+B,i.E.V5],[_,i.E.V5]),i.GZ(v),ZC.CS.paint(f,v,g)}if(i.A.FW){var E=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area";i.A.A.HN.push(ZC.Q.GC("rect",i.A.E8,i.A.IR)+'class="'+E+'" id="'+i.K+'" coords="'+ZC._i_(p+ZC.MAPTX)+","+ZC._i_(i.E.A9R+ZC.MAPTX)+","+ZC._i_(p+Z+ZC.MAPTX)+","+ZC._i_(i.E.AAQ+ZC.MAPTX)+'" />')}i.A.U&&i.A.U.AM&&i.GU()}},A3H:function(){var e=this;if(!ZC.move&&e.A.IB&&e.A.AM)switch(e.b(),e.A.CW){case"candlestick":var i=new ZC.HS(e.A);i.K=e.K+"-hover",i.Z=ZC.AK(e.C.K+"-hover-c"),i.C1=e.A.BP[0],i.AE=e.A.BP[3],i.B9=e.A.BP[1],i.BV=e.A.BP[1],i.A0=e.A.BP[2],i.append(e.A.IB.o),i.PR=!0,i.parse(),i.JE=function(i){return e.JE(i)},i.DE()&&i.parse(),e.DN[2]<e.AD&&(i.A0=i.AE=i.C1,i.BV=i.B9),e.DN[2]<e.AD&&e.A.o["trend-down"]?(i.append(e.A.o["trend-down"]),i.append(e.A.o["hover-state"]),e.A.o["trend-down"]["hover-state"]&&i.append(e.A.o["trend-down"]["hover-state"]),i.parse()):e.DN[2]>e.AD&&e.A.o["trend-up"]?(i.append(e.A.o["trend-up"]),i.append(e.A.o["hover-state"]),e.A.o["trend-up"]["hover-state"]&&i.append(e.A.o["trend-up"]["hover-state"]),i.parse()):e.DN[2]===e.AD&&e.A.o["trend-equal"]&&(i.append(e.A.o["trend-equal"]),i.append(e.A.o["hover-state"]),e.A.o["trend-equal"]["hover-state"]&&i.append(e.A.o["trend-equal"]["hover-state"]),i.parse()),i.iX=e.getNodeData("x"),i.iY=e.getNodeData("y"),i.I=e.getNodeData("w"),i.F=e.getNodeData("h");var t=e.C.P;i.iY<t.iY&&(i.F=i.F-(t.iY-i.iY),i.iY=t.iY),i.iY+i.F>t.iY+t.F&&(i.F=t.iY+t.F-i.iY),i.AM&&i.paint()}}}),ZC.A76=ZC.M5.C7({setup:function(){var e=this,i=e.C.BN(e.A.BT("k")[0]),t=e.C.BN(e.A.BT("v")[0]),n=e.L%i.GX,a=Math.floor(e.L/i.GX),l=t.EG/(t.BL-t.B4);e.iX=i.iX+n*i.GH+i.GH/2,e.iY=i.iY+a*i.G8+i.G8/2,e.E.angle=t.DG-t.EG/2+l*(e.AD-t.B4),t.AU&&(e.E.angle=t.DG+t.EG/2-l*(e.AD-t.B4)),e.HY||(e.copy(e.A),e.E7=e.A.E7,e.DE()&&e.parse(!1),e.HY=!0)},ACC:function(e){var i,t,n,a=e.I,l=e.F,o=this,r=o.C.BN(o.A.BT("k")[0]),s=ZC.CY(r.GH/2,r.G8/2)*r.JM,A=o.L%r.GX,C=Math.floor(o.L/r.GX),c=r.iX+A*r.GH+r.GH/2+r.BJ,u=r.iY+C*r.G8+r.G8/2+r.BH;switch(e.o.placement){case"center":t=c-a/2+o.BJ,n=u-l/2+o.BH;break;case"edge":t=(i=ZC.AO.BK(c,u,s+e.DR,o.E.angle))[0]-a/2+o.BJ,n=i[1]-l/2+o.BH;break;case"tip":t=(i=ZC.AO.BK(c,u,o.E.size+e.DR,o.E.angle))[0]-a/2+o.BJ,n=i[1]-l/2+o.BH;break;default:t=(i=ZC.AO.BK(c,u,s/2+e.DR,o.E.angle))[0]-a/2+o.BJ,n=i[1]-l/2+o.BH}return null!==ZC._n_(e.o.x)&&(t=e.iX),null!==ZC._n_(e.o.y)&&(n=e.iY),[ZC._i_(t),ZC._i_(n)]},ABC:function(){return{color:this.A0}},XP:function(){return{"background-color":this.A0,"border-color":this.B9,color:this.C1}},paint:function(){function e(e){var i=[],a=n.A.HP;a[4]>-1&&a[4]<1&&(a[4]=ZC._i_(a[4]*l));var o=ZC.AO.BK(s,A,a[4],e);if(a[0]>=0)for(t=-a[2];t<=180+a[2];t+=5)i.push(ZC.AO.BK(o[0],o[1],a[0],e+270-t));else i.push(ZC.AO.BK(o[0],o[1],ZC._a_(a[0]),e-90)),i.push(ZC.AO.BK(o[0],o[1],ZC._a_(a[0]),e+90));if(0===a[1])i.push(ZC.AO.BK(s,A,C>0?C:.9*l,e));else if(a[1]>0)for(o=ZC.AO.BK(s,A,C>0?C:.9*l,e),t=-a[3];t<=180+a[3];t+=5)i.push(ZC.AO.BK(o[0],o[1],a[1],e-270-t));else o=ZC.AO.BK(s,A,(C>0?C:.9*l)+a[1],e),i.push(ZC.AO.BK(o[0],o[1],ZC._a_(a[1]/(90/a[3])),e+90),ZC.AO.BK(o[0],o[1],ZC._a_(a[1]),e+90),ZC.AO.BK(s,A,C>0?C:.9*l,e),ZC.AO.BK(o[0],o[1],ZC._a_(a[1]),e+270),ZC.AO.BK(o[0],o[1],ZC._a_(a[1]/(90/a[3])),e+270));return i.push([i[0][0],i[0][1]]),i}function i(){var e=u.FB(),i=n.C.K+"-node-area "+n.C.K+"-plotset-plot-"+n.A.L+"-node-area zc-node-area",t=ZC.Q.GC("poly",n.A.E8,n.A.IR)+'class="'+i+'" id="'+n.K+'" coords="'+e+'" />';n.A.A.HN.push(t)}var t,n=this;n.b(),n.setup(),n.CZ=!1;var a=n.C.BN(n.A.BT("k")[0]),l=ZC.CY(a.GH/2,a.G8/2)*a.JM,o=n.L%a.GX,r=Math.floor(n.L/a.GX),s=a.iX+o*a.GH+a.GH/2+a.BJ,A=a.iY+r*a.G8+a.G8/2+a.BH,C=ZC.IG(n.A.o.size||"0.9",!1);C>0&&C<=1&&(C*=l),n.E.size=C;var c=n.N=n.A.I8(n,n),u=new ZC.DW(n.A);u.copy(c),u.Z=n.A.CO("bl",1),u.C6=n.A.CO("bl",0),u.K=n.K+"-arrow";var p=n.C.BN(n.A.BT("v")[0]),Z=p.DG-p.EG/2,h=e(n.E.angle);if(n.E.points=h,u.DQ="poly",u.D=h,u.parse(),u.JE=function(e){return n.JE(e)},u.DE()&&u.parse(),n.A.GA&&!n.C.HF){var d,f=u,_={},g=n.A.L6;f.C5=0,_.alpha=c.C5,2===g&&(f.A2B=Z,_.A2B=n.E.angle);for(d in n.A.FT)f[ZC.EA.GK[ZC.EC(d)]]=n.A.FT[d],_[ZC.EC(d)]=c[ZC.EA.GK[ZC.EC(d)]];if(n.C.EM||(n.C.EM={}),null!==ZC._n_(n.C.EM[n.A.L+"-"+n.L]))for(d in n.C.EM[n.A.L+"-"+n.L]){var v=ZC.EA.GK[ZC.EC(d)];null===ZC._n_(v)&&(v=d),f[v]=n.C.EM[n.A.L+"-"+n.L][d]}n.C.EM[n.A.L+"-"+n.L]={},ZC._cp_(_,n.C.EM[n.A.L+"-"+n.L]);var b=new ZC.EA(f,_,n.A.JD,n.A.L2,ZC.EA.RC[n.A.L5],function(){i()});b.AW=n,b.ZZ=function(i,t){null!==ZC._n_(t.A2B)&&(i.D=e(t.A2B))},n.LL(b),n.A.U&&n.GU()}else u.paint(),n.A.U&&n.GU(),i()},A3H:function(e){var i=this;ZC.move||i.M2({layer:e,type:"shape",initcb:function(){this.copy(i),this.B9=i.A.BP[1],this.BV=i.A.BP[1],this.A0=i.A.BP[3],this.AE=i.A.BP[2],this.D=i.E.points,this.Z=this.C6=i.A.CO("bl",2)}})}}),ZC.A6W=ZC.M5.C7({$i:function(e){this.b(e);var i=this;i.CG=null,i.CL=null,i.MI="min"},KE:function(e,i,t,n){var a=this;return a.CV=[["%range-set",a.MI],["%node-min-value",a.CG],["%node-max-value",a.CL]],e=a.b(e,i,t,n)},A9L:function(){var e,i,t=this;t.o.value[1]instanceof Array?("string"==typeof t.o.value[0]?-1!==(i=ZC.AV(t.A.B1.IM,t.o.value[0]))?t.BU=i:(t.A.B1.IM.push(t.o.value[0]),t.BU=t.A.B1.IM.length-1):t.BU=ZC._f_(t.o.value[0]),null!==t.BU&&(null!==ZC._n_(t.A.JY[t.BU])&&-1!==ZC.AV(t.A.JY[t.BU],t.L)||t.A.UY(t.BU,t.L)),e=t.o.value[1]):e=t.o.value,"string"==typeof e[0]?-1!==(i=ZC.AV(t.A.CM.JI,e[0]))?t.CG=i:(t.A.CM.JI.push(e[0]),t.CG=t.A.CM.JI.length-1):t.CG=ZC._f_(e[0]),t.DN.push(t.CG),"string"==typeof e[1]?-1!==(i=ZC.AV(t.A.CM.JI,e[1]))?t.CL=i:(t.A.CM.JI.push(e[1]),t.CL=t.A.CM.JI.length-1):t.CL=ZC._f_(e[1]),t.CJ=e.join(" "),t.AD=t.CL},setup:function(){var e=this,i=e.A.OI,t=e.A.B1,n=e.A.CM,a=[t.V,t.A1,n.V,n.A1,e.MI];null===ZC._n_(e.AG)&&(e.AG=[]),e.JL!==a&&(i?(null!==e.BU?e.iY=t.B2(e.BU):e.iY=t.I4(e.L),e.iX=n.B2("min"===e.MI?e.CG:e.CL)):(null!==e.BU?e.iX=t.B2(e.BU):e.iX=t.I4(e.L),e.iY=n.B2("min"===e.MI?e.CG:e.CL)),e.JL=a),e.HY||(e.copy(e.A),e.E7=e.A.E7,e.DE()&&e.parse()),e.E.N9=n.B2(e.CG),e.E.QZ=n.B2(e.CL),e.HY=!0},ABC:function(){return{color:this.B9}},XP:function(){return{"background-color":this.B9,"border-color":this.B9,color:this.C1}},paint:function(){var e,i=this;i.b();var t=i.A.B1,n=i.A.Q2,a=i.A.OI,l=i.A.R;i.setup(),null!==ZC._n_(i.A.o[i.MI+"-line"])&&(i.append(i.A.o[i.MI+"-line"]),i.parse()),i.CZ=!1,i.C6=i.A.CO("bl",1);var o,r,s,A,C,c,u,p,Z,h,d,f,_,g=[],v=[];switch(i.A.CW){default:var b=!0;!t.ED&&i.L<=t.V&&(b=!1),l[i.L-i.A.W]||(b=!1),b&&(l[i.L-i.A.W].MI=i.MI,l[i.L-i.A.W].setup(),a?(r=[i.E.N9,i.iY],s=[l[i.L-i.A.W].E.N9,l[i.L-i.A.W].iY],A=[i.E.QZ,i.iY],C=[l[i.L-i.A.W].E.QZ,l[i.L-i.A.W].iY],c=ZC.AO.A4G(r,s,A,C),o=ZC.DT(c[1],l[i.L-i.A.W].iY,i.iY)?c:ZC.AO.JO(l[i.L-i.A.W].iX,l[i.L-i.A.W].iY,l[i.L].iX,l[i.L].iY),v.push([o[0],ZC._i_(o[1])]),g.push([o[0],o[1]])):(r=[i.iX,i.E.N9],s=[l[i.L-i.A.W].iX,l[i.L-i.A.W].E.N9],A=[i.iX,i.E.QZ],C=[l[i.L-i.A.W].iX,l[i.L-i.A.W].E.QZ],c=ZC.AO.A4G(r,s,A,C),o=ZC.DT(c[0],l[i.L-i.A.W].iX,i.iX)?c:ZC.AO.JO(l[i.L-i.A.W].iX,l[i.L-i.A.W].iY,l[i.L].iX,l[i.L].iY),v.push([ZC._i_(o[0]),o[1]]),g.push([o[0],o[1]]))),a?v.push([i.iX,ZC._i_(i.iY)]):v.push([ZC._i_(i.iX),i.iY]),g.push([i.iX,i.iY]);var m=!0;!t.ED&&i.L>=t.A1&&(m=!1),l[i.L+i.A.W]||(m=!1),m&&(l[i.L+i.A.W].MI=i.MI,l[i.L+i.A.W].setup(),a?(r=[i.E.N9,i.iY],s=[l[i.L+i.A.W].E.N9,l[i.L+i.A.W].iY],A=[i.E.QZ,i.iY],C=[l[i.L+i.A.W].E.QZ,l[i.L+i.A.W].iY],c=ZC.AO.A4G(r,s,A,C),o=ZC.DT(c[1],l[i.L+i.A.W].iY,i.iY)?c:ZC.AO.JO(l[i.L].iX,l[i.L].iY,l[i.L+i.A.W].iX,l[i.L+i.A.W].iY),v.push([o[0],ZC._i_(o[1])]),g.push([o[0],o[1]])):(r=[i.iX,i.E.N9],s=[l[i.L+i.A.W].iX,l[i.L+i.A.W].E.N9],A=[i.iX,i.E.QZ],C=[l[i.L+i.A.W].iX,l[i.L+i.A.W].E.QZ],c=ZC.AO.A4G(r,s,A,C),o=ZC.DT(c[0],l[i.L+i.A.W].iX,i.iX)?c:ZC.AO.JO(l[i.L].iX,l[i.L].iY,l[i.L+i.A.W].iX,l[i.L+i.A.W].iY),v.push([ZC._i_(o[0]),o[1]]),g.push([o[0],o[1]])));break;case"spline":if("undefined"==typeof i.E["intersect.index"]&&(i.E["intersect.index"]=-1,l[i.L+i.A.W])){var B=[],E=[],K=[];for(u=-1;u<3;u++)l[i.L+u]?(l[i.L+u].setup(),B.push(l[i.L+u].E.N9),K.push(l[i.L+u].E.QZ),a?E.push(l[i.L+u].iY):E.push(l[i.L+u].iX)):(B.push(i.E.N9),K.push(i.E.QZ),a?E.push(i.iY):E.push(i.iX));Z=ZC._a_(E[2]-E[1]);var F=ZC.AO.XZ(i.A.Q8,B,ZC._i_(Z)),D=ZC.AO.XZ(i.A.Q8,K,ZC._i_(Z));if(l[i.L+i.A.W].CG===l[i.L+i.A.W].CL)i.E["intersect.index"]=F.length;else{var X=F[0][1]-D[0][1];for(u=1,p=F.length;u<p;u++)if(Math.round(X*(F[u][1]-D[u][1]),2)<=0){i.E["intersect.index"]=u+1;break}}i.E["spline.points.min"]=F,i.E["spline.points.max"]=D,i.E["spline.xdiff"]=Z}Z=i.E["spline.xdiff"]||t.A9,null===ZC._n_(i.A.ZL)&&(i.A.ZL={}),null===ZC._n_(i.A.S1)&&(i.A.S1={});var I=[],x=[];if("min"===i.MI){if(null!==ZC._n_(e=i.A.S1.max))for(u=e.length-1;u>=0;u--)i.AG.push(i.A.S1.max[u]);if(null!==ZC._n_(e=i.A.S1.min))for(u=0,p=e.length;u<p;u++)i.AG.push(e[u])}if(null!==ZC._n_(e=i.A.ZL[i.MI]))for(g=[],u=0,p=e.length;u<p;u++)g.push(e[u]);if(l[i.L+i.A.W]&&i.L<t.A1){"min"===i.MI?h=i.E["spline.points.min"]:"max"===i.MI&&(h=i.E["spline.points.max"]),d=-1===i.E["intersect.index"]?ZC._i_(h.length/2):i.E["intersect.index"];var y=a?t.AU?1:-1:t.AU?-1:1;for(u=0;u<d;u++)a?(g.push([h[u][1],i.iY+y*h[u][0]*Z]),v.push([h[u][1],ZC._i_(i.iY+y*h[u][0]*Z)])):(g.push([i.iX+y*h[u][0]*Z,h[u][1]]),v.push([ZC._i_(i.iX+y*h[u][0]*Z),h[u][1]]));var w=1===i.HQ?ZC.CY(2,d):1;for(u=d-1,p=h.length;u<p;u++)a?I.push([h[u][1],i.iY+y*h[u][0]*Z]):I.push([i.iX+y*h[u][0]*Z,h[u][1]]);for(u=d-w,p=h.length;u<p;u++)a?x.push([h[u][1],ZC._i_(i.iY+y*h[u][0]*Z)]):x.push([ZC._i_(i.iX+y*h[u][0]*Z),h[u][1]])}else g.push([l[i.L].iX,l[i.L].iY]),a?(I.push([l[i.L].iX,ZC._i_(l[i.L].iY)]),v.push([l[i.L].iX,ZC._i_(l[i.L].iY)]),x.push([l[i.L].iX,ZC._i_(l[i.L].iY)])):(I.push([ZC._i_(l[i.L].iX),l[i.L].iY]),v.push([ZC._i_(l[i.L].iX),l[i.L].iY]),x.push([ZC._i_(l[i.L].iX),l[i.L].iY]));i.A.ZL[i.MI]=I,i.A.S1[i.MI]=x}if("min"===i.MI)for(u=0,p=v.length;u<p;u++)i.AG.push(v[u]);else for(u=v.length-1;u>=0;u--)i.AG.push(v[u]);if("max"===i.MI){var Y=new ZC.DW(i.A);Y.K=i.K+"-area",Y.Z=i.A.CO("bl",0),Y.copy(i),Y.B0=0,Y.AT=0,Y.EX=0,Y.G6=0,Y.parse(),Y.D=i.AG,Y.C5=i.A.HQ;var M=i.C.P;for(Y.D1=[M.iX,M.iY,M.iX+M.I,M.iY+M.F],Y.paint(),i.E.pointsarea=[],u=0,p=i.AG.length;u<p;u++)i.E.pointsarea.push(i.AG[u]);i.AG=[],i.A.FW&&(_=Y.FB(),f=i.C.K+"-node-area "+i.C.K+"-plot-"+i.A.L+"-node-area zc-node-area",i.A.A.HN.push(ZC.Q.GC("poly",i.A.E8,i.A.IR)+'class="'+f+'" id="'+i.K+'--area" coords="'+_+'" />'))}"min"===i.MI?i.E.points=g:(i.E.points.push(null),i.E.points=i.E.points.concat(g));var H=new ZC.D0(i);H.copy(i),H.append(i.A.o[i.MI+"-line"]),H.parse(),ZC.CS.setup(n,H),ZC.CS.paint(n,H,g),"max"===i.MI&&i.paintPreview(i,i.E.points,i.E.pointsarea);if(a?ZC.DT(i.iY,t.iY-1,t.iY+t.F+1)&&ZC.DT(i.iX,t.iX-1,t.iX+t.I+1):ZC.DT(i.iX,t.iX-1,t.iX+t.I+1)&&ZC.DT(i.iY,t.iY-1,t.iY+t.F+1)){var L=new ZC.DW(i.A);L.K=i.K+"-marker-"+i.MI,L.Z=L.C6=i.A.CO("fl",0),L.iX=i.iX,L.iY=i.iY,L.B9=i.A.BP[3],L.BV=i.A.BP[3],L.A0=i.A.BP[2],L.AE=i.A.BP[2],L.append(i.A.A2.o),i.A.o[i.MI+"-marker"]&&L.append(i.A.o[i.MI+"-marker"]),L.parse(),L.JE=function(e){return i.JE(e)},L.DE()&&L.parse(),L.AM&&"none"!==L.AF&&(i.A.MO>t.A1-t.V&&L.paint(),i.E["marker.type"]=L.DQ,f=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",t.AU&&g.reverse(),i.A.FW&&(""!==(_=ZC.AO.PM(ZC.AO.YW(i.E.points),4))?i.A.A.HN.push(ZC.Q.GC("poly",i.A.E8,i.A.IR)+'class="'+f+'" id="'+i.K+"--"+i.MI+'" coords="'+_+'" />'):i.A.A.HN.push(ZC.Q.GC("circle",i.A.E8,i.A.IR)+'class="'+f+'" id="'+i.K+"--"+i.MI+'" coords="'+ZC._i_(L.iX+ZC.MAPTX)+","+ZC._i_(L.iY+ZC.MAPTX)+","+ZC._i_(1.5*ZC.BQ(3,L.AI))+'" />'))),i.A.U&&i.A.U.AM&&i.GU()}},paintPreview:function(e,i,t){var n=this;if(n.C.BA&&n.C.BA.HY&&n.A.QH){var a=n.C.P,l=n.C.BA,o=n.A.mapPointsToPreview(t),r=new ZC.DW(n.A);r.copy(e),r.CZ=!0,r.L1=!0,r.B0=0,r.AT=0,r.EX=0,r.G6=0,r.C5=n.A.HQ,r.D1=[a.iX,a.iY,a.iX+a.I,a.iY+a.F],r.K=n.K+"-area-preview",r.Z=l.Z,r.D=o,r.paint();var s,A=n.A.mapPointsToPreview(i);n.A.VP?s=n.A.VP:(s=new ZC.D0(n),n.A.VP=s),s.copy(e);var C=ZC.Q.E9(l.Z,n.H.AC);s.B0=1,ZC.CS.paint(C,s,A,null,3)}},A3H:function(){var e=this,i=e.A.OI;if(!ZC.move){var t=e.A.B1;if(e.A.G4&&e.A.AM){var n=ZC.Q.E9(e.C.K+"-hover-c",e.H.AC),a=new ZC.DW(e.A);if(a.K=e.K+"-area-hover",a.Z=ZC.AK(e.C.K+"-hover-c"),a.L1=!0,a.copy(e),a.append(e.A.IB.o),a.D=e.E.pointsarea,a.parse(),a.AM){a.C5=e.A.HQ;var l=e.C.P;a.D1=[l.iX,l.iY,l.iX+l.I,l.iY+l.F],ZC.CS.setup(n,a),a.paint()}var o=ZC.Q.E9(e.C.K+"-hover-c",e.H.AC),r=new ZC.D0(e.A);r.K=e.K+"-line-hover",r.CZ=!1,r.B9=e.A.BP[3],r.append(e.A.IB.o),r.parse(),r.JE=function(i){return e.JE(i)},r.DE()&&r.parse(),r.AM&&(ZC.CS.setup(o,r),ZC.CS.paint(o,r,e.E.points))}if(e.A.MO>t.A1-t.V&&e.A.G4&&e.A.AM){e.b();var s=new ZC.DW(e.A);s.K=e.K+"-marker-max-hover",s.Z=ZC.AK(e.C.K+"-hover-c"),s.DQ=e.E["marker.type"],i?(s.iY=e.iY,s.iX=e.E.QZ):(s.iX=e.iX,s.iY=e.E.QZ),s.B9=e.A.BP[3],s.BV=e.A.BP[3],s.A0=e.A.BP[2],s.AE=e.A.BP[2],s.append(e.A.G4.o),s.parse(),s.JE=function(i){return e.JE(i)},s.DE()&&s.parse(),s.AM&&"none"!==s.AF&&s.paint(),s.K=e.K+"-marker-min-hover",i?s.iX=e.E.N9:s.iY=e.E.N9,s.AM&&"none"!==s.AF&&s.paint()}}}}),ZC.A6V=ZC.M5.C7({U:null,$i:function(e){this.b(e),this.U=null},parse:function(){this.b()},AAO:function(){this.b();var e=this,i=e.C.E;i.update.npv=i.update["node-percent-value"]=e.KE("%npv")},KE:function(e,i,t,n){var a=this,l=a.A.ML();ZC._cp_(i,l),-1===e.indexOf("%npv")&&-1===e.indexOf("%node-percent-value")||null!==ZC._n_(l.decimals)&&-1!==l.decimals||(l.decimals=1);var o=0,r="0";if(a.A.A.KH[a.L]>0&&(r=""+(o=100*a.AD/a.A.A.KH[a.L])),a.A.A.A6.length>1&&a.A.L===a.A.A.A6.length-1){var s=0;if(null===ZC._n_(a.A.o.totals)){for(var A=0;A<a.A.A.A6.length-1;A++)if(a.A.A.A6[A].AM){var C=0,c="0";a.A.A.KH[a.L]>0&&(c=""+(C=100*a.A.A.A6[A].R[a.L].AD/a.A.A.KH[a.L])),null!==ZC._n_(l.decimals)&&(c=C.toFixed(ZC.BQ(0,ZC._i_(l.decimals)))),s+=ZC._f_(c)}r=""+(o=Math.max(0,100-s))}}null!==ZC._n_(l.decimals)&&(r=o.toFixed(ZC.BQ(0,ZC._i_(l.decimals))));var u=ZC._f_(a.A.A.KH[a.L]||"0"),p=""+u;return p=ZC.AP.GF(u,l,a.A),a.CV=[["%node-percent-value",r],["%npv",r],["%pie-total-value",p]],e=a.b(e,i,t,n)},UV:function(e){var i,t=this,n=(t.B3+t.BI)/2%360,a=0;null!==ZC._n_(i=e["offset-r"])&&(a=ZC._f_(ZC._p_(i))),a<1&&(a*=t.AI);var l=new ZC.CF(t.C,(t.CN+.5*(t.AI-t.CN)+t.DR+a)*ZC.EF(n),(t.CN+.5*(t.AI-t.CN)+t.DR+a)*ZC.EO(n),0).EB;return[l[0],l[1],{reference:t,center:!0}]},setup:function(){var e=this,i=e.C.BN(e.A.BT("k")[0]),t=e.L%i.GX,n=Math.floor(e.L/i.GX);e.iX=i.iX+t*i.GH+i.GH/2+i.BJ,e.iY=i.iY+n*i.G8+i.G8/2+i.BH,e.HY||(e.copy(e.A),e.E7=e.A.E7,e.DE()&&e.parse(),e.HY=!0)},ABC:function(e){var i={},t="out";return null!==ZC._n_(e.o.placement)&&(t=e.o.placement),i.color="out"===t?this.A0:this.C1,i},ACC:function(e){var i,t=this,n="out";null!==ZC._n_(i=e.o.placement)&&(n=i);var a,l,o,r,s,A=e.I,C=e.F,c=(t.B3+t.BI)/2%360,u=c;if("out"===n){c=u=t.A.A.Y4["n"+t.L][t.A.L];var p=function(i,n){n<0&&(n=360+n),n%=360;var a=ZC.AO.BK(t.iX,t.iY,i+t.DR+e.DR+20,n),l=t.C.F0["x-angle"];l>45&&t.A.A.A6.length>10&&(t.C.F0["x-angle"]=45+(l-45)/3),s=new ZC.CF(t.C,a[0]-ZC.AN.E3,a[1]-ZC.AN.E2,0),t.C.F0["x-angle"]=l,a[0]=s.EB[0],a[1]=s.EB[1];var o=a[0]+e.BJ-A/2,r=a[1]+e.BH-C/2;return n>=0&&n<=90||n>=270&&n<=360?o+=A/2+10:o-=A/2+10,[o,r]},Z=p(t.AI,u);a=Z[0],l=Z[1],t.U=e;var h={x:a,y:l,width:A,height:C},d=zingchart.DEV.SPREADTYPE;r=!0;for(var f=0,_=0,g=-1,v=0,b=0;r&&b<1024;){r=!1;for(var m=0,B=t.A.A.TQ.length;m<B;m++)o=t.A.A.TQ[m],(ZC.AO.XI(h,o,t.A.A.A6.length>10?-8:-2)||h.x+e.I>t.C.P.iX+t.C.P.I||h.x<t.C.P.iX||h.y+e.F>t.C.P.iY+t.C.P.F||h.y<t.C.P.iY)&&(r=!0,0===d?(f+=.4,g*=-1):1===d&&(_+=1),Z=p(t.AI+_,u+f*g),h.x=Z[0],h.y=Z[1],b++,++v>100&&(v=0,0===d?(f=0,_+=4):1===d&&(_=0,f+=1,g*=-1)))}a=h.x,l=h.y,c=u+f,o={text:t.A.AR,x:h.x,y:h.y,width:A,height:C,plotindex:t.A.L,nodeindex:t.L},t.A.A.TQ.push(o)}else if("in"===n){var E=t.CN<30?.65:.5,K=ZC.AO.BK(t.iX,t.iY,t.CN+E*(t.AI-t.CN)+t.DR+e.DR,c);s=new ZC.CF(t.C,K[0]-ZC.AN.E3,K[1]-ZC.AN.E2,0),K[0]=s.EB[0],K[1]=s.EB[1],a=K[0]+e.BJ-A/2,l=K[1]+e.BH-C/2}else"center"===n&&(a=(s=new ZC.CF(t.C,t.iX-ZC.AN.E3,t.iY-ZC.AN.E2,0)).EB[0]+e.BJ-A/2,l=s.EB[1]+e.BH-C/2);return r&&(a=-9999,l=-9999,e.AM=!1),null!==ZC._n_(e.o.x)&&(a=e.iX),null!==ZC._n_(e.o.y)&&(l=e.iY),a>=-2&&(a=ZC._a_(a)),l>=-2&&(l=ZC._a_(l)),[ZC._i_(a),ZC._i_(l),c]},GU:function(e,i){var t,n=this,a=n.b(e,i);if(e)return a;if(n.AM&&a.AM&&null!==ZC._n_(a.AR)&&""!==a.AR){var l="out";if(null!==ZC._n_(a.o.placement)&&(l=a.o.placement),"out"===l){var o=!0;if(null!==ZC._n_(t=a.o.connected)&&(o=ZC._b_(t)),o){var r=new ZC.DW(n.A);r.Z=r.C6=n.A.CO("bl",0),r.append(n.A.C2.o),r.B9=n.A0,r.DQ="line",r.D=[];var s=a.E.positioninfo,A=(n.B3+n.BI)/2%360,C=0;A>=0&&A<=180&&(C=n.E.thickness/2);var c=ZC.AO.BK(n.iX,n.iY,n.AI+n.DR+a.DR,A);(c=new ZC.CF(n.C,c[0]-ZC.AN.E3,c[1]-ZC.AN.E2,C).EB)[0]+=n.BJ,c[1]+=n.BH,r.D.push(c);var u=ZC.AO.BK(n.iX,n.iY,n.AI+n.DR+a.DR+20,A);(u=new ZC.CF(n.C,u[0]-ZC.AN.E3,u[1]-ZC.AN.E2,C).EB)[0]+=n.BJ,u[1]+=n.BH,a.iX>=n.iX?r.D.push([u[0],u[1],s[0],s[1]+a.F/2]):r.D.push([u[0],u[1],s[0]+a.I+2,s[1]+a.F/2]),r.parse(),r.JE=function(e){return n.JE(e)},r.DE()&&r.parse(),r.AM&&r.paint()}}}},paint:function(){var e,i,t,n,a,l,o,r,s,A=this,C=A.C.CK,c=A.C.BN(A.A.BT("k")[0]),u=A.C.F0["x-angle"],p=A.C.F0["y-angle"];A.setup();var Z="pie-sel-"+A.A.L+"-"+A.L;if(A.o.detached&&"undefined"==typeof A.C.E[Z]&&(A.C.E[Z]=!0),!(A.AD<0)){var h=ZC.BQ(.7,ZC.EF(u));A.AI=ZC.CY(c.G8/h,c.GH)/2,null!==ZC._n_(A.A.o.size)?A.AI=A.A.AI:A.AI=c.JM*A.AI,A.CN<1&&(A.CN*=A.AI),A.CN=Math.max(0,A.CN),A.o.slice=A.CN,A.DR<1&&(A.DR*=A.AI),A.o["offset-r"]=A.DR;var d=A.A.NF;-1===d&&(d=A.AI/5),A.E.thickness=d;var f=A.iX-ZC.AN.E3,_=A.iY-ZC.AN.E2;A.B3=ZC._i_(A.B3),A.BI=ZC._i_(A.BI);var g=(A.B3+A.BI)/2;A.C.E[Z]&&(A.DR+=ZC._i_(.15*A.AI)),A.DR>0&&(f+=A.DR*ZC.EF(g),_+=A.DR*ZC.EO(g));var v=A.N=A.A.I8(A,A);v.DI=A.K+"-3dfacet";var b=new ZC.D0(A);if(b.copy(v),b.A0=ZC.AP.JH(ZC.AP.G5(b.A0)),b.AE=ZC.AP.JH(ZC.AP.G5(b.AE)),A.AD>=0||0===A.A.A.KH[A.L]){for(o=[],e=A.B3,o.push([f+A.CN*ZC.EF(e),_+A.CN*ZC.EO(e),0]),e=A.B3;e<=A.BI;e+=1)o.push([f+A.AI*ZC.EF(e),_+A.AI*ZC.EO(e),0]);for(e=A.BI,o.push([f+A.CN*ZC.EF(e),_+A.CN*ZC.EO(e),0]),e=A.BI;e>=A.B3;e-=1)o.push([f+A.CN*ZC.EF(e),_+A.CN*ZC.EO(e),0]);if(i=ZC.DH.D7(v,A.C,o),i.K=A.K+"-facet1",C.add(i),t=null,A.B3%360>=0+p&&A.B3%360<180+p||A.BI%360>0+p){r=A.B3,s=A.BI;var m=function(e,i,n){var a,l=[];for(a=e,l.push([f+A.AI*ZC.EF(a),_+A.AI*ZC.EO(a),0]),a=e;a<=i;a+=1)l.push([f+A.AI*ZC.EF(a),_+A.AI*ZC.EO(a),0]);for(a=i,l.push([f+A.AI*ZC.EF(a),_+A.AI*ZC.EO(a),d]),a=i;a>=e;a-=1)l.push([f+A.AI*ZC.EF(a),_+A.AI*ZC.EO(a),d]);(t=ZC.DH.D7(b,A.C,l)).MB=[.01,1,1,1],t.K=A.K+"-facet2"+n,C.add(t)};r<180&&s>360?(m(r=r<0?r+360:r,180,1),m(360,s,2)):(r=ZC.BQ(r,s>360?365:5),(s=ZC.CY(s,s>360?535:175))>r&&m(r,s,1))}if(l=null,A.CN>0+p&&A.BI>180+p){for(o=[],e=A.B3,r=A.B3,A.B3<180+p&&A.BI>180+p&&(e=180+p,r=180+p),o.push([f+A.CN*ZC.EF(e),_+A.CN*ZC.EO(e),0]),e=r;e<=A.BI;e+=1)o.push([f+A.CN*ZC.EF(e),_+A.CN*ZC.EO(e),0]);for(e=A.BI,o.push([f+A.CN*ZC.EF(e),_+A.CN*ZC.EO(e),d]),e=A.BI;e>=r;e-=1)o.push([f+A.CN*ZC.EF(e),_+A.CN*ZC.EO(e),d]);(l=ZC.DH.D7(b,A.C,o)).K=A.K+"-facet3",C.add(l)}var B=function(e,i,t){return[[f+e*ZC.EF(t),_+e*ZC.EO(t),0],[f+e*ZC.EF(t),_+e*ZC.EO(t),d],[f+i*ZC.EF(t),_+i*ZC.EO(t),d],[f+i*ZC.EF(t),_+i*ZC.EO(t),0]]};(n=ZC.DH.D7(b,A.C,{points:B(A.CN,A.AI,A.B3),mathpoints:B(A.CN+1,A.AI+1,A.B3-1)})).K=A.K+"-facet4",C.add(n),(a=ZC.DH.D7(b,A.C,{points:B(A.CN,A.AI,A.BI),mathpoints:B(A.CN+1,A.AI+1,A.BI+1)})).K=A.K+"-facet5",C.add(a);var E=A.C.K+"-node-area "+A.C.K+"-plotset-plot-"+A.A.L+"-node-area zc-node-area",K=ZC.Q.GC("poly",A.A.E8)+'class="'+E+'" id="'+A.K,F=A.A.A.HN;F.push(K+'--top" data-z-sort="1" coords="'+i.FB()+'" />'),t&&F.push(K+'--outer" data-z-sort="1" coords="'+t.FB()+'" />'),(A.CN>0||A.DR>0)&&(l&&F.push(K+'--inner" data-z-sort="2" coords="'+l.FB()+'" />'),F.push(K+'--start" data-z-sort="2" coords="'+n.FB()+'" />',K+'--end" data-z-sort="2" coords="'+a.FB()+'" />'))}A.A.U&&A.GU()}},WX:function(e,i){var t=this;if(t.b(e,i),"click"===i&&e.which<=1&&t.A.A7J){var n="pie-sel-"+t.A.L+"-"+t.L;t.C.E[n]="undefined"==typeof t.C.E[n]||!t.C.E[n],t.C.K3()}}}),ZC.A67=ZC.Z9.C7({setup:function(){this.T1()},UV:function(){var e=this;e.paint(!0);var i=e.C.BN(e.A.BT("v")[0]),t=e.iX+e.I/2,n=e.iY+(i.AU?e.F:0),a=new ZC.CF(e.C,t-ZC.AN.E3,n-ZC.AN.E2,e.A.E["z-start"]);return[ZC._i_(a.EB[0]),ZC._i_(a.EB[1]),{reference:e,center:!0}]},ACC:function(e){var i=this,t=i.b(e);if("-1/-1"!==t.join("/")){var n=new ZC.CF(i.C,t[0]+e.I/2-ZC.AN.E3,t[1]+e.F/2-ZC.AN.E2,i.A.E["z-mid"]);return[ZC._i_(n.EB[0])-e.I/2,ZC._i_(n.EB[1])-e.F/2]}return t},paint:function(e){var i,t=this;t.b(),void 0===e&&(e=!1);var n=t.C.CK,a=t.A.B1,l=t.A.CM;t.setup();var o=t.A.QF(),r=o.A9,s=o.ET,A=o.CC,C=o.CT,c=o.F3,u=o.D3,p=o.EZ;e?s=t.A.E["node-"+t.L+"-bar-index"]:t.A.E["node-"+t.L+"-bar-index"]=o.ET;var Z,h,d,f,_,g,v,b,m,B,E,K,F,D,X,I;if(t.A.CB){d=0;var x=t.A.A.K6[s];for(Z=0;Z<x.length;Z++){var y=t.A.A.A6[x[Z]].R[t.L];y&&(d+=y.AD)}}var w=1,Y=1;if(t.A.CB&&d>0&&(t.CR!==t.AD&&(w=(d-t.CR+t.AD)/d),Y=(d-t.CR)/d),l.AU){var M=w;w=Y,Y=M}t.A.LJ&&(s=t.L);var H=t.iX-r/2+A+s*(u+c)-s*p;if(H=ZC._l_(H,t.iX-r/2+A,t.iX+r/2-C),t.A.D3>0){var L=u;(u=t.A.D3)<=1&&(u*=L),H+=(L-u)/2}var P=u,N=t.iY,O=null!==ZC._n_(t.A.LW[t.L])?t.A.LW[t.L]:0;if(N=t.A.CB&&"100%"===t.A.KQ?l.B2(100*(t.CR+O)/t.A.A.F7[t.L]["%total-"+t.A.DY]):l.B2(t.CR+O),t.A.CB?(_=N-(f="100%"===t.A.KQ?l.B2(100*(t.CR-t.AD+O)/t.A.A.F7[t.L]["%total-"+t.A.DY]):l.B2(t.CR-t.AD+O)),t.AD<0&&(N=f),l.AU?_>0&&(_=ZC._a_(_),N=f):_<0&&(N=f-(_=ZC._a_(_)))):N=(_=N-(f=l.B2(O)))<0?f-(_=ZC._a_(_)):f,A+C===0&&(H-=.5,P+=1),t.I=P,t.F=_,t.iX=H,t.iY=N,l.AU?t.AD>=l.H4?t.iYVal=N+t.F:t.iYVal=N:t.AD>=l.H4?t.iYVal=N:t.iYVal=N+t.F,t.C.CX){var k="middle";t.C.CX.o.marker&&null!==ZC._n_(i=t.C.CX.o.marker.alignment)&&(k=i),null!==ZC._n_(t.A.o["guide-marker"])&&null!==ZC._n_(i=t.A.o["guide-marker"].alignment)&&(k=i),"node"===k&&(t.E.A5C=t.iX+t.I/2)}if(!e){var Q,R,z,T=H-ZC.AN.E3,G=N-ZC.AN.E2,S=0,J=ZC.AN.FS,V=0,U=J;if(t.A.A37){if(R=S,"mixed3d"===t.C.AF||"mixed"===t.C.AF){for(Q=1,Z=0,h=t.A.A.A6.length;Z<h;Z++)"vbar3d"!==t.A.A.A6[Z].AF&&Q++;R=(Q-1)*(ZC.AN.FS/Q),J=ZC._i_(.9*J/Q)}z=R+J}else{if(Q=0,V=-1,U=ZC.AN.FS,"hide"===t.C.getToggleAction())Q=t.A.A.A6.length,V=t.A.L,U/=Q;else if(t.A.CB)V=0;else{for(Z=0;Z<t.A.A.A6.length;Z++)t.C.E["plot"+Z+".visible"]&&V++;for(Z=0;Z<t.A.A.A6.length;Z++)t.C.E["plot"+Z+".visible"]&&(Q++,t.A.L>Z&&V--);U/=Q,V=Q-V-1}R=V*U+.2*U,z=(V+1)*U-.2*U}if(null!==ZC._n_(t.A.o["z-start"])&&(R=ZC._i_(t.A.o["z-start"])),null!==ZC._n_(t.A.o["z-end"])&&(z=ZC._i_(t.A.o["z-end"])),null!==ZC._n_(t.A.o.depth)){var W=ZC._i_(t.A.o.depth);R=V*U+U/2-W,z=V*U+U/2+W}S=R,J=z-R,t.A.E["z-plots"]=Q,t.A.E["z-cnt"]=V,t.A.E["z-depth"]=U,t.A.E["z-start"]=R,t.A.E["z-mid"]=(R+z)/2;var j=t.N=t.A.I8(t,t.N);if(j.DI=t.K+"-3dfacet",t.A.HT&&(t.GZ(j),j.parse()),j.AM){var q=new ZC.D0(t);q.copy(j),q.A0=ZC.AP.JH(ZC.AP.G5(q.A0)),q.AE=ZC.AP.JH(ZC.AP.G5(q.AE)),q.BV=ZC.AP.JH(ZC.AP.G5(q.BV));var $=new ZC.D0(t);$.copy(j),$.A0=ZC.AP.JH(ZC.AP.G5($.A0),15),$.AE=ZC.AP.JH(ZC.AP.G5($.AE),15),$.BV=ZC.AP.JH(ZC.AP.G5($.BV),15);var ee=new ZC.D0(t);ee.copy(j);var ie=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area",te=ZC.Q.GC("poly",t.A.E8,t.N.IR)+'class="'+ie+'" id="'+t.K,ne=t.C.F0.true3d,ae=t.I/2,le=J/2,oe=w*ae,re=Y*ae,se=Y*le,Ae=w*le;l.AU&&!t.A.CB?(g=t.AD>=0?0:t.F,v=t.AD>=0?t.F:0):(g=t.AD>=0?t.F:0,v=t.AD>=0?0:t.F);var Ce=t.A.A.HN,ce=ZC.CY(le,ae),ue=t.C.F0["y-angle"],pe=t.C.F0.angle,Ze=ZC.EF(pe)*le,he=ZC.EO(pe)*le;ne||(ce=ZC.CY(2*Ze,ae));var de=function(e){var i=0,n=t.A.L,o=t.L,r=t.A.A.A6.length,s=t.A.R.length;switch((t.A.CB?"s":"")+(a.AU?"k":"")+(l.AU?"v":"")){case"":case"v":i=10*n+1e4*o+e;break;case"sv":i=10*(r-n)+1e4*o+e;break;case"k":i=10*n+1e4*(s-o)+e;break;case"skv":i=10*(r-n)+1e4*(s-o)+e;break;case"kv":i=10*n+1e4*(s-o)+e;break;case"s":i=10*n+1e4*o+e;break;case"sk":i=10*n+1e4*(s-o)+e}return i},fe=ZC.MAX,_e=-ZC.MAX,ge=ZC.MAX,ve=-ZC.MAX,be=ZC.MAX,me=-ZC.MAX,Be=ZC.MAX,Ee=-ZC.MAX;if("cylinder"===t.A.CW)for(I=0;I<=360;I+=4)(m=new ZC.CF(t.C,T+ZC.EO(I)*ce+ae,G,S+ZC.EF(I)*ce+le)).EB[0]<ge&&(ge=m.EB[0],fe=I),m.EB[0]>ve&&(ve=m.EB[0],_e=I),(m=new ZC.CF(t.C,T+ZC.EO(I)*ce+ae,G+t.F,S+ZC.EF(I)*ce+le)).EB[0]<Be&&(Be=m.EB[0],be=I),m.EB[0]>Ee&&(Ee=m.EB[0],me=I);var Ke=t.A.o.facets||{};switch(t.A.CW){default:Ke.bottom?((b=new ZC.D0(t)).copy(q),b.append(Ke.bottom),b.parse(),F=ZC.DH.DA(b,t.C,T+.1,T+t.I-.1,G+t.F-.1,G+t.F-.1,S+.1,S+J-.1,"x")):F=ZC.DH.DA(q,t.C,T+.1,T+t.I-.1,G+t.F-.1,G+t.F-.1,S+.1,S+J-.1,"x"),F.K=t.K+"-facet1",F.FX=de(1),n.add(F),Ke.top?((b=new ZC.D0(t)).copy(q),b.append(Ke.top),b.parse(),K=ZC.DH.DA(b,t.C,T+.1,T+t.I-.1,G+.1,G+.1,S+.1,S+J-.1,"x")):K=ZC.DH.DA(q,t.C,T+.1,T+t.I-.1,G+.1,G+.1,S+.1,S+J-.1,"x"),K.K=t.K+"-facet2",K.FX=de(3),n.add(K),Ke.left?((b=new ZC.D0(t)).copy($),b.append(Ke.left),b.parse(),D=ZC.DH.DA(b,t.C,T+.1,T+.1,G+.1,G+t.F-.1,S+.1,S+J-.1,"z")):D=ZC.DH.DA($,t.C,T+.1,T+.1,G+.1,G+t.F-.1,S+.1,S+J-.1,"z"),D.K=t.K+"-facet3",D.FX=de(2),n.add(D),Ke.right?((b=new ZC.D0(t)).copy($),b.append(Ke.right),b.parse(),X=ZC.DH.DA(b,t.C,T+t.I-.1,T+t.I-.1,G+.1,G+t.F-.1,S+.1,S+J-.1,"z")):X=ZC.DH.DA($,t.C,T+t.I-.1,T+t.I-.1,G+.1,G+t.F-.1,S+.1,S+J-.1,"z"),X.K=t.K+"-facet4",X.FX=de(4),n.add(X),Ke.front?((b=new ZC.D0(t)).copy(ee),b.append(Ke.front),b.parse(),E=ZC.DH.DA(b,t.C,T+.1,T+t.I-.1,G+.1,G+t.F-.1,S+.1,S+.1,"y")):E=ZC.DH.DA(ee,t.C,T+.1,T+t.I-.1,G+.1,G+t.F-.1,S+.1,S+.1,"y"),E.K=t.K+"-facet5",E.FX=de(5),n.add(E),t.A.FW&&(1===Y&&Ce.push(te+'--top" coords="'+K.FB()+'" />'),Ce.push(te+'--left" coords="'+D.FB()+'" />',te+'--right" coords="'+X.FB()+'" />',te+'--front" coords="'+E.FB()+'" data-z-sort="-100" />'));break;case"pyramid":Ke.bottom?((b=new ZC.D0(t)).copy(q),b.append(Ke.bottom),b.parse(),F=ZC.DH.DA(b,t.C,T+ae-oe,T+ae+oe,G+g,G+g,S+le-Ae,S+le+Ae,"x")):F=ZC.DH.DA(q,t.C,T+ae-oe,T+ae+oe,G+g,G+g,S+le-Ae,S+le+Ae,"x"),F.K=t.K+"-facet1",F.FX=de(l.AU&&!t.A.CB?6:1),n.add(F),B=[[T+ae-oe,G+g,S+le-Ae],[T+ae+oe,G+g,S+le-Ae]],t.A.CB&&0!==Y?B.push([T+ae+re,G+v,S+le-se],[T+ae-re,G+v,S+le-se]):B.push([T+ae,G+v,S+le]),Ke.front?((b=new ZC.D0(t)).copy(j),b.append(Ke.front),b.parse(),E=ZC.DH.D7(b,t.C,B)):E=ZC.DH.D7(j,t.C,B),E.K=t.K+"-facet2",E.FX=de(3),n.add(E),B=[[T+ae-oe,G+g,S+le-Ae],[T+ae-oe,G+g,S+le+Ae]],t.A.CB&&0!==Y?B.push([T+ae-re,G+v,S+le+se],[T+ae-re,G+v,S+le-se]):B.push([T+ae,G+v,S+le]),Ke.left?((b=new ZC.D0(t)).copy($),b.append(Ke.left),b.parse(),D=ZC.DH.D7(b,t.C,B)):D=ZC.DH.D7($,t.C,B),D.K=t.K+"-facet3",D.FX=de(2),n.add(D),B=[[T+ae+oe,G+g,S+le-Ae],[T+ae+oe,G+g,S+le+Ae]],t.A.CB&&0!==Y?B.push([T+ae+re,G+v,S+le+se],[T+ae+re,G+v,S+le-se]):B.push([T+ae,G+v,S+le]),Ke.right?((b=new ZC.D0(t)).copy($),b.append(Ke.right),b.parse(),X=ZC.DH.D7(b,t.C,B)):X=ZC.DH.D7($,t.C,B),X.K=t.K+"-facet4",X.FX=de(4),n.add(X),t.A.CB&&0!==Y&&(B=[[T+ae-re,G+v,S+le-se],[T+ae-re,G+v,S+le+se],[T+ae+re,G+v,S+le+se],[T+ae+re,G+v,S+le-se]],Ke.top?((b=new ZC.D0(t)).copy(q),b.append(Ke.top),b.parse(),K=ZC.DH.D7(b,t.C,B)):K=ZC.DH.D7(q,t.C,B),K.K=t.K+"-facet5",K.FX=de(5),n.add(K)),t.A.FW&&Ce.push(te+'--left" coords="'+D.FB()+'" />',te+'--right" coords="'+X.FB()+'" />',te+'--front" coords="'+E.FB()+'" data-z-sort="-100" />');break;case"cylinder":if(B=[],ne)for(I=0;I<=360;I+=5)B.push([T+ZC.EO(I)*ce+ae,G+t.F,S+ZC.EF(I)*ce+le]);else for(I=0;I<=360;I+=5)(m=new ZC.CF(t.C,0,0,0)).EB=[H+ZC.EF(I)*ce+ae+Ze,N+t.F+ZC.EO(I)*(ce/2)-he],B.push(m);if(Ke.bottom?((b=new ZC.D0(t)).copy(q),b.append(Ke.bottom),b.parse(),F=ZC.DH.D7(b,t.C,B,!ne)):F=ZC.DH.D7(q,t.C,B,!ne),F.K=t.K+"-facet1",F.FX=de(1),n.add(F),B=[],ne)for(I=0;I<=360;I+=5)B.push([T+ZC.EO(I)*ce+ae,G,S+ZC.EF(I)*ce+le]);else for(I=0;I<=360;I+=5)(m=new ZC.CF(t.C,0,0,0)).EB=[H+ZC.EF(I)*ce+ae+Ze,N+ZC.EO(I)*(ce/2)-he],B.push(m);if(Ke.top?((b=new ZC.D0(t)).copy(q),b.append(Ke.top),b.parse(),K=ZC.DH.D7(b,t.C,B,!ne)):K=ZC.DH.D7(q,t.C,B,!ne),K.K=t.K+"-facet2",K.FX=de(3),n.add(K),B=[],ne){for(I=ZC.CY(fe,_e);I<=ZC.BQ(fe,_e);I+=1)B.push([T+ZC.EO(I)*ce+ae,G,S+ZC.EF(I)*ce+le]);for(B.push([T+ZC.EO(I)*ce+ae,G+t.F,S+ZC.EF(I)*ce+le]),I=ZC.BQ(be,me);I>=ZC.CY(be,me);I-=1)B.push([T+ZC.EO(I)*ce+ae,G+t.F,S+ZC.EF(I)*ce+le])}else{for(I=0;I<=180;I+=5)(m=new ZC.CF(t.C,0,0,0)).EB=[H+ZC.EF(I)*ce+ae+Ze,N+t.F+ZC.EO(I)*(ce/2)-he],B.push(m);for(I=180;I>=0;I-=5)(m=new ZC.CF(t.C,0,0,0)).EB=[H+ZC.EF(I)*ce+ae+Ze,N+ZC.EO(I)*(ce/2)-he],B.push(m)}Ke.front?((b=new ZC.D0(t)).copy(j),b.append(Ke.front),b.parse(),E=ZC.DH.D7(b,t.C,B,!ne)):E=ZC.DH.D7(j,t.C,B,!ne),E.K=t.K+"-facet3",E.FX=de(2),n.add(E),t.A.FW&&Ce.push(te+'--front" coords="'+E.FB()+'" data-z-sort="-100" />',te+'--top" coords="'+K.FB()+'" />');break;case"cone":if(B=[],ne)for(I=0;I<=360;I+=5)B.push([T+ZC.EO(I)*ce*w+ae,G+g,S+ZC.EF(I)*ce*w+le]);else for(I=0;I<=360;I+=5)(m=new ZC.CF(t.C,0,0,0)).EB=[H+ZC.EF(I)*ce*w+ae+Ze,N+g+ZC.EO(I)*(ce/2)*w-he],B.push(m);if(Ke.bottom?((b=new ZC.D0(t)).copy(q),b.append(Ke.bottom),b.parse(),F=ZC.DH.D7(b,t.C,B,!ne)):F=ZC.DH.D7(q,t.C,B,!ne),F.K=t.K+"-facet1",F.FX=de(1),n.add(F),B=[],ne){for(I=90+ue;I<=270+ue;I+=5)B.push([T+ZC.EO(I)*ce*w+ae,G+g,S+ZC.EF(I)*ce*w+le]);if(t.A.CB&&0!==Y)for(I=270+ue;I>=90+ue;I-=5)B.push([T+ZC.EO(I)*ce*Y+ae,G+v,S+ZC.EF(I)*ce*Y+le]);else B.push([T+ae,G+v,S+le])}else{for(I=0;I<=180;I+=5)(m=new ZC.CF(t.C,0,0,0)).EB=[H+ZC.EF(I)*ce*w+ae+Ze,N+g+ZC.EO(I)*(ce/2)*w-he],B.push(m);if(t.A.CB&&0!==Y)for(I=180;I>=0;I-=5)(m=new ZC.CF(t.C,0,0,0)).EB=[H+ZC.EF(I)*ce*Y+ae+Ze,N+v+ZC.EO(I)*(ce/2)*Y-he],B.push(m);else(m=new ZC.CF(t.C,0,0,0)).EB=[H+ae+Ze,N+v-he],B.push(m)}if(Ke.front?((b=new ZC.D0(t)).copy(j),b.append(Ke.front),b.parse(),E=ZC.DH.D7(b,t.C,B,!ne)):E=ZC.DH.D7(j,t.C,B,!ne),E.K=t.K+"-facet2",E.FX=de(2),n.add(E),t.A.CB&&0!==Y){if(B=[],ne)for(I=0;I<=360;I+=5)B.push([T+ZC.EO(I)*ce*Y+ae,G+v,S+ZC.EF(I)*ce*Y+le]);else for(I=0;I<=360;I+=5)(m=new ZC.CF(t.C,0,0,0)).EB=[H+ZC.EF(I)*ce*Y+ae+Ze,N+v+ZC.EO(I)*(ce/2)*Y-he],B.push(m);Ke.top?((b=new ZC.D0(t)).copy(q),b.append(Ke.top),b.parse(),K=ZC.DH.D7(b,t.C,B,!ne)):K=ZC.DH.D7(q,t.C,B,!ne),K.K=t.K+"-facet3",n.add(K),K.FX=de(3)}t.A.FW&&Ce.push(te+'--front" coords="'+E.FB()+'" data-z-sort="-100" />')}t.A.U&&t.A.U.AM&&t.GU()}t.paintPreview(j)}},A3H:function(){}}),ZC.A6N=ZC.Z2.C7({setup:function(){this.T1()},UV:function(){var e=this;e.paint(!0);var i=e.C.BN(e.A.BT("v")[0]),t=e.iX+(i.AU?0:e.I),n=e.iY+e.F/2,a=new ZC.CF(e.C,t-ZC.AN.E3,n-ZC.AN.E2,e.A.E["z-start"]);return[ZC._i_(a.EB[0]),ZC._i_(a.EB[1]),{reference:e,center:!0}]},ACC:function(e){var i=this,t=i.b(e);if("-1/-1"!==t.join("/")){var n=new ZC.CF(i.C,t[0]-ZC.AN.E3,t[1]-ZC.AN.E2,i.A.E["z-start"]);return[ZC._i_(n.EB[0]),ZC._i_(n.EB[1])]}return t},paint:function(e){var i=this;i.b(),void 0===e&&(e=!1);var t=i.C.CK,n=i.A.B1,a=i.A.CM;i.setup();var l=i.A.QF(),o=l.A9,r=l.ET,s=l.CC,A=l.CT,C=l.F3,c=l.D3,u=l.EZ;e?r=i.A.E["node-"+i.L+"-bar-index"]:i.A.E["node-"+i.L+"-bar-index"]=l.ET;var p,Z,h,d,f,_,g,v,b,m,B,E,K,F;if(i.A.CB){p=0;for(var D=i.A.A.K6[r],X=0;X<D.length;X++){var I=i.A.A.A6[D[X]].R[i.L];I&&(p+=I.AD)}}var x=1,y=1;if(i.A.CB&&(i.CR!==i.AD&&(x=(p-i.CR+i.AD)/p),y=(p-i.CR)/p),a.AU){var w=x;x=y,y=w}i.A.LJ&&(r=i.L);var Y=i.iY-o/2+s+r*(c+C)-r*u;if(Y=ZC._l_(Y,i.iY-o/2+s,i.iY+o/2-A),i.A.D3>0){var M=c;(c=i.A.D3)<=1&&(c*=M),Y+=(M-c)/2}var H=c,L=i.iX,P=null!==ZC._n_(i.A.LW[i.L])?i.A.LW[i.L]:0;if(L=i.A.CB&&"100%"===i.A.KQ?a.B2(100*(i.CR+P)/i.A.A.F7[i.L]["%total-"+i.A.DY]):a.B2(i.CR+P),i.A.CB?(h=L-(Z="100%"===i.A.KQ?a.B2(100*(i.CR-i.AD+P)/i.A.A.F7[i.L]["%total-"+i.A.DY]):a.B2(i.CR-i.AD+P)),i.AD>0?L=Z:h=ZC._a_(h),a.AU?h>0?(h=ZC._a_(h),L=Z):L-=h=ZC._a_(h):h<0&&(L=Z-(h=ZC._a_(h)))):L=(h=L-(Z=a.B2(P)))<0?Z-(h=ZC._a_(h)):Z,s+A===0&&(Y-=.5,H+=1),i.I=h,i.F=H,i.iX=L,i.iY=Y,a.AU?i.AD>=a.H4?i.iXVal=L:i.iXVal=L+i.I:i.AD>=a.H4?i.iXVal=L+i.I:i.iXVal=L,!e){var N=L+h-ZC.AN.E3,O=Y-ZC.AN.E2,k=0,Q=ZC.AN.FS;null!==ZC._n_(i.A.o["z-start"])&&(k=ZC._i_(i.A.o["z-start"])),null!==ZC._n_(i.A.o["z-end"])&&(Q=ZC._i_(i.A.o["z-end"])-k),i.A.E["z-start"]=k,i.A.E["z-mid"]=k+Q/2;var R=i.N=i.A.I8(i,i.N);if(R.DI=i.K+"-3dfacet",i.A.HT&&(i.GZ(R),R.parse()),R.AM){var z=new ZC.D0(i);z.copy(R),z.A0=ZC.AP.JH(ZC.AP.G5(z.A0)),z.AE=ZC.AP.JH(ZC.AP.G5(z.AE)),z.BV=ZC.AP.JH(ZC.AP.G5(z.BV));var T=new ZC.D0(i);T.copy(R),T.A0=ZC.AP.JH(ZC.AP.G5(T.A0),15),T.AE=ZC.AP.JH(ZC.AP.G5(T.AE),15),T.BV=ZC.AP.JH(ZC.AP.G5(T.BV),15);var G=new ZC.D0(i);G.copy(R);var S=i.C.K+"-node-area "+i.C.K+"-plotset-plot-"+i.A.L+"-node-area zc-node-area",J=ZC.Q.GC("poly",i.A.E8,i.N.IR)+'class="'+S+'" id="'+i.K,V=i.C.F0.true3d,U=i.F/2,W=Q/2,j=x*U,q=y*U,$=y*W,ee=x*W;a.AU&&!i.A.CB?(f=i.AD>=0?0:i.I,d=i.AD>=0?i.I:0):(f=i.AD>=0?i.I:0,d=i.AD>=0?0:i.I);var ie=i.A.A.HN,te=ZC.CY(W,U),ne=i.C.F0["x-angle"],ae=i.C.F0.angle,le=ZC.EF(ae)*W,oe=ZC.EO(ae)*W;V||(te=ZC.CY(2*oe,U));var re=function(e){var t=-1,l=i.A.L,o=i.L,r=i.A.A.A6.length,s=i.A.R.length;switch((i.A.CB?"s":"")+(n.AU?"k":"")+(a.AU?"v":"")){case"":case"v":case"sv":t=10*(r-l)+1e4*o+e;break;case"k":case"skv":case"kv":t=10*(r-l)+1e4*(s-o)+e;break;case"s":t=10*l+1e4*o+e;break;case"sk":t=10*l+1e4*(s-o)+e}return ZC._i_(t)},se=i.A.o.facets||{};switch(i.A.CW){default:se.left?((_=new ZC.D0(i)).copy(T),_.append(se.left),_.parse(),g=ZC.DH.DA(_,i.C,N-i.I+.1,N-.1,O+.1,O+.1,k+.1,k+Q-.1,"x")):g=ZC.DH.DA(T,i.C,N-i.I+.1,N-.1,O+.1,O+.1,k+.1,k+Q-.1,"x"),g.K=i.K+"-facet1",g.FX=re(5),t.add(g),se.right?((_=new ZC.D0(i)).copy(T),_.append(se.right),_.parse(),B=ZC.DH.DA(_,i.C,N-i.I+.1,N-.1,O+i.F-.1,O+i.F-.1,k+.1,k+Q-.1,"x")):B=ZC.DH.DA(T,i.C,N-i.I+.1,N-.1,O+i.F-.1,O+i.F-.1,k+.1,k+Q-.1,"x"),B.K=i.K+"-facet2",B.FX=re(1),t.add(B),se.bottom?((_=new ZC.D0(i)).copy(z),_.append(se.bottom),_.parse(),v=ZC.DH.DA(_,i.C,N-i.I+.1,N-i.I+.1,O+i.F-.1,O+.1,k+.1,k+Q-.1,"z")):v=ZC.DH.DA(z,i.C,N-i.I+.1,N-i.I+.1,O+i.F-.1,O+.1,k+.1,k+Q-.1,"z"),v.K=i.K+"-facet3",v.FX=re(2),t.add(v),se.top?((_=new ZC.D0(i)).copy(z),_.append(se.top),_.parse(),b=ZC.DH.DA(_,i.C,N-.1,N-.1,O+i.F-.1,O+.1,k+.1,k+Q-.1,"z")):b=ZC.DH.DA(z,i.C,N-.1,N-.1,O+i.F-.1,O+.1,k+.1,k+Q-.1,"z"),b.K=i.K+"-facet4",b.FX=re(3),t.add(b),se.front?((_=new ZC.D0(i)).copy(G),_.append(se.front),_.parse(),m=ZC.DH.DA(_,i.C,N-i.I+.1,N-.1,O+i.F-.1,O+.1,k+.1,k+.1,"y")):m=ZC.DH.DA(G,i.C,N-i.I+.1,N-.1,O+i.F-.1,O+.1,k+.1,k+.1,"y"),m.K=i.K+"-facet5",m.FX=re(4),t.add(m),i.A.FW&&(i.A.CB||ie.push(J+'--top" coords="'+b.FB()+'" />'),ie.push(J+'--left" coords="'+g.FB()+'" />',J+'--right" coords="'+B.FB()+'" />',J+'--front" coords="'+m.FB()+'" data-z-sort="-100" />'));break;case"pyramid":se.bottom?((_=new ZC.D0(i)).copy(z),_.append(se.bottom),_.parse(),v=ZC.DH.DA(_,i.C,N-f,N-f,O+U-j,O+U+j,W-ee,W+ee,"z")):v=ZC.DH.DA(z,i.C,N-f,N-f,O+U-j,O+U+j,W-ee,W+ee,"z"),v.K=i.K+"-facet1",v.FX=re(a.AU&&!i.A.CB?6:1),t.add(v),F=[[N-f,O+U-j,W-ee],[N-f,O+U+j,W-ee]],i.A.CB&&0!==y?F.push([N-d,O+U+q,W-$],[N-d,O+U-q,W-$]):F.push([N-d,O+U,Q/2]),se.front?((_=new ZC.D0(i)).copy(R),_.append(se.front),_.parse(),m=ZC.DH.D7(_,i.C,F)):m=ZC.DH.D7(R,i.C,F),m.K=i.K+"-facet2",m.FX=re(3),t.add(m),F=[[N-f,O+U-j,W-ee],[N-f,O+U-j,W+ee]],i.A.CB&&0!==y?F.push([N-d,O+U-q,W+$],[N-d,O+U-q,W-$]):F.push([N-d,O+i.F/2,Q/2]),se.left?((_=new ZC.D0(i)).copy(T),_.append(se.left),_.parse(),g=ZC.DH.D7(_,i.C,F)):g=ZC.DH.D7(T,i.C,F),g.K=i.K+"-facet3",g.FX=re(4),t.add(g),F=[[N-f,O+U+j,W-ee],[N-f,O+U+j,W+ee]],i.A.CB&&0!==y?F.push([N-d,O+U+q,W+$],[N-d,O+U+q,W-$]):F.push([N-d,O+U,Q/2]),se.right?((_=new ZC.D0(i)).copy(T),_.append(se.right),_.parse(),B=ZC.DH.D7(_,i.C,F)):B=ZC.DH.D7(T,i.C,F),B.K=i.K+"-facet4",B.FX=re(2),t.add(B),i.A.CB&&0!==y&&(se.top?((_=new ZC.D0(i)).copy(z),_.append(se.top),_.parse(),b=ZC.DH.DA(_,i.C,N-d,N-d,O+U-q,O+U+q,W-$,W+$,"z")):b=ZC.DH.DA(z,i.C,N-d,N-d,O+U-q,O+U+q,W-$,W+$,"z"),b.K=i.K+"-facet5",b.FX=re(5),t.add(b)),i.A.FW&&ie.push(J+'--left" coords="'+g.FB()+'" />',J+'--right" coords="'+B.FB()+'" />',J+'--front" coords="'+m.FB()+'" data-z-sort="-100" />');break;case"cylinder":if(F=[],V)for(E=0;E<=360;E+=5)F.push([N-i.I,O+ZC.EO(E)*te+U,k+ZC.EF(E)*te+W]);else for(E=0;E<=360;E+=5)(K=new ZC.CF(i.C,0,0,0)).EB=[L+ZC.EF(E)*(te/2)+le,Y+U+ZC.EO(E)*te-oe],F.push(K);if(se.bottom?((_=new ZC.D0(i)).copy(z),_.append(se.bottom),_.parse(),v=ZC.DH.D7(_,i.C,F,!V)):v=ZC.DH.D7(z,i.C,F,!V),v.K=i.K+"-facet1",v.FX=re(1),t.add(v),F=[],V){for(E=90-ne;E<=270-ne;E+=5)F.push([N-i.I,O+ZC.EO(E)*te+U,k+ZC.EF(E)*te+W]);for(F.push([N,O+ZC.EO(E)*te+U,k+ZC.EF(E)*te+W]),E=270-ne;E>=90-ne;E-=5)F.push([N,O+ZC.EO(E)*te+U,k+ZC.EF(E)*te+W])}else{for(E=90;E<=270;E+=5)(K=new ZC.CF(i.C,0,0,0)).EB=[L+ZC.EF(E)*(te/2)+le,Y+U+ZC.EO(E)*te-oe],F.push(K);for(E=270;E>=90;E-=5)(K=new ZC.CF(i.C,0,0,0)).EB=[L+ZC.EF(E)*(te/2)+i.I+le,Y+U+ZC.EO(E)*te-oe],F.push(K)}if(se.front?((_=new ZC.D0(i)).copy(R),_.append(se.front),_.parse(),m=ZC.DH.D7(_,i.C,F,!V)):m=ZC.DH.D7(R,i.C,F,!V),m.K=i.K+"-facet2",m.FX=re(2),t.add(m),F=[],V)for(E=0;E<=360;E+=5)F.push([N,O+ZC.EO(E)*te+U,k+ZC.EF(E)*te+W]);else for(E=0;E<=360;E+=5)(K=new ZC.CF(i.C,0,0,0)).EB=[L+ZC.EF(E)*(te/2)+i.I+le,Y+U+ZC.EO(E)*te-oe],F.push(K);se.top?((_=new ZC.D0(i)).copy(z),_.append(se.top),_.parse(),b=ZC.DH.D7(_,i.C,F,!V)):b=ZC.DH.D7(z,i.C,F,!V),b.K=i.K+"-facet3",b.FX=re(3),t.add(b),i.A.FW&&ie.push(J+'--front" coords="'+m.FB()+'" data-z-sort="-100" />',J+'--top" coords="'+b.FB()+'" />');break;case"cone":if(F=[],V)for(E=0;E<=360;E+=5)F.push([N-f,O+ZC.EO(E)*te*x+U,ZC.EF(E)*te*x+W]);else for(E=0;E<=360;E+=5)(K=new ZC.CF(i.C,0,0,0)).EB=[L+d+ZC.EF(E)*(te/2)*x+le,Y+U+ZC.EO(E)*te*x-oe],F.push(K);if(se.bottom?((_=new ZC.D0(i)).copy(z),_.append(se.bottom),_.parse(),v=ZC.DH.D7(_,i.C,F,!V)):v=ZC.DH.D7(z,i.C,F,!V),v.K=i.K+"-facet1",v.FX=re(1),t.add(v),F=[],V){for(E=90-ne;E<=270-ne;E+=5)F.push([N-f,O+ZC.EO(E)*te*x+U,ZC.EF(E)*te*x+W]);if(i.A.CB&&0!==y)for(E=270-ne;E>=90-ne;E-=5)F.push([N-d,O+ZC.EO(E)*te*y+U,ZC.EF(E)*te*y+W]);else F.push([N-d,O+U,te])}else{for(E=90;E<=270;E+=5)(K=new ZC.CF(i.C,0,0,0)).EB=[L+d+ZC.EF(E)*(te/2)*x+le,Y+U+ZC.EO(E)*te*x-oe],F.push(K);if(i.A.CB&&0!==y)for(E=270;E>=90;E-=5)(K=new ZC.CF(i.C,0,0,0)).EB=[L+f+ZC.EF(E)*(te/2)*y+le,Y+U+ZC.EO(E)*te*y-oe],F.push(K);else(K=new ZC.CF(i.C,0,0,0)).EB=[L+f+le,Y+U-oe],F.push(K)}if(se.front?((_=new ZC.D0(i)).copy(R),_.append(se.front),_.parse(),m=ZC.DH.D7(_,i.C,F,!V)):m=ZC.DH.D7(R,i.C,F,!V),m.K=i.K+"-facet2",m.FX=re(2),t.add(m),i.A.CB&&0!==y){if(F=[],V)for(E=0;E<=360;E+=5)F.push([N-d,O+ZC.EO(E)*te*y+U,ZC.EF(E)*te*y+W]);else for(E=0;E<=360;E+=5)(K=new ZC.CF(i.C,0,0,0)).EB=[L+f+ZC.EF(E)*(te/2)*y+le,Y+U+ZC.EO(E)*te*y-oe],F.push(K);se.top?((_=new ZC.D0(i)).copy(z),_.append(se.top),_.parse(),b=ZC.DH.D7(_,i.C,F,!V)):b=ZC.DH.D7(z,i.C,F,!V),b.K=i.K+"-facet3",b.FX=re(3),t.add(b)}i.A.FW&&ie.push(J+'--front" coords="'+m.FB()+'" data-z-sort="-100" />')}}i.A.U&&i.A.U.AM&&i.GU()}},A3H:function(){}}),ZC.A6M=ZC.A2T.C7({setup:function(){this.T1()},ABC:function(){return{color:this.N.B9}},XP:function(){return{"background-color":this.N.B9,"border-color":this.N.B9,color:this.N.C1}},ACC:function(e){var i=this,t=i.b(e);return new ZC.CF(i.C,t[0]-ZC.AN.E3,t[1]-ZC.AN.E2,i.A.E["z-start"]).EB},paint:function(){var e,i,t=this;t.b();var n,a=t.E.points;(n="none"!==t.A.IY?t.N=t.A.I8(t,t.N):t.N).DI=t.K+"-3dfacet",t.A.HT&&t.GZ(n);var l=0,o=-1,r=ZC.AN.FS;if("hide"===t.C.getToggleAction())t.A.CB?o=0:(l=t.A.A.A6.length,o=t.A.L,r/=l);else if(t.A.CB)o=0;else{for(e=0;e<t.A.A.A6.length;e++)t.C.E["plot"+e+".visible"]&&o++;for(e=0;e<t.A.A.A6.length;e++)t.C.E["plot"+e+".visible"]&&(l++,t.A.L>e&&o--);r/=l,o=l-o-1}n.A0=n.AE=n.B9,"spline"===t.A.CW&&(n.BV=n.B9);var s=t.A.A.HN,A=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area",C=ZC.Q.GC("poly",t.A.E8,t.N.IR)+'class="'+A+'" id="'+t.K,c=o*r,u=(o+1)*r;if(null!==ZC._n_(t.A.o["z-start"])&&(c=ZC._i_(t.A.o["z-start"])),null!==ZC._n_(t.A.o["z-end"])&&(u=ZC._i_(t.A.o["z-end"])),null!==ZC._n_(t.A.o.depth)){var p=ZC._i_(t.A.o.depth);c=o*r+r/2-p,u=o*r+r/2+p}t.A.E["z-plots"]=l,t.A.E["z-cnt"]=o,t.A.E["z-depth"]=r,t.A.E["z-start"]=c,t.A.E["z-mid"]=(c+u)/2;var Z=[],h=[],d=n;ZC._a_(c-u)<=2&&(t.C.CK.SF[t.A.K]||(t.C.CK.SF[t.A.K]={zIndex:t.A.L,style:n,points:[]},t.C.CK.SF[t.A.K].style.M4=!1,t.C.CK.SF[t.A.K].style.B0=ZC.BQ(1,ZC._i_(ZC._a_(c-u)/1))));for(var f,_,g,v=0;v<a.length-1;v++){if(ZC._a_(c-u)>2){var b=-ZC._i_(ZC.TO(Math.atan((a[v+1][1]-a[v][1])/(a[v+1][0]-a[v][0]))));(d=new ZC.D0(t)).copy(n),d.A0=ZC.AP.JH(ZC.AP.G5(d.A0),b),d.AE=ZC.AP.JH(ZC.AP.G5(d.AE),b),d.BV=ZC.AP.JH(ZC.AP.G5(d.BV),b)}var m,B,E,K;if(t.A.oP0&&ZC._a_(c-u)<=2?((m=t.A.oP0).parse(t.C,a[v][0]-ZC.AN.E3,a[v][1]-ZC.AN.E2,c),(B=t.A.oP1).parse(t.C,a[v+1][0]-ZC.AN.E3,a[v+1][1]-ZC.AN.E2,c),(E=t.A.oP2).parse(t.C,a[v+1][0]-ZC.AN.E3,a[v+1][1]-ZC.AN.E2,u-1),(K=t.A.oP3).parse(t.C,a[v][0]-ZC.AN.E3,a[v][1]-ZC.AN.E2,u-1)):(m=t.A.oP0=new ZC.CF(t.C,a[v][0]-ZC.AN.E3,a[v][1]-ZC.AN.E2,c),B=t.A.oP1=new ZC.CF(t.C,a[v+1][0]-ZC.AN.E3,a[v+1][1]-ZC.AN.E2,c),E=t.A.oP2=new ZC.CF(t.C,a[v+1][0]-ZC.AN.E3,a[v+1][1]-ZC.AN.E2,u-1),K=t.A.oP3=new ZC.CF(t.C,a[v][0]-ZC.AN.E3,a[v][1]-ZC.AN.E2,u-1)),ZC._a_(c-u)>2?((f=new ZC.ZF(d,t.C)).K=t.K+"-facet"+v,f.add(m),f.add(B),f.add(E),f.add(K),t.C.CK.add(f)):(t.C.CK.SF[t.A.K].points.push(m.EB),v===a.length-2&&t.C.CK.SF[t.A.K].points.push(B.EB),"spline"===t.A.CW&&(m=new ZC.CF(t.C,a[v][0]-ZC.AN.E3,a[v][1]-ZC.AN.E2,c-10),K=new ZC.CF(t.C,a[v][0]-ZC.AN.E3,a[v][1]-ZC.AN.E2,u-1+10))),Z.push(m.EB),h.push(K.EB),t.A.FW&&"spline"!==t.A.CW)if(ZC._a_(c-u)>2)i=f.FB();else{for(_=ZC.AO.YW([m.EB,B.EB],4),g=0;g<_.length;g++)_[g][0]=Math.round(_[g][0]),_[g][1]=Math.round(_[g][1]);i=_.join(",")}"spline"!==t.A.CW&&t.A.FW&&s.push(C+"--face"+v+'" coords="'+i+'" />')}"spline"===t.A.CW?(t.E.polypoints=!0,t.E.points=Z.concat(h.reverse())):t.E.points=null,t.A.A2.o&&("spline"===t.A.CW||"none"===t.A.A2.o.type||null!==ZC._n_(t.A.A2.o.visible)&&!ZC._b_(t.A.A2.o.visible))&&"spline"!==t.A.CW||t.P2(!0),t.A.U&&t.A.U.AM&&t.GU(),t.paintPreview(n,a)},A3H:function(){}}),ZC.A6J=ZC.A2S.C7({setup:function(){this.T1()},ABC:function(){return{color:this.N.B9}},XP:function(){return{"background-color":this.N.B9,"border-color":this.N.B9,color:this.N.C1}},ACC:function(e){var i=this,t=i.b(e);return new ZC.CF(i.C,t[0]-ZC.AN.E3,t[1]-ZC.AN.E2,i.A.E["z-start"]).EB},paint:function(){var e,i,t=this;t.b();var n=t.A.CM,a=n.H4,l=n.B2(a);l=ZC._l_(l,n.iY,n.iY+n.F);var o,r=t.E.points,s=t.E.pointsarea;(o="none"!==t.A.IY?t.N=t.A.I8(t,t.N):t.N).DI=t.K+"-3dfacet",t.A.HT&&t.GZ(o);var A=0,C=-1,c=ZC.AN.FS;if("hide"===t.C.getToggleAction())t.A.CB?C=0:(A=t.A.A.A6.length,C=t.A.L,c/=A);else if(t.A.CB)C=0;else{for(e=0;e<t.A.A.A6.length;e++)t.C.E["plot"+e+".visible"]&&C++;for(e=0;e<t.A.A.A6.length;e++)t.C.E["plot"+e+".visible"]&&(A++,t.A.L>e&&C--);c/=A,C=A-C-1}var u=new ZC.D0(t);u.copy(o),u.A0=u.AE=o.B9,"spline"===t.A.CW&&(u.BV=o.B9);var p=new ZC.D0(t);p.copy(o),p.L1=!0,p.AT=0,p.C5=t.A.HQ,p.A0=ZC.AP.QT(ZC.AP.G5(p.A0),30),p.AE=ZC.AP.QT(ZC.AP.G5(p.AE),30);var Z=t.A.A.HN,h=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area",d=ZC.Q.GC("poly",t.A.E8,t.N.IR)+'class="'+h+'" id="'+t.K,f=[],_=[],g=C*c,v=(C+1)*c;if(null!==ZC._n_(t.A.o["z-start"])&&(g=ZC._i_(t.A.o["z-start"])),null!==ZC._n_(t.A.o["z-end"])&&(v=ZC._i_(t.A.o["z-end"])),null!==ZC._n_(t.A.o.depth)){var b=ZC._i_(t.A.o.depth);g=C*c+c/2-b,v=C*c+c/2+b}t.A.E["z-plots"]=A,t.A.E["z-cnt"]=C,t.A.E["z-depth"]=c,t.A.E["z-start"]=g,t.A.E["z-mid"]=(g+v)/2;var m,B,E=new ZC.ZF(p,t.C);for(m=0,B=s.length;m<B;m++){var K=new ZC.CF(t.C,s[m][0]-ZC.AN.E3,s[m][1]-ZC.AN.E2,g);E.add(K)}t.C.CK.add(E),t.E.pointsarea=s,t.L===t.A.R.length-1&&((E=new ZC.ZF(p,t.C)).add(new ZC.CF(t.C,t.iX-.5-ZC.AN.E3,t.iY-ZC.AN.E2,g)),E.add(new ZC.CF(t.C,t.iX-.5-ZC.AN.E3,l-ZC.AN.E2,g)),E.add(new ZC.CF(t.C,t.iX-.5-ZC.AN.E3,l-ZC.AN.E2,v-1)),E.add(new ZC.CF(t.C,t.iX-.5-ZC.AN.E3,t.iY-ZC.AN.E2,v-1)),E.K=t.K+"-facet99",t.C.CK.add(E));var F=o;for(ZC._a_(g-v)<=2&&(t.C.CK.SF[t.A.K]||(t.C.CK.SF[t.A.K]={zIndex:t.A.L,style:o,points:[]},t.C.CK.SF[t.A.K].style.M4=!1,t.C.CK.SF[t.A.K].style.B0=ZC.BQ(1,ZC._i_(ZC._a_(g-v)/1)))),m=0;m<r.length-1;m++){if(ZC._a_(g-v)>2){var D=-ZC._i_(ZC.TO(Math.atan((r[m+1][1]-r[m][1])/(r[m+1][0]-r[m][0]))));(F=new ZC.D0(t)).copy(u),F.A0=ZC.AP.JH(ZC.AP.G5(F.A0),D),F.AE=ZC.AP.JH(ZC.AP.G5(F.AE),D),F.BV=ZC.AP.JH(ZC.AP.G5(F.BV),D)}var X=new ZC.CF(t.C,r[m][0]-ZC.AN.E3,r[m][1]-ZC.AN.E2,g),I=new ZC.CF(t.C,r[m+1][0]-ZC.AN.E3,r[m+1][1]-ZC.AN.E2,g),x=new ZC.CF(t.C,r[m+1][0]-ZC.AN.E3,r[m+1][1]-ZC.AN.E2,v-1),y=new ZC.CF(t.C,r[m][0]-ZC.AN.E3,r[m][1]-ZC.AN.E2,v-1);if(ZC._a_(g-v)>2?((E=new ZC.ZF(F,t.C)).K=t.K+"-facet"+m,E.add(X),E.add(I),E.add(x),E.add(y),t.C.CK.add(E)):(t.C.CK.SF[t.A.K].points.push(X.EB),m===r.length-2&&t.C.CK.SF[t.A.K].points.push(I.EB),"spline"===t.A.CW&&(X=new ZC.CF(t.C,r[m][0]-ZC.AN.E3,r[m][1]-ZC.AN.E2,g-10),y=new ZC.CF(t.C,r[m][0]-ZC.AN.E3,r[m][1]-ZC.AN.E2,v-1+10))),f.push(X.EB),_.push(y.EB),t.A.FW&&"spline"!==t.A.CW)if(ZC._a_(g-v)>2)i=E.FB();else{for(var w=ZC.AO.YW([E.D[0].EB,E.D[1].EB],4),Y=0;Y<w.length;Y++)w[Y][0]=Math.round(w[Y][0]),w[Y][1]=Math.round(w[Y][1]);i=w.join(",")}"spline"!==t.A.CW&&t.A.FW&&Z.push(d+"--face"+m+'" coords="'+i+'" />')}"spline"===t.A.CW?(t.E.polypoints=!0,t.E.points=f.concat(_.reverse())):t.E.points=null,t.A.A2.o&&("none"===t.A.A2.o.type||null!==ZC._n_(t.A.A2.o.visible)&&!ZC._b_(t.A.A2.o.visible))&&"spline"!==t.A.CW||t.P2(!0),t.A.U&&t.A.U.AM&&t.GU(),t.paintPreview(o,r,s)},A3H:function(){}}),ZC.A81=ZC.M5.C7({$i:function(e){this.b(e),this.WC=0,this.WF=0},KE:function(e,i,t,n){var a=this,l=null;return l=a.A.L<a.A.A.A6.length-1?a.A.A.A6[a.A.L+1]:a.A.A.A6[0],a.CV=[["%paired-plot-text",l.AR],["%paired-node-value",l.R[a.L].AD],["%joined-value",a.WF],["%shared-value",null===ZC._n_(a.A.A.X1[a.L])?0:a.A.A.X1[a.L].area]],e=a.b(e,i,t,n)},setup:function(){var e=this,i=e.C.BN("scale"),t=e.L%i.GX,n=Math.floor(e.L/i.GX);e.iX=i.iX+t*i.GH+i.GH/2+i.BJ,e.iY=i.iY+n*i.G8+i.G8/2+i.BH,e.HY||(e.copy(e.A),e.E7=e.A.E7,e.DE()&&e.parse(!1),e.HY=!0),e.I=i.GH/2,e.F=i.G8/2},ACC:function(e){var i=this,t=e.I,n=e.F,a=i.iX-t/2,l=i.iY-n/2;if(3===i.A.A.A6.length)switch(i.A.L){case 0:a-=i.AI/4,l+=i.AI/8;break;case 1:a+=i.AI/4,l+=i.AI/8;break;case 2:l-=i.AI/4}else switch(i.A.L){case 0:a-=i.AI/4;break;case 1:a+=i.AI/4}return null!==ZC._n_(e.o.x)&&(a=e.iX),null!==ZC._n_(e.o.y)&&(l=e.iY),a+=e.BJ,l+=e.BH,[ZC._i_(a),ZC._i_(l)]},GU:function(){var e,i,t=this,n=t.b(),a=t.C.K+"-value-box "+t.C.K+"-plot-"+t.A.L+"-value-box zc-value-box",l=t.H.usc()?t.H.mc("top"):t.C.AJ["3d"]||t.H.K5?ZC.AK(t.C.K+"-plots-vb-c"):ZC.AK(t.C.K+"-plot-"+t.A.L+"-vb-c"),o=t.H.usc()?ZC.AK(t.C.A.K+"-top"):ZC.AK(t.C.A.K+"-text");if(null!==ZC._n_(n.o.joined)){if(0===t.A.L&&!t.C.E["plot1.visible"]||1===t.A.L&&!t.C.E["plot2.visible"]||2===t.A.L&&!t.C.E["plot0.visible"])return;t.A.L<t.A.A.A6.length-1?t.A.A.A6[t.A.L+1]:t.A.A.A6[0],e=t.A.A.DZ[t.A.L][t.L].intxy,(i=new ZC.DS(t)).copy(n),i.o.text=""+t.WF,i.append(n.o.joined),i.KE=function(e){return t.KE(e,{})},i.parse(),i.GJ=a,i.K=t.K+"-value-box-join",i.Z=n.C6=l,i.IJ=o,i.iX=e[0]-i.I/2,i.iY=e[1]-i.F/2,i.AM&&(i.paint(),i.EL())}if(null!==ZC._n_(n.o.shared)&&2===t.A.L){if(!t.C.E["plot0.visible"]||!t.C.E["plot1.visible"]||!t.C.E["plot2.visible"])return;e=t.A.A.X1[t.L].xy,(i=new ZC.DS(t)).copy(n),i.o.text=""+t.A.A.HN[t.A.L],i.append(n.o.shared),i.KE=function(e){return t.KE(e,{})},i.parse(),i.GJ=a,i.K=t.K+"-value-box-shared",i.Z=n.C6=l,i.IJ=o,i.iX=e[0]-i.I/2,i.iY=e[1]-i.F/2,i.AM&&(i.paint(),i.EL())}},ABC:function(){return{color:this.B9}},XP:function(){return{"background-color":this.BV,"border-color":this.BV,color:this.C1}},paint:function(){function e(){var e=t.C.K+"-node-area "+t.C.K+"-plotset-plot-"+t.A.L+"-node-area zc-node-area",i=ZC.Q.GC("circle",t.A.E8,t.A.IR)+'class="'+e+'" id="'+t.K+'" coords="'+ZC._i_(t.iX+ZC.MAPTX)+","+ZC._i_(t.iY+ZC.MAPTX)+","+ZC._i_(ZC.BQ(ZC.mobile?6:3,t.AI)*(ZC.mobile?2:1.2))+'" />';t.A.A.HN.push(i),t.A.U&&t.GU()}var i,t=this;if(t.A.L>=3)t.A.U&&t.GU();else{t.b();var n=t.N=t.A.I8(t,t),a=new ZC.DW(t.A);a.K=t.K,a.Z=t.A.CO("bl",1),a.C6=t.A.CO("bl",0),a.copy(n);var l=t.iX,o=t.iY;if(a.iX=l,a.iY=o,a.AI=t.AI,a.DQ="circle",a.E.plotidx=t.A.L,a.E.nodeidx=t.L,a.parse(),t.FM=a,t.A.GA&&!t.C.HF){var r=a,s={};r.iX=l,r.iY=o,s.x=l,s.y=o;var A=t.A.L6;if(r.C5=0,s.alpha=n.C5,3===A)r.AI=2,s.size=t.AI;else if(4===A){switch(t.A.L){case 0:r.iX=l-3*t.AI,r.iY=o;break;case 1:r.iX=l+3*t.AI,r.iY=o;break;case 2:r.iX=l,r.iY=o-3*t.AI}s.x=l,s.y=o}for(i in t.A.FT)r[ZC.EA.GK[ZC.EC(i)]]=t.A.FT[i],s[ZC.EC(i)]=n[ZC.EA.GK[ZC.EC(i)]];if(t.C.EM||(t.C.EM={}),null!==ZC._n_(t.C.EM[t.A.L+"-"+t.L]))for(i in t.C.EM[t.A.L+"-"+t.L])r[ZC.EA.GK[ZC.EC(i)]]=t.C.EM[t.A.L+"-"+t.L][i];t.C.EM[t.A.L+"-"+t.L]={},ZC._cp_(s,t.C.EM[t.A.L+"-"+t.L]);var C=new ZC.EA(r,s,t.A.JD,t.A.L2,ZC.EA.RC[t.A.L5],function(){e()});C.AW=t,t.LL(C)}else a.paint(),e()}},A3H:function(e){var i=this;ZC.move||i.M2({layer:e,type:"shape",initcb:function(){this.DQ="circle",this.A0=i.A.BP[3],this.AE=i.A.BP[3]},setupcb:function(){this.iX=i.iX,this.iY=i.iY,this.AI=i.AI}})}}),ZC.M5.prototype.MW=function(e,i){var t,n,a=this;if(void 0===i&&(i=!1),i)"undefined"!=typeof a.E.pointserror&&((t=new ZC.D0(a)).copy(a.A),a.A.J7&&(t.copy(a.A.J7),t.append(a.A.J7.o["hover-state"])),t.parse(),t.K=a.K+"--error-hover",t.AM&&ZC.CS.paint(e,t,a.E.pointserror));else{var l=a.A.CM,o=a.A.B1;if(0!==a.A.S0.length){var r=null,s=null,A=!0;a.A.S0.length<=2?(null!==ZC._n_(a.A.S0[0])&&a.A.S0[0]instanceof Array&&(A=!1),null!==ZC._n_(a.A.S0[1])&&a.A.S0[1]instanceof Array&&(A=!1)):A=!1,A?(r=a.A.S0[0],s=a.A.S0[1]):null!==ZC._n_(n=a.A.S0[a.L])&&n instanceof Array&&(r=s=n[0],2===n.length&&(s=n[1])),a.E["node-error-plus"]=r,a.E["node-error-minus"]=s,-1!==(r+"").indexOf("%")&&(r=ZC.IG(r))<=1&&(r*=a.AD),-1!==(s+"").indexOf("%")&&(s=ZC.IG(s))<=1&&(s*=a.AD);var C=[],c=ZC.IG(a.A.J7?a.A.J7.o.size||.5:.5);c<=1&&(c="vbar"===a.A.AF?ZC._i_(c*a.I):"hbar"===a.A.AF?ZC._i_(c*a.F):ZC._i_(c*o.A9));var u,p=0;if(p=o.CQ?a.F:a.I,null!==ZC._n_(r)){var Z=l.B2(a.CR+r);o.CQ?(u=l.AU?a.AD<0?a.iX+a.I:a.iX:a.AD>0?a.iX+a.I:a.iX,C.push([Z,a.iY+p/2-c/2],[Z,a.iY+p/2+c/2],null,[Z,a.iY+p/2],[u,a.iY+p/2])):(u=l.AU?a.AD>0?a.iY+a.F:a.iY:a.AD<0?a.iY+a.F:a.iY,C.push([a.iX+p/2-c/2,Z],[a.iX+p/2+c/2,Z],null,[a.iX+p/2,Z],[a.iX+p/2,u]))}if(null!==ZC._n_(s)){var h=l.B2(a.CR-s);o.CQ?(u=l.AU?a.AD<0?a.iX+a.I:a.iX:a.AD>0?a.iX+a.I:a.iX,C.push(null,[h,a.iY+p/2-c/2],[h,a.iY+p/2+c/2],null,[h,a.iY+p/2],[u,a.iY+p/2])):(u=l.AU?a.AD>0?a.iY+a.F:a.iY:a.AD<0?a.iY+a.F:a.iY,C.push(null,[a.iX+p/2-c/2,h],[a.iX+p/2+c/2,h],null,[a.iX+p/2,h],[a.iX+p/2,u]))}(t=new ZC.D0(a)).copy(a.A),a.A.J7&&t.copy(a.A.J7),t.parse(),t.K=a.K+"--error",t.CZ=!1,ZC.CS.paint(e,t,C),a.E.pointserror=C}}},ZC.H8=ZC.HS.C7({$i:function(e){this.b(e);var i=this;i.H=i.A.A,i.BC="",i.X=[],i.BX=[],i.A4F=[],i.DL=!1,i.M=null,i.BR=null,i.IO=null,i.D5=null,i.GI=0,i.IA=null,i.FZ=null,i.H4=0,i.OW=null,i.L=1,i.A5=0,i.A3X=0,i.BW=0,i.AU=!1,i.CQ=!1,i.A9=0,i.iStepMultiplier=1,i.DU=-1,i.R5=ZC.HI["thousands-separator"]||"",i.RR=ZC.HI["decimals-separator"]||".",i.ZP=!1,i.SE=2,i.A2V=!1,i.TI="",i.ZN="standard",i.CI=null,i.AF="",i.EE=ZC.MAX,i.LY=ZC.MAX,i.GM=!1,i.Y5=!1,i.LI=null,i.NN=null,i.PY=[],i.E4=1,i.B4=-1,i.BL=-1,i.SC=-1,i.FU=-1,i.GY=-1,i.CA="lin",i.EH=10,i.FD=null,i.OY=1,i.PR=!0,i.A0B=!1,i.aAutoFit=[!1,!1],i.LP=null,i.WH=null,i.T3=!1,i.HW=-1,i.Y7=!1,i.B8="default",i.PU=!1,i.V7=!1,i.QY=1,i.sMaster="",i.bNormalize=!0},parse:function(){function e(e){var i=[A+".SCALE."+e,A+"."+t.BC+"."+e,A+"."+C+"."+e,A+"."+C+"["+t.B8+"]."+e,A+"."+c+"."+e];return t.A.AJ["3d"]&&(i=i.concat([A+".SCALE[3d]."+e,A+"."+t.BC+"[3d]."+e,A+"."+C+"[3d]."+e,A+"."+c+"[3d]."+e])),i}this.b();var i,t=this;if(null!==ZC._n_(i=t.o.step))if(ZC.P4(i))t.E4=ZC._f_(i);else{var n=i.replace(/[0-9]/gi,""),a=parseInt(i.replace(/[^0-9]/gi,""),10);switch(a=a||1,n){case"second":t.E4=1e3*a;break;case"minute":t.E4=1e3*a*60;break;case"hour":t.E4=1e3*a*60*60;break;case"day":t.E4=1e3*a*60*60*24;break;case"week":t.E4=1e3*a*60*60*24*7;break;case"month":t.E4=2629743e3*a;break;case"year":t.E4=31556926e3*a}}if(null!==ZC._n_(t.o.multiplier)&&null===ZC._n_(t.o["short"])&&(t.o["short"]=t.o.multiplier),t.assign_a([["labels","BX"],["tooltip-text","A4F"],["format","CI"],["offset-start","A5","i"],["offset-start","A3X","i"],["offset-end","BW","i"],["minor-ticks","GI","i"],["step-multiplier","iStepMultiplier","i"],["index","L","i"],["mirrored","AU","b"],["zooming","GM","b"],["zoom-snap","Y5","b"],["fixed-step","PU","b"],["zoom-to","LI"],["force-view","Y7","b"],["zoom-to-values","NN"],["items-overlap","A0B","b"],["used","T3","b"],["max-labels","EE","i"],["max-items","EE","i"],["ref-value","H4","f"],["decimals","DU","ia"],["decimals-separator","RR"],["thousands-separator","R5"],["short","A2V","b"],["short-unit","TI"],["negation","ZN"],["exponent","ZP","b"],["exponent-decimals","SE","ia"],["progression","CA"],["log-base","EH","fa"],["scale-factor","OY","fa"],["show-labels","LP"],["max-decimals","HW","i"],["placement","B8"],["factor","QY","f"],["master","sMaster"],["blended","V7","b"],["ranged","DL","b"],["normalize","bNormalize","b"]]),"log"===t.CA&&null===ZC._n_(t.o["minor-ticks"])&&(t.GI=Math.max(0,t.EH-2)),null!==ZC._n_(i=t.o["auto-fit"])&&(i.length?(t.aAutoFit[0]=ZC._b_(i[0]),t.aAutoFit[1]=ZC._b_(i[i.length-1])):t.aAutoFit[0]=t.aAutoFit[1]=ZC._b_(i)),"string"==typeof t.BX){var l=t.BX.split(":"),o=1;3===l.length&&(o=ZC._f_(l[2])),t.BX=[];for(var r=ZC._f_(l[0]);r<ZC._f_(l[1]);r+=o)t.BX.push(""+r);t.BX.push(""+l[1])}null!==ZC._n_(t.o["fixed-items"])&&(t.EE=ZC.MAX),t.EE=ZC.BQ(t.EE,2),null!==ZC._n_(i=t.o.offset)&&(t.A5=t.BW=ZC._i_(i),0!==ZC._i_(i)||"mixed"!==t.A.AF&&"mixed3d"!==t.A.AF||(t.DL=!1)),null!==ZC._n_(i=t.o["max-ticks"])?t.LY=ZC._i_(i):t.LY=t.EE,t.LY=ZC.BQ(2,t.LY),null!==ZC._n_(i=t.o.transform)&&(t.FD=new ZC.D0,t.FD.append(i));var s=t.A.A.B7,A="("+t.A.AF+")",C=t.BC.replace(/\-[0-9]/,""),c=t.BC.replace(/\-[0-9]/,"-n");if(null===ZC._n_(t.o.placement)&&t.L>1&&(t.B8="opposite"),null!==ZC._n_(i=t.o.markers))for(var u=0,p=i.length;u<p;u++){var Z=new ZC.A8M(t);Z.L=u,Z.K=t.K+"-marker-"+u,s.load(Z.o,e("marker")),Z.append(i[u]),Z.parse(),t.PY.push(Z)}t.OW=new ZC.D0(t),s.load(t.OW.o,e("ref-line")),t.OW.append(t.o["ref-line"]),"k"===t.AF&&(t.OW.AM=!1),t.OW.parse(),t.M=new ZC.DS(t),s.load(t.M.o,e("label")),t.M.append(t.o.label),t.M.K=t.K+"-label",t.M.parse(),t.BR=new ZC.DS(t),s.load(t.BR.o,e("item")),t.BR.append(t.o.item),t.BR.K=t.K+"-item",t.BR.parse(),t.IO=new ZC.D0(t),s.load(t.IO.o,e("tick")),t.IO.append(t.o.tick),t.IO.parse(),t.D5=new ZC.D0(t),s.load(t.D5.o,e("guide")),t.D5.append(t.o.guide),t.D5.parse(),null===ZC._n_(t.D5.o.items)&&"-1"!==t.D5.A0&&"-1"!==t.D5.AE&&t.D5.A0!==t.D5.AE&&(t.D5.o.items=[{alpha:t.D5.C5,"background-color":t.D5.A0},{alpha:t.D5.C5,"background-color":t.D5.AE}]),t.IA=new ZC.D0(t),s.load(t.IA.o,e("minor-tick")),t.IA.append(t.o["minor-tick"]),t.IA.parse(),t.FZ=new ZC.D0(t),s.load(t.FZ.o,e("minor-guide")),t.FZ.append(t.o["minor-guide"]),t.FZ.parse(),t.A44()},A44:function(){var e,i=this,t={x:"iX",y:"iY",width:"I",height:"F"};for(var n in t){var a=i.A.P[t[n]];null!==ZC._n_(i.o[n])&&(a=ZC.IG(i.o[n]))>=0&&a<=1&&(a="x"===n||"y"===n?i.A.P["x"===n?"iX":"iY"]+ZC._i_(a*i.A.P["x"===n?"I":"F"]):ZC._i_(a*i.A.P[t[n]])),i[t[n]]=a}null!==ZC._n_(e=i.o.offset)&&(i.A5=i.BW=ZC._f_(ZC._p_(e))),null!==ZC._n_(e=i.o["offset-start"])&&(i.A5=ZC._f_(ZC._p_(e))),null!==ZC._n_(e=i.o["offset-end"])&&(i.BW=ZC._f_(ZC._p_(e)));var l="k"===i.AF&&!i.CQ||"v"===i.AF&&i.CQ?i.I:i.F;i.A5<1&&(i.A5*=l),i.BW<1&&(i.BW*=l)},YT:function(e){var i=this;null!==ZC._n_(i.o.rules)&&(i.WH||(i.WH=new ZC.H8(i.A)),i.WH.append(i.o),i.WH.parse(),i.WH.JE=e,i.WH.DE()&&(i.WH.parse(),i.DU=i.WH.DU,i.CI=i.WH.CI))},IW:function(){},A7I:function(){},AC4:function(){},A9L:function(){},clear:function(){},build:function(){},ML:function(){var e,i=this,t={negation:i.ZN,"thousands-separator":i.R5,"decimals-separator":i.RR,decimals:i.DU,"max-decimals":i.HW,"short":i.A2V,"short-unit":i.TI,exponent:i.ZP,"exponent-decimals":i.SE};if(i.FD)switch(i.FD.o.type){case"date":t["transform-date"]=!0,null!==ZC._n_(e=i.FD.o.text)&&(i.FD.o.all=e);var n=i.X[i.A1]-i.X[i.V],a="",l="",o={},r=["msecond","second","minute","hour","day","month","year"];for(var s in r)o[r[s]]=ZC.HI["date-formats"][r[s]];l=0<=n&&n<=1e3?"msecond":1e3<n&&n<=36e5?"second":36e5<n&&n<=864e5?"minute":864e5<n&&n<=26784e5?"hour":26784e5<n&&n<=316224e5?"day":316224e5<n&&n<=632448e6?"month":"year",a=null!==ZC._n_(i.FD.o[l])?i.FD.o[l]:null!==ZC._n_(i.FD.o.all)?i.FD.o.all:o[l],i.E.dateformat=a,t["transform-date-format"]=i.E.dateformat}return t},A06:function(){for(var e=this,i=e.A.AY.A6,t=-1,n=0,a=i.length;n<a;n++){var l=i[n].BT(e.AF);if(-1!==ZC.AV(l,e.BC)){switch(i[n].AF){case"pie":case"pie3d":case"nestedpie":case"vbar":case"vbar3d":case"hbar":case"hbar3d":case"vbullet":case"hbullet":case"area":case"area3d":case"gauge":case"vfunnel":case"hfunnel":case"venn":t=i[n].A0;break;case"scatter":case"bubble":t=-1!==i[n].A2.A0?i[n].A2.A0:i[n].A0;break;default:t=i[n].B9}break}}return t},paint:function(){var e=this;e.build(),e.A.AJ["3d"]||e.b()},MU:function(e,i,t,n){var a=this;if(null===ZC._n_(n)&&(n=5),a.A.AJ["3d"]){var l=new ZC.CF(a.A,e.iX+e.I/2-ZC.AN.E3,e.iY+e.F/2-ZC.AN.E2,0+e.A9O);e.iX=l.EB[0]-e.I/2+("v"===t?"default"===a.B8?-n:n:0),e.iY=l.EB[1]-e.F/2+("h"===t?"default"===a.B8?n:-n:0);var o=ZC.DH.A2X(a.A,e);null===ZC._n_(i)&&(i=e.AA,e.AA%90==0&&(i+=e.V2?0:o)),e.AA=i}return i},WT:function(e,i,t){var n=this,a=(t.items,t.lcoords),l=t.lstep,o=t.tdim,r=t.mdim,s=t.dim,A=t.html,C=[e.iX+e.BJ,e.iY+e.BH,e.I,e.F],c=ZC._a_(e.AA%180),u=!1;c%360!=0&&(u=!0),u&&(C=[e.iX+e.BJ+e.I/2-e.F/2,e.iY+e.BH+e.F/2-e.I/2,e.F,e.I]);var p=!0;if(e.AM){if(!n.A0B)if("log"===n.CA||i!==n.V&&i!==n.A1){i%l==0&&(p=!0);for(var Z=0,h=a.length;Z<h;Z++)if(ZC.AO.XI({x:C[0],y:C[1],width:C[2],height:C[3]},{x:a[Z][0],y:a[Z][1],width:a[Z][2],height:a[Z][3]})){p=!1;break}}else p=!0;p&&(a.push(C),e.paint(),0,r=ZC.BQ(r,1.5*e.DK*(e.AR||"").split("<br>").length),"h"===s?(o+=e.F,r=ZC.BQ(r,ZC._a_(ZC.EO(c))*ZC.BQ(e.I,e.F))):"w"===s&&(o+=e.I,r=ZC.BQ(r,ZC._a_(ZC.EF(c))*ZC.BQ(e.I,e.F))),e.EL(),null===ZC._n_(n.o.tooltip)&&e.K5||(null!==ZC._n_(n.o.tooltip)&&(n.o.tooltip.text=n.o.tooltip.text||"%scale-value"),A.push(ZC.AP.O1(n.A.K,e))))}return{tdim:o,mdim:r,overlaps:!p}},VA:function(e,i){var t=this;if("v"===t.AF&&(t.H4!==t.B4&&t.H4!==t.BL||(null===ZC._n_(t.o["ref-line"])||null!==ZC._n_(t.o["ref-line"])&&null===ZC._n_(t.o["ref-line"].visible))&&(t.OW.AM=!1)),t.OW.K=t.K+"-ref-line",t.X.length>0&&t.OW.AM&&!t.A.AJ["3d"]&&t.OW.B0>0){"inherit"===t.OW.o["line-color"]&&-1!==i&&(t.OW.B9=i);var n=t.H4;if("k"===t.AF&&!t.CQ||"v"===t.AF&&t.CQ){var a=t.B2(n);a>=t.iX&&a<=t.iX+t.I&&ZC.CS.paint(e,t.OW,[[a,t.iY],[a,t.iY+t.F]])}else{var l=t.B2(n);l>=t.iY&&l<=t.iY+t.F&&ZC.CS.paint(e,t.OW,[[t.iX,l],[t.iX+t.I,l]])}}},paint_:function(){},XJ:function(){for(var e=this,i=0,t=e.PY.length;i<t;i++)e.X.length>0&&e.PY[i].paint()},gc:function(){ZC.AP.gc(this,["X","BX","Z","C6","D5","BR","M","FZ","IA","OW","IO","JE","o","I0","J5","A","H"])}}),ZC.A3E=ZC.H8.C7({$i:function(e){this.b(e);var i=this;i.ED=!1,i.AF="k",i.DD=-1,i.E1=-1,i.V=-1,i.A1=-1,i.UT=1,i.DU=null,i.OH=0,i.A4U=!1,i.NV=!1,i.TX={},i.IM=[]},zoomTo:function(e,i){var t=this;if(t.GM){null!==ZC._n_(e)?t.V=e:t.V=t.DD,null!==ZC._n_(i)?t.A1=i:t.A1=t.E1;var n=t.IM;if(n.length>0?(t.B4=ZC.AV(n,t.X[t.V]),t.BL=ZC.AV(n,t.X[t.A1])):(t.B4=t.X[t.V],t.BL=t.X[t.A1]),t.H.H9.C||(t.H.H9.C=t.A),t.A.H9&&null!==ZC._n_(t.A.H9.o.shared)&&ZC._b_(t.A.H9.o.shared)&&t.A.K===t.H.H9.C.K)for(var a=0,l=t.H.AH.length;a<l;a++){var o=t.H.AH[a];if(o.K!==t.A.K&&null!==ZC._n_(o.H9.o.shared)&&ZC._b_(o.H9.o.shared)){var r=o.BN(t.BC);r&&r.GM&&(e=Math.max(r.DD,Math.min(r.E1,t.V)),i=Math.max(r.DD,Math.min(r.E1,t.A1)),r.zoomTo(e,i),ZC.AK(o.K)&&(o.clear(!0),o.E["shared-zoom"]=!0,o.paint(),o.BA&&o.BA.update(e,i,null,null,!0)))}}t.IW()}},zoomToV:function(e,i){var t=this;null!==ZC._n_(e)?t.B4=e:t.B4=t.FU,null!==ZC._n_(i)?t.BL=i:t.BL=t.GY,t.RN(t.B4,t.BL,null===ZC._n_(e)&&null===ZC._n_(i))},FO:function(L,J,ER,bKeep,AD){var s=this,CU="";J?(CU=J.R[L].BU,s.FD&&"date"===s.FD.o.type||"number"==typeof CU||(null!==ZC._n_(s.BX[CU])?CU=s.BX[CU]:null!==ZC._n_(s.X[CU])&&(CU=s.X[CU]))):CU="log"===s.CA&&bKeep?L+1:null!==ZC._n_(s.BX[L])?s.BX[L]:s.X[L],"number"==typeof CU&&null!==ZC._n_(s.IM[CU])&&(CU=s.IM[CU]),null!==ZC._n_(AD)&&(CU=AD);var OK=ZC.P4(CU)&&ZC._f_(CU)<0,BD=s.ML();if(ZC._cp_(ER,BD),OK&&"currency"===BD.negation&&(CU=ZC._a_(ZC._f_(CU))),BD.utc=s.A.U9,BD.timezone=s.A.N6,CU=ZC.AP.GF(CU,BD,s,!0),s.CI)if("()"===s.CI.substring(s.CI.length-2)||"javascript:"===s.CI.substring(0,11))try{var EI=s.CI.replace("javascript:","").replace("()","");eval(EI)&&(CU=eval(EI).call(s,CU))}catch(e){}else CU=OK&&"currency"===BD.negation?"-"+s.CI.replace(/%v|%scale-value/g,CU):s.CI.replace(/%v|%scale-value/g,CU);return CU},KE:function(e,i,t,n,a){var l=this,o=l.FO(i,t,n,a),r=[];r.push(["%scale-label",o],["%scale-index",i],["%scale-position",i]),l.FD&&"date"===l.FD.o.type?r.push(["%scale-value",o],["%v",o]):"log"===l.CA&&a?r.push(["%scale-value",Math.pow(l.EH,i)],["%v",Math.pow(l.EH,i)]):r.push(["%scale-value",ZC._c_(l.X[i],"")],["%v",ZC._c_(l.X[i],"")]),r.push(["%l",o],["%t",o],["%i",i],["%c",i]),r.sort(ZC.A1F);for(var s=0,A=r.length;s<A;s++){var C=new RegExp(r[s][0],"g");e=e.replace(C,r[s][1])}return e},A7I:function(){var e=this,i=ZC.BQ(e.X.length,e.BX.length),t=0;if(i>0&&e.BR.AA%180==0){for(var n=ZC.BQ(1,ZC._i_(i/20)),a=0,l=0;l<i;l+=n){for(var o=((e.BX[l]||e.X[l])+"").split(/<br>|<br\/>|<br \/>|\n/),r=0,s=0,A=o.length;s<A;s++)r=ZC.BQ(r,10*o[s].replace(/<.+?>/gi,"").replace(/<\/.+?>/gi,"").length);t+=r,a++}t=.75*t/Math.max(1,a)}else t=15;e.CQ?e.EE=ZC._i_((e.F-e.A5-e.BW)/15):e.EE=ZC._i_((e.I-e.A5-e.BW)/t),e.EE=ZC.CY(e.EE,10),(e.BL-e.B4)/e.E4+1<e.EE?e.EE=ZC.BQ(e.EE,ZC._i_((e.BL-e.B4)/e.E4)+1):(e.BL-e.B4)/(2*e.E4)+1<e.EE&&(e.EE=ZC.BQ(e.EE,ZC._i_((e.BL-e.B4)/(2*e.E4))+1)),e.EE=ZC.BQ(2,e.EE)},AC4:function(){var e=this;null===ZC._n_(e.o["max-ticks"])&&(e.LY=e.EE)},A9L:function(e){var i,t,n,a,l,o=this;if(1===e&&o.o.transform&&"date"===o.o.transform.type&&(null===ZC._n_(o.o.transform.uniform)||ZC._b_(o.o.transform.uniform)||(o.NV=!0)),1===e&&null!==ZC._n_(o.o.values))if(o.X=[],"object"==typeof o.o.values)for(o.X=o.o.values,0===o.BX.length&&(o.BX=o.X),n=0,a=o.X.length;n<a;n++)"string"==typeof o.X[n]&&(o.A4U=!0,o.IM.push(o.X[n]));else{var r=o.o.values.split(":"),s=o.E4;if(3===r.length&&(s=ZC._f_(r[2])),o.E4=o.SC=s,ZC._f_(r[0])>ZC._f_(r[1])){var A=r[0];r[0]=r[1],r[1]=A}if(s<=0&&(s=1),r.length>1){for(var C=0,c=0,u=0,p=(""+s).split("."),Z=ZC._f_(r[0]);Z<=ZC._f_(r[1]);Z+=s){var h=(""+Z).split(".");p.length>1&&h.length>1&&p[1].length>0&&h[1].length>=9&&ZC._a_(h[1].length-p[1].length)>2?(C+=p[1].length,c=ZC.BQ(c,p[1].length),u++,null!==(l=ZC._n_(o.o.decimals))?o.X.push(ZC._f_(Number(Z).toFixed(ZC._i_(l)))):o.X.push(ZC._f_(ZC._fixed_(Number(Z),p[1].length)))):(C+=h[1]?h[1].length:0,c=ZC.BQ(c,h[1]?h[1].length:0),u++,null!==(l=ZC._n_(o.o.decimals))?o.X.push(ZC._f_(Number(Z).toFixed(ZC._i_(l)))):o.X.push(Z))}null===ZC._n_(o.o.decimals)&&(C=Math.ceil(C/u),o.DU=ZC._a_(c-C)<=1?c:C)}}if(2===e){var d=0,f=[];0===o.X.length?(i=ZC.MAX,t=-ZC.MAX):(i=o.X[0],t=o.X[o.X.length-1]);var _=o.A.AY.A6,g=!1;for(n=0,a=_.length;n<a;n++){var v=_[n].BT();if(-1!==ZC.AV(v,o.BC)){for(var b=0===f.length,m=0,B=_[n].R.length;m<B;m++)if(_[n].R[m])if(null!==_[n].R[m].BU){var E=_[n].R[m].BU;i=ZC.CY(i,E),t=ZC.BQ(t,E),o.NV&&b&&f.push(E),o.ED=!0,_[n].ED=!0}else g=!0;else o.NV&&b&&f.push("");_[n].ED||(d=ZC.BQ(d,_[n].R.length))}}if(null!==ZC._n_(o.o.values))for(n=0;n<o.X.length;n++)null===o.X[n]&&(o.X[n]="");if(null!==ZC._n_(o.o.labels))for(n=0;n<o.BX.length;n++)null===o.BX[n]&&(o.BX[n]="");if(d>o.X.length&&o.X.length>0&&!o.ED)for(n=o.X.length;n<d;n++);var K,F,D=0;for(n=0;n<_.length;n++)_[n].LJ&&(-1===_[n].R3&&(_[n].R3=D),D++,o.DL=!0);if(0===o.X.length)for(n=0;n<D;n++)o.X.push(n),o.BX.push(n);if(0===o.X.length)if(o.ED)g&&i>0&&(i=0),g&&t<d-1&&(t=d-1),null!==ZC._n_(o.o["min-value"])&&(i=ZC._f_(o.o["min-value"])),null!==ZC._n_(o.o["max-value"])&&(t=ZC._f_(o.o["max-value"])),t-i<o.E4&&t-i>0&&(o.E4=Math.pow(10,Math.floor(ZC.H0(t-i)/Math.LN10))),o.NV||o.RN(i,t,!0),0===i&&0===t&&"0,1"===o.X.join(",")&&(o.X=[0]);else if(null!==ZC._n_(o.o["max-value"])){K=0,F=0,null!==ZC._n_(o.o["min-value"])&&(K=ZC._f_(o.o["min-value"])),F=ZC._f_(o.o["max-value"]),n=0;var X=K;if(o.FD&&null!==ZC._n_(o.FD.o.type))switch(o.FD.o.type){case"date":o.E4=o.A1P(K,F)}else F-K/o.E4>1e4&&(o.E4=Math.pow(10,ZC.BQ(1,ZC._i_(ZC.H0(ZC._a_(F-K),10)-4))));for(;X<F;)X=o.A.A2A(n*o.E4+K),null===ZC._n_(o.X[n])&&(o.X[n]=X),n++}else if(K=null!==ZC._n_(o.o["min-value"])?ZC._f_(o.o["min-value"]):0,F=K+(d-1)*o.E4,"log"===o.CA)o.RN(K,F,!0);else for(n=0;n<d;n++)null===ZC._n_(o.X[n])&&(o.X[n]=o.A.A2A(n*o.E4+K));o.NV&&o.ED&&(o.X=[].concat(f),o.BX=[].concat(f))}if(o.NV)for(o.TX={},n=0,a=o.BX.length;n<a;n++)o.TX[o.BX[n]]=n;if(o.V=0,o.A1=o.X.length-1,o.DD=0,o.E1=o.X.length-1,o.IM.length>0?(o.B4=o.V,o.BL=o.A1):(o.B4=ZC._f_(o.X[o.V]),o.BL=ZC._f_(o.X[o.A1])),o.NN){-1===ZC.AV(o.X,o.NN[0])&&ZC.P4(o.NN[0])&&null!==ZC._n_(o.X[0])&&-1!==o.SC&&(o.NN[0]=o.X[0]+o.SC*Math.floor((o.NN[0]-o.X[0])/o.SC)),-1===ZC.AV(o.X,o.NN[1])&&ZC.P4(o.NN[1])&&null!==ZC._n_(o.X[0])&&-1!==o.SC&&(o.NN[1]=o.X[0]+o.SC*Math.ceil((o.NN[1]-o.X[0])/o.SC));var I=ZC.AV(o.X,o.NN[0]),x=ZC.AV(o.X,o.NN[1]);o.LI=[-1===I?0:I,-1===x?o.X.length-1:x]}o.LI&&-1!==o.V&&-1!==o.A1&&((o.LI[0]>o.A1||o.LI[0]<o.V)&&(o.LI[0]=o.V),(o.LI[1]>o.A1||o.LI[1]<o.V)&&(o.LI[1]=o.A1));var y=o.H.E["graph"+o.A.L+".zoom"];if(null===ZC._n_(o.H.E.preservezoom)||o.H.E.preservezoom){var w=1===o.L?"":"-"+o.L;void 0!==y&&null!==ZC._n_(y["xmin"+w])&&null!==ZC._n_(y["xmax"+w])&&(o.LI=[y["xmin"+w],y["xmax"+w]])}else o.H.E["graph"+o.A.L+".zoom"]={};o.LI&&(o.A.A0X=!0)},RN:function(e,i,t){var n,a,l,o,r=this,s=!1,A=null!==ZC._n_(r.o.step)&&-1!==(""+r.o.step).indexOf("month");if(r.FD&&null!==ZC._n_(r.FD.o.type))switch(r.FD.o.type){case"date":var C=r.A1P(e,i);(i-e)%C!=0&&(A||(i+=C-(i-e)%C)),n=[e,i,C,1,C],s=!0}else if("log"===r.CA)n=[e,i,1,1,1];else{var c=null!==ZC._n_(r.o.step)||null!==ZC._n_(r.o["min-value"])||null!==ZC._n_(r.o["max-value"]);n=e!==i?ZC.AO.W7(e,i,r.E4,r.OY,c):[e,i,r.E4,1,r.E4]}-1===r.SC&&(r.SC=n[4]);var u=n[0],p=n[1];o=n[2],t&&"log"===r.CA&&(u=Math.floor(ZC.H0(u,r.EH)),p=Math.ceil(ZC.H0(p,r.EH))),null===ZC._n_(r.o.step)&&(p-u)/o>1e4&&(o=(p-u)/1e4,l=Math.ceil(ZC.H0(o)/Math.LN10),o=Math.pow(10,l)),null===ZC._n_(r.o["min-value"])&&u!==p&&(s&&A||(u-=u%o)),null===ZC._n_(r.o["max-value"])&&u!==p&&(s&&A||(p=p-p%o+(p%o==0?0:o))),l=Math.floor(ZC.H0(o)/Math.LN10);var Z=n[3];l<Z&&l<0&&(Z=l),"log"===r.CA&&(Z=ZC.BQ(1,Z)),r.X=[];var h;if(s&&A){var d=ZC.AP.Y2(u,"%Y-%n-%d-%H-%i-%s",!1,0).split("-"),f=new Date(u).getTimezoneOffset(),_=!0,g=ZC._i_((""+r.o.step).replace("month"));0===g&&(g=1);var v=ZC._i_(d[1]),b=ZC._i_(d[0]);for(r.X.push(u);_&&u!==p;){_=!1;var m=ZC._i_(d[2]);v+g>=12&&b++,v=(v+g)%12,(31===m&&(3===v||5===v||8===v||10===v)||m>28&&1===v)&&(m=1===v?b%4==0&&b%100!=0||b%400==0?29:28:30);var B=new Date(b,v,m,d[3],d[4],d[5]),E=B.getTimezoneOffset(),K=B.getTime()+6e4*(f-E);r.X.push(K),K<p&&K<=i&&(_=!0)}}else if(t){r.FU=e,r.GY=i,r.UT=ZC._i_((p-u)/o);var F=(""+o).split("."),D=new String(F[1]||"0").length;for((p-u)%o!=0&&(p-=(p-u)%o)<i&&(p=p-(p-u)%o+o),a=u;a<=p+1e-4;a+=o){h=a;var X,I,x=r.DU;if("log"===r.CA)for(var y=!0;y;)y=!1,I=X=Math.pow(r.EH,h),X=ZC._f_(ZC._fixed_(X,x)),I<1&&I!==X&&ZC.BQ(I,X)/ZC.CY(I,X)>1.005&&(y=!0,++x>ZC.CY(20,-1===r.HW?99:r.HW)&&(y=!1));else X=null!==x?ZC._f_(ZC._fixed_(h,Math.max(x,D))):ZC._f_(ZC._fixed_(h,D));r.X.push(X)}}else for(o=ZC._f_((i-e)/r.UT),a=0;a<=r.UT;a++)h=e+o*a,Z<0&&(h=ZC._f_(h.toFixed(-Z))),r.X.push(h);r.V=0,r.A1=r.X.length-1,r.DD=0,r.E1=r.X.length-1,r.B4=ZC._f_(r.X[r.V]),r.BL=ZC._f_(r.X[r.A1])},A1P:function(e,i,t){var n=this;void 0===t&&(t=!1);var a=i-e,l=Math.floor(ZC.H0(a)/Math.LN10);return null===ZC._n_(n.o.step)||t?l<=3?1:4===l?1e3:5===l?1e4:6===l?2e4:7===l?3e4:8===l?6e4:9===l?6e5:10===l?12e5:11===l?18e5:36e5:n.E4},parse:function(){this.b()},clear:function(){this.b()},build:function(){this.b()},paint:function(){this.b(),null!==ZC._n_(this.o.values)&&(this.T3=!0)}}),ZC.Z4=ZC.H8.C7({$i:function(e){this.b(e);var i=this;i.AF="v",i.V=-1,i.A1=-1,i.UT=0,i.DU=null,i.KQ="normal",i.JI=[]},zoomTo:function(e,i){var t,n,a=this;if(a.GM){null!==ZC._n_(e)?a.B4=e:a.B4=a.FU,null!==ZC._n_(i)?a.BL=i:a.BL=a.GY,("piano"===a.A.AF||a.PU)&&(a.B4=ZC._i_(a.B4),a.BL=ZC._i_(a.BL)),a.RN(a.B4,a.BL,!1);var l=a.A.BT("v");for(t=0;t<l.length;t++)l[t].BC!==a.BC&&l[t].sMaster===a.BC&&l[t].zoomTo(e,i);if(""===a.sMaster){if(a.H.H9.C||(a.H.H9.C=a.A),a.A.H9&&null!==ZC._n_(a.A.H9.o.shared)&&ZC._b_(a.A.H9.o.shared)&&a.A.K===a.H.H9.C.K)for(t=0,n=a.H.AH.length;t<n;t++){var o=a.H.AH[t];if(o.K!==a.A.K&&null!==ZC._n_(o.H9.o.shared)&&ZC._b_(o.H9.o.shared)){var r=o.BN(a.BC);r&&r.GM&&(e=Math.max(r.FU,Math.min(r.GY,a.B4)),i=Math.max(r.FU,Math.min(r.GY,a.BL)),r.zoomTo(e,i),ZC.AK(o.K)&&(o.clear(!0),o.E["shared-zoom"]=!0,o.paint(),o.BA&&o.BA.update(null,null,e,i,!0)))}}a.IW()}}},FO:function(L,CU,ER){var s=this;void 0===CU&&(CU="",CU=null!==ZC._n_(s.BX[L])?s.BX[L]:s.X[L]),"number"==typeof CU&&null!==ZC._n_(s.JI[CU])&&(CU=s.JI[CU]);var OK=ZC.P4(CU)&&ZC._f_(CU)<0,BD=s.ML();if(ZC._cp_(ER,BD),null!==ZC._n_(s.E["max-power"])&&(BD["max-power"]=s.E["max-power"]),OK&&"currency"===BD.negation&&(CU=ZC._a_(ZC._f_(CU))),BD.utc=s.A.U9,BD.timezone=s.A.N6,CU=ZC.AP.GF(CU,BD,s,!0),s.CI)if("()"===s.CI.substring(s.CI.length-2)||"javascript:"===s.CI.substring(0,11))try{var EI=s.CI.replace("javascript:","").replace("()","");eval(EI)&&(CU=eval(EI).call(s,CU))}catch(e){}else CU=OK&&"currency"===BD.negation?"-"+s.CI.replace(/%v|%scale-value/g,CU):s.CI.replace(/%v|%scale-value/g,CU);return CU},A7I:function(){var e=this,i=ZC.BQ(e.X.length,e.BX.length);if(0===i&&(i=10),"log"===e.CA)e.EE=999;else{var t=Math.max(15,10*ZC.BQ(e.X.join("").length,e.BX.join("").length)/i);e.CQ?e.EE=ZC._i_((e.I-e.A5-e.BW)/t):e.EE=ZC._i_((e.F-e.A5-e.BW)/10),e.EE=ZC.CY(e.EE,10),e.EE=ZC.BQ(2,e.EE)}},AC4:function(){var e=this;null===ZC._n_(e.o["max-ticks"])&&(e.LY=e.EE)},A9L:function(e){var i,t,n,a,l,o,r,s=this;if(""!==s.sMaster&&2===e){var A=s.A.BN(s.sMaster);if(A)return s.B4=A.B4,s.FU=A.FU,s.BL=A.BL,s.GY=A.GY,s.E4=A.E4,s.SC=A.SC,s.V=A.V,s.A1=A.A1,s.DD=A.DD,s.E1=A.E1,s.X=[].concat(A.X),void(s.BX=[].concat(A.BX))}1===e&&null===ZC._n_(s.o.values)&&null!==ZC._n_(i=s.A.ABD("v"))&&(s.o.values=i);var C,c=0,u=s.JI;if(1===e&&null!==ZC._n_(s.o.values)){if(s.X=[],"object"==typeof s.o.values){var p=s.o.values,Z=ZC.XS(p),h=ZC.A1H(p),d=!0;for(t=0,n=p.length-2;t<n;t++)if("number"==typeof p[t+2]&&"number"==typeof p[t+1]&&"number"==typeof p[t]&&ZC._f_(p[t+2])-ZC._f_(p[t+1])!=ZC._f_(p[t+1])-ZC._f_(p[t])){d=!1;break}if(!d&&(s.o.values=Z+":"+h,!s.LP))for(s.LP=[],t=0,n=p.length;t<n;t++)s.LP.push(""+p[t])}if("object"==typeof s.o.values){for(ZC._cpa_(s.o.values,s.X),0===s.BX.length&&ZC._cpa_(s.BX,s.X),t=0,n=s.X.length;t<n;t++)if("string"==typeof s.X[t]){var f=s.X[t],_=ZC.AV(u,s.X[t]);-1===_?(u.push(s.X[t]),s.X[t]=u.length-1):s.X[t]=_,null===ZC._n_(s.BX[t])&&(s.BX[t]=f)}}else{var g=s.o.values.split(":");if(r=1,3===g.length&&(r=ZC._f_(g[2])),ZC._f_(g[0])>ZC._f_(g[1])){var v=g[0];g[0]=g[1],g[1]=v}if(r<=0&&(r=1),null!==ZC._n_(s.o["fixed-items"])&&(r=(ZC._f_(g[1])-ZC._f_(g[0]))/ZC.BQ(1,ZC._i_(s.o["fixed-items"])-1),s.UT=ZC.BQ(1,ZC._i_(s.o["fixed-items"])-1)),g.length>1){for(var b=0,m=0,B=0,E=(""+r).split("."),K=ZC._f_(g[0]);K<=ZC._f_(g[1]);K+=r)a=(""+K).split("."),E.length>1&&a.length>1&&E[1].length>0&&a[1].length>=9&&ZC._a_(a[1].length-E[1].length)>2?(b+=E[1].length,m=ZC.BQ(m,E[1].length),B++,s.X.push(ZC._f_(ZC._fixed_(Number(K),E[1].length)))):(b+=ZC._i_(a[1]?a[1].length:0),m=ZC.BQ(m,a[1]?a[1].length:0),B++,s.X.push(K));K-ZC._f_(g[1])!=0&&ZC._a_(K-ZC._f_(g[1]))/r<1e-8&&s.X.push(ZC._f_(g[1])),null===ZC._n_(s.o.decimals)&&(b=(a=(""+r).split("."))[1]?a[1].length:Math.ceil(b/B),s.DU=ZC._a_(m-b)<=1?m:b)}}s.V=0,s.A1=s.X.length-1,s.E4=r,u.length>1?(c=ZC.XS(s.X,!0),s.B4=ZC.XS(s.X),s.BL=ZC.A1H(s.X)):(s.B4=s.X[0],s.BL=s.X[s.X.length-1]),"log"===s.CA&&(0===s.B4&&(C=Math.floor(ZC.H0(c,s.EH)),s.B4=Math.pow(s.EH,Math.min(-1,C))),s.RN(ZC.H0(s.B4,s.EH),ZC.H0(s.BL,s.EH),!1))}if(2===e){var F={};null===ZC._n_(s.o.values)&&(s.X=[],l=ZC.MAX,o=-ZC.MAX);var D=[],X=s.A.AY.A6;for(t=0,n=X.length;t<n;t++)if(s.A.E["plot"+t+".visible"]||"hide"===s.A.getToggleAction()){var I=X[t].BT();if(-1!==ZC.AV(I,s.BC))for(var x=-1!==ZC.AV(["vbar","hbar","vbar3d","hbar3d"],X[t].AF),y=[],w=0,Y=X[t].X.length;w<Y;w++)if(X[t].R[w]){var M=null===X[t].R[w].BU?w:X[t].R[w].BU;if(X[t].CB&&-1!==ZC.AV(y,M))continue;y.push(M);var H=X[t].LW&&null!==ZC._n_(X[t].LW[w])?ZC._f_(X[t].LW[w]):0;if(X[t].CB)null===ZC._n_(F[X[t].DY])&&(F[X[t].DY]=[]),null===ZC._n_(F[X[t].DY][M])?X[t].R[w].AD>=0||!x?F[X[t].DY][M]=[X[t].R[w].AD,0]:F[X[t].DY][M]=[0,X[t].R[w].AD]:X[t].R[w].AD>=0||!x?F[X[t].DY][M][0]+=X[t].R[w].AD:F[X[t].DY][M][1]+=X[t].R[w].AD,X[t].R[w].AD>=0||!x?X[t].R[w].CR=F[X[t].DY][M][0]:X[t].R[w].CR=F[X[t].DY][M][1],null===ZC._n_(s.o.values)&&D.push(F[X[t].DY][M][0]+H,F[X[t].DY][M][1]+H);else if(null===ZC._n_(s.o.values)){D.push(X[t].R[w].AD+H),0!==H&&D.push(H);for(var L=0,P=X[t].R[w].DN.length;L<P;L++)D.push(X[t].R[w].DN[L]+H)}}}D.length>0&&(c=ZC.XS(D,!0),l=ZC.XS(D),o=ZC.A1H(D)),0!==s.X.length||l!==Number.MAX_VALUE&&o!==Number.MIN_VALUE||(s.X=[0,1],l=0,o=1),null===ZC._n_(s.o.values)&&(null!==ZC._n_(s.o["min-value"])&&"auto"!==s.o["min-value"]?l=ZC._f_(s.o["min-value"]):l>0&&"auto"!==s.o["min-value"]&&"log"!==s.CA&&(l=0),null!==ZC._n_(s.o["max-value"])&&(o=ZC._f_(s.o["max-value"])),l===ZC.MAX&&o===-ZC.MAX?(s.V=0,s.A1=0,s.B4=0,s.BL=0):"log"===s.CA?(0===l&&(C=Math.floor(ZC.H0(c,s.EH)),l=Math.pow(s.EH,Math.min(-1,C))),s.RN(ZC.H0(l,s.EH),ZC.H0(o,s.EH),!1)):s.RN(l,o,!0))}2===e&&(-1===s.FU&&-1===s.GY&&(s.FU=s.B4,s.GY=s.BL),-1===s.SC&&(s.SC=s.E4)),"auto"===s.o["min-value"]&&null===ZC._n_(s.o["ref-value"])&&(s.H4=s.B4),0===s.UT&&(s.UT=ZC._i_((s.BL-s.B4)/s.E4));var N=s.H.E["graph"+s.A.L+".zoom"];if(null===ZC._n_(s.H.E.preservezoom)||s.H.E.preservezoom){var O=1===s.L?"":"-"+s.L;2===e&&void 0!==N&&null!==ZC._n_(N["ymin"+O])&&null!==ZC._n_(N["ymax"+O])&&(ZC.DT(N["ymin"+O],s.B4,s.BL)||(N["ymin"+O]=s.B4),ZC.DT(N["ymax"+O],s.B4,s.BL)||(N["ymax"+O]=s.BL),s.LI=[N["ymin"+O],N["ymax"+O]])}else s.H.E["graph"+s.A.L+".zoom"]={};s.LI&&(s.A.A0X=!0)},RN:function(e,i,t){var n,a,l,o=this;"piano"!==o.A.AF&&!o.PU&&o.JI.length>1&&(e=0),o.TI.length&&null===ZC._n_(o.o["scale-factor"])&&(l=Math.floor(ZC.H0(ZC._a_(i),ZC._f_(o.TI[0]))),o.OY=Math.pow(ZC._f_(o.TI[0]),l)/Math.pow(1e3,l),o.E["max-power"]=l);var r,s=(r=o.FD&&"date"===o.FD.o.type?ZC.AO.W7(e,i,"lin"===o.CA?o.E4:null,o.OY,o.bNormalize,o.EE):ZC.AO.W7(e,i,"lin"===o.CA?o.o.step:null,o.OY,o.bNormalize,o.EE))[0],A=r[1],C=!1;a=Math.floor(r[0]),"log"===o.CA&&(l=Math.ceil(r[1]),r[1]-r[0]>=.5?C=!0:r=ZC.AO.W7(Math.pow(o.EH,r[0]),Math.pow(o.EH,r[1]),null,o.OY,o.bNormalize));var c=r[0],u=r[1],p=r[2];null!==ZC._n_(o.o["fixed-items"])&&(p=(u-c)/ZC.BQ(1,ZC._i_(o.o["fixed-items"])-1)),o.PU&&i===e&&(i+p<=o.BL?i+=p:e-=p),1!==o.QY&&(c*=o.QY,u*=o.QY,p*=o.QY),null!==ZC._n_(o.E["o-decimals"])?o.DU=o.E["o-decimals"]:o.E["o-decimals"]=o.DU,null===ZC._n_(o.o.decimals)&&("log"===o.CA&&C?o.DU=a<0?null:0:a<0?o.DU=r[3]:o.A2V||(o.DU=0));var Z,h,d,f,_,g=!0;if(C){a=Math.floor(c),l=Math.ceil(u),d=Math.pow(o.EH,e),f=Math.pow(o.EH,i),o.X=[];var v,b,m=[0,2,5];for(b=[0,1,2,3,4,5,6,7,8,9,10],n=a;n<=l;n++){var B=r[3];if(B=n<0?Math.max(ZC._a_(n),B):0,n===l)for(v=0;v<m.length;v++)_=Math.pow(o.EH,n)+m[v]*Math.pow(o.EH,n-1),_=ZC._f_(_.toFixed(B)),-1===ZC.AV(o.X,_)&&o.X.push(_);for(v=0;v<b.length;v++)_=b[v]*Math.pow(o.EH,n),_=ZC._f_(_.toFixed(B)),-1===ZC.AV(o.X,_)&&o.X.push(_)}o.X.sort(function(e,i){return e-i});for(var E=-1,K=-1,F=0;F<o.X.length-1;F++)o.X[F]<=d&&d<=o.X[F+1]&&(E=F),o.X[F]===f?K=F:o.X[F]<=f&&f<=o.X[F+1]&&(K=F+1);o.X=o.X.slice(E,K+1),0===o.X[0]&&o.X.shift(),s=ZC.H0(o.X[0],o.EH),A=ZC.H0(o.X[o.X.length-1],o.EH)}else{for("log"===o.CA&&(d=Math.pow(o.EH,e),f=Math.pow(o.EH,i));g;){g=!1,o.X=[],Z=h=c;do{h=Z,h=ZC._f_(h.toFixed(o.DU)),-1!==ZC.AV(o.X,h)&&(g=!0),"log"===o.CA?h>=c&&h<=u&&o.X.push(h):o.X.push(h),Z+=p,Z=ZC._f_(Z.toFixed(r[3]))}while(Z<=u);g&&(o.DU+=1)}"log"===o.CA&&(s=ZC.H0(c,o.EH),A=ZC.H0(u,o.EH),o.X.push(c),o.X.push(u),o.X.sort(function(e,i){return e-i}))}o.E4=p,o.V=0,o.A1=o.X.length-1,t?(o.B4=s,o.BL=A):(o.B4=e,o.BL=i)},parse:function(){var e=this;e.assign_a([["stack-type","KQ"]]),(e.A.CB&&"100%"===e.A.KQ||"100%"===e.KQ)&&null===ZC._n_(e.o.values)&&(e.o.values="0:100:20",e.o.format="%v%"),this.b()},clear:function(){this.b()},build:function(){this.b()},paint:function(){this.b(),null===ZC._n_(this.E.decimals)&&(this.E.decimals=null!==ZC._n_(this.DU)?this.DU:-1),null!==ZC._n_(this.o.values)&&(this.T3=!0)}}),ZC.T0=ZC.A3E.C7({$i:function(e){this.b(e)},parse:function(){this.b()},IW:function(){var e=this;e.A1===e.V?e.A9=e.I-e.A5-e.BW:e.A9=(e.I-e.A5-e.BW)/(e.A1-e.V+(e.DL?1:0))},A9L:function(e){var i=this;i.b(e),i.IW()},zoomTo:function(e,i){this.b(e,i),this.IW()},clear:function(){},build:function(){this.b()},NA:function(e){var i,t=this;return i=t.AU?(t.iX+t.I-t.A5-e)/(t.I-t.A5-t.BW):(e-t.iX-t.A5)/(t.I-t.A5-t.BW),t.B4+ZC._f_((t.BL-t.B4)*i)},O9:function(e,i,t){var n,a,l,o=this;void 0===t&&(t=!1);var r=o.DL?o.A9:0;l=o.AU?(o.iX+o.I-e-o.A5-r/2)/(o.I-o.A5-o.BW-r):(e-o.iX-o.A5-r/2)/(o.I-o.A5-o.BW-r);var s,A=!1;if(i)for(s in i.JY){A=!0;break}if(i&&!o.NV&&A){var C=o.X[o.V];"string"==typeof C&&(C=ZC.AV(o.IM,C)),"log"===o.CA&&(C=ZC.H0(C,o.EH));var c=o.X[o.A1];"string"==typeof c&&(c=ZC.AV(o.IM,c)),"log"===o.CA&&(c=ZC.H0(c,o.EH));var u=C+ZC._f_((c-C)*l);"log"===o.CA&&(u=Math.pow(o.EH,u));var p=ZC.MAX;a=null;for(s in i.JY)(n=Math.abs(s-u))<p&&(p=n,a=i.JY[s]);if(null===ZC._n_(a)&&(a=u),p>i.A29){var Z=Math.ceil((c-C)/(o.I-o.A5-o.BW));if(i.X.length<2&&(Z*=100),p>Z)return null}return a}var h=o.V,d=o.A1;return o.ED&&(null!==ZC._n_(n=o.X[h])&&(h=n),null!==ZC._n_(n=o.X[d])&&(d=n)),"log"===o.CA&&(h=ZC.H0(h,o.EH),d=ZC.H0(d,o.EH)),a=t?o.DL?h+(d-h+1)*l:h+(d-h)*l:o.DL?o.V+(o.A1-o.V+1)*l:o.V+(o.A1-o.V)*l,"log"===o.CA?(a=Math.pow(o.EH,a),a=Math.floor(a)-1):(a=o.DL?Math.floor(a):ZC._i_(a),a=ZC.BQ(0,a),a=ZC.CY(o.E1,a)),a},I4:function(e){var i=this;i.V,i.A1;return i.ED&&!i.NV&&(i.B4,i.BL),"log"===i.CA&&(e=ZC.H0(e+1,i.EH)),i.AU?i.iX+i.I-i.A5-(e-i.V+(i.DL?1:0))*i.A9+(i.DL?i.A9/2:0):i.iX+i.A5+(e-i.V)*i.A9+(i.DL?i.A9/2:0)},B2:function(e){var i,t,n,a,l,o=this;if("log"===o.CA&&(e=ZC.H0(e,o.EH)),o.NV){var r=o.TX[e];return o.I4(r)}return-1!==(i=ZC.AV(o.IM,e))?o.I4(i):!o.A4U&&(o.ED||o.FD&&"date"===o.FD.o.type)?(a=o.X[o.V],l=o.X[o.A1],"log"===o.CA&&(a=ZC.H0(a,o.EH),l=ZC.H0(l,o.EH)),l===a?t=0:(n=l-a,t=(o.I-o.A5-o.BW-(o.DL?o.A9:0))/n),o.AU?o.iX+o.I-o.A5-(e-a)*t-(o.DL?o.A9/2:0):o.iX+o.A5+(e-a)*t+(o.DL?o.A9/2:0)):(a=o.B4,l=o.BL,"log"===o.CA&&(a=ZC.H0(a,o.EH),l=ZC.H0(l,o.EH)),l===a?t=0:(n=l-a+(o.DL?1:0),t=(o.I-o.A5-o.BW)/n),o.AU?o.iX+o.I-o.A5-(e-a)*t-(o.DL?o.A9/2:0):o.iX+o.A5+(e-a)*t+(o.DL?o.A9/2:0))},paint:function(){function e(e){return e=e.replace(/%scale-last-position/g,g.A1-g.V),e=e.replace(/(%c)|(%scale-position)/g,g.GP),e=e.replace(/(%i)|(%scale-index)/g,g.K0),e=e.replace(/(%v)|(%scale-value)/g,null!==ZC._n_(g.X[g.K0])?g.X[g.K0]:""),e=e.replace(/(%l)|(%scale-label)/g,null!==ZC._n_(g.BX[g.K0])?g.BX[g.K0]:""),e=e.replace(/%scale-day-of-week/g,ZC.AP.Y2(g.X[g.K0],"%w",g.A.U9,g.A.N6))}function i(i,t,n,a){var l;if(g.K0=i,p=i-g.V,(g.BR.E7.length>0||i===g.V||!oe||g.BR.HT||n)&&(oe=new ZC.DS(g)),oe.copy(g.BR),oe.GJ=g.K+"-item "+g.A.K+"-scale-item zc-scale-item",oe.K=g.A.K+"-"+g.BC.replace(/\-/g,"_")+"-item_"+(a?"c"+a:i),oe.E["p-width"]=g.A9,g.CI=se,g.DU=Ae,n||g.YT(e),l=t?ZC.AP.Y2(i,ue,g.A.U9,g.A.N6):a||g.FO(i,null,null),!n&&g.BR.HT&&g.GZ(g.BR,oe,null,{index:i,cnt:p,text:l},g.BR.N2),null===ZC._n_(g.LP)||-1!==ZC.AV(g.LP,l)){if(oe.AR=l,oe.Z=oe.C6=g.H.usc()?g.H.mc():ZC.AK(g.A.K+"-scales-ml-0-c"),oe.IJ=g.H.usc()?ZC.AK(g.H.K+"-main"):ZC.AK(g.H.K+"-text"),oe.E.nodeidx=i,oe.parse(),g.BR.A21&&g.BR.AA%180==0&&(oe.o.width=ZC._i_(.9*g.A9),oe.parse()),"inherit"!==g.BR.o["font-color"]&&"inherit"!==g.BR.o.color||-1===v||(oe.C1=v),n||(oe.JE=e,oe.DE()&&oe.parse()),oe.o["auto-fit"]&&(oe.I=ZC._i_(g.A9)),t?(Z=g.B2(i),oe.iX=Z-oe.I/2-(g.DL?g.A9/2:0)):n?(Z=g.B2(i),oe.iX=Z-oe.I/2):g.AU?(Z=g.iX+g.I-g.A5-p*g.A9,oe.iX=Z-oe.I/2-(g.DL?g.A9/2:0)):(Z=g.iX+g.A5+p*g.A9,oe.iX=Z-oe.I/2+(g.DL?g.A9/2:0)),g.A.BA&&g.A.BA.BX&&g.A.BA.HY){for(var r=!1,s=0;s<g.A.BA.BX.length;s++)g.A.BA.BX[s].text===oe.AR&&(r=!0);r||g.A.BA.BX.push({x:ZC._i_(Z),text:oe.AR})}switch(oe.o.placement){case"inner":oe.iY=F?o-oe.F-w:o+w;break;case"ref-top":oe.iY=D-oe.F-w;break;case"ref-bottom":oe.iY=D+w;break;case"ref-auto":X&&X.R[i]?(X.FP(i).setup(),X.FP(i).iY<D?oe.iY=D+w:oe.iY=D-oe.F-w):oe.iY=D+w;break;default:oe.iY=F?o+w:o-oe.F-w}if(re=g.MU(oe,re,"h",0),g.BR.o["auto-align"]&&g.BR.AA%180!=0){var A=ZC.DT(g.BR.AA,0,180)?F?1:-1:F?-1:1;oe.iX+=A*oe.I*ZC.EF(g.BR.AA)/2,oe.iY+=A*(oe.I*ZC.EO(g.BR.AA)/2-oe.F*ZC.EO(g.BR.AA)/2)}var C=g.WT(oe,i,{items:he,lcoords:de,lstep:P,tdim:pe,mdim:Ze,dim:"h",html:fe});if(pe=C.tdim,Ze=C.mdim,!C.overlaps&&t&&g.IO.AM)switch(ce.o.placement){case"ref-auto":Ce.push([Z,D+w/2],[Z,D-w/2],null);break;case"ref-top":Ce.push([Z,D-w],[Z,D],null);break;case"ref-bottom":Ce.push([Z,D+w],[Z,D],null);break;case"inner":Ce.push([Z,o-(F?w:-w)],[Z,o],null);break;case"outer":Ce.push([Z,o],[Z,o+(F?w:-w)],null);break;default:Ce.push([Z,o+w/2],[Z,o-w/2],null)}g.GP++}}var t,n,a,l,o,r,s,A,C,c,u,p,Z,h,d,f,_,g=this;g.b(),null!==ZC._n_(g.A.A.E[g.BC+"-feed-offset-start"])&&(g.A5=g.A.A.E[g.BC+"-feed-offset-start"]),"bubble"!==g.A.AF&&"scatter"!==g.A.AF||(-1===g.A5&&-1===g.BW||1===g.X.length)&&(g.A5=g.BW=g.I/(g.X.length+1),g.IW());var v=g.A06(),b=0,m=1,B=1,E={};for(n=0,a=g.A.BM.length;n<a;n++)"scale-x"===g.A.BM[n].BC.substring(0,7)&&g.A.BM[n].B8===g.B8&&b++,"scale-x"===g.A.BM[n].BC.substring(0,7)&&("default"===g.A.BM[n].B8?(E[g.A.BM[n].BC]=m,m++):(E[g.A.BM[n].BC]=B,B++));var K=E[g.BC],F="default"===g.B8,D=null,X=null;for(n=0,a=g.A.AY.A6.length;n<a;n++){var I=g.A.AY.A6[n],x=I.BT();if(-1!==ZC.AV(x,g.BC)){var y=g.A.BN(I.BT("v")[0]);D=y.B2(y.H4),X=I;break}}var w=8;null!==ZC._n_(g.IO.o.size)&&(w=ZC._i_(g.IO.o.size));var Y=4;null!==ZC._n_(g.IA.o.size)&&(Y=ZC._i_(g.IA.o.size));var M=ZC._i_(g.A.E[g.BC+"-distance"]||-1);g.V7&&(M=0),"default"===g.B8?(c=ZC._i_(g.A.P.DP/b),o=g.iY+g.F+(K-1)*c,-1!==M&&(o=g.iY+g.F+M)):(c=ZC._i_(g.A.P.E5/b),o=g.iY-(K-1)*c,-1!==M&&(o=g.iY-M));var H=o;if(g.A.I9&&(g.A.I9.AM=!0,g.DD===g.V&&g.E1===g.A1&&(g.A.I9.AM=!1),g.A.I9.AM&&0===g.A.I9.AX.BH&&"default"===g.B8&&(o+=g.A.I9.AX.F+g.B0/2)),g.E.iY=o,g.AM&&g.T3){null!==ZC._n_(g.o["fixed-items"])&&(g.LY=g.EE=ZC._i_(g.o["fixed-items"]));var L=ZC.BQ(1,Math.ceil((g.A1-g.V)/(g.LY-1))),P=ZC.BQ(1,Math.ceil((g.A1-g.V)/(g.EE-1)));null===ZC._n_(g.o["fixed-items"])&&ZC._b_(g.o.normalize)&&(L=ZC.AO.A0A(L),P=ZC.AO.A0A(P));for(var N=g.iStepMultiplier,O=3;O>0;O--)g.iStepMultiplier>O&&g.A1-g.V<=O*g.iStepMultiplier&&(N=O);L*=N,P*=N;var k=0,Q=g.A9*L/(g.GI+1),R=g.AU?g.iX+g.BW:g.iX+g.A5,z=g.AU?g.iX+g.I-g.A5:g.iX+g.I-g.BW;if(null===ZC._n_(D)&&(D=o),r=g.H.usc()?g.H.mc():ZC.AK(g.A.K+"-scales-ml-0-c"),A=ZC.Q.E9(r,g.H.AC),s=g.H.usc()?g.H.mc():ZC.AK(g.A.K+"-scales-bl-0-c"),C=ZC.Q.E9(s,g.H.AC),"inherit"===g.o["line-color"]&&-1!==v&&(g.B9=v),g.A.AJ["3d"]){if(d=ZC.DH.DA(g,g.A,g.iX-ZC.AN.E3,g.iX-ZC.AN.E3+g.I,o-ZC.AN.E2,o-ZC.AN.E2,-1,ZC.AN.FS+1,"x"),d.K=g.K+"-line",g.A.F0.true3d&&(g.A.F0["x-angle"]>0?d.MB=[1===g.L?-100:100,1,1]:d.MB=[1===g.L?100:-100,1,1]),g.A.CK.add(d),null!==ZC._n_(g.o.axis)){var T=new ZC.D0(g);T.append(g.o.axis),T.parse(),T.A0=T.AE=T.B9,(d=ZC.DH.DA(T,g.A,g.iX-ZC.AN.E3,g.iX-ZC.AN.E3+g.I,o-ZC.AN.E2,o-ZC.AN.E2,-T.B0/2,T.B0/2,"x")).K=g.K+"-axis",g.A.CK.add(d)}}else{u=[[g.iX-1,H],[g.iX+g.I+1,H]];var G=g.K;g.K+="-line",ZC.CS.paint(A,g,u),g.K=G}if(g.X.length>0&&g.D5.AM){var S=null===ZC._n_(g.D5.o["offset-start"])?0:ZC._i_(g.D5.o["offset-start"]),J=null===ZC._n_(g.D5.o["offset-end"])?0:ZC._i_(g.D5.o["offset-end"]);if(g.D5.o.items&&g.D5.o.items.length>0&&!g.A.AJ["3d"])for(f=new ZC.HS(g),n=g.V;n<g.A1+(g.DL?1:0);n++)p=n-g.V,_=n%g.D5.o.items.length,f.append(g.D5.o.items[_]),f.K=g.K+"-guide-"+n,f.Z=s,f.parse(),g.AU?f.iX=g.iX+g.I-g.A5-p*g.A9-g.A9:f.iX=g.iX+g.A5+p*g.A9,f.iY=g.iY+S,f.I=g.A9,f.F=g.F-S-J,f.paint();if(g.D5.B0>0)for(g.GP=0,n=g.V;n<=g.A1+(g.DL?1:0);n++)if(g.K0=n,n===g.V||n===g.A1+(g.DL?1:0)||(n-g.V)%L==0){(g.D5.E7.length>0||n===g.V)&&((h=new ZC.D0(g)).Z=h.C6=s,h.copy(g.D5),h.JE=e,h.DE()&&h.parse()),u=[],p=n-g.V,Z=g.AU?g.iX+g.I-g.A5-p*g.A9:g.iX+g.A5+p*g.A9;var V=g.iY+S,U=g.F-S-J;if(h.AM)if(g.A.AJ["3d"]){var W=new ZC.D0(g);W.copy(h),null!==ZC._n_(g.o["scale-z"])&&null!==ZC._n_(t=g.o["scale-z"].guide)&&(W.append(t),W.parse()),W.A0=W.AE=W.B9,d=ZC.DH.DA(W,g.A,Z-ZC.AN.E3-W.B0/2,Z-ZC.AN.E3+W.B0/2,o-ZC.AN.E2,o-ZC.AN.E2,0,ZC.AN.FS,"z"),g.A.CK.add(d),h.A0=h.AE=h.B9,(d=ZC.DH.DA(h,g.A,Z-ZC.AN.E3-h.B0/2,Z-ZC.AN.E3+h.B0/2,V-ZC.AN.E2,V+U-ZC.AN.E2,ZC.AN.FS+2,ZC.AN.FS+2,"y")).K=g.K+"-guide-"+n,g.A.CK.add(d)}else u.push([Z,V],[Z,V+U]),h.K=g.K+"-guide-"+n,ZC.CS.paint(C,h,u);g.GP++}}if(g.X.length>0&&g.FZ.AM&&!g.A.AJ["3d"]&&g.FZ.o.items&&g.FZ.o.items.length>0)for(f=new ZC.HS(g),n=g.V;n<g.A1+(g.DL?1:0);n++)for(g.K0=n,p=n-g.V,g.GP=0,l=1;l<=g.GI;l++)_=g.GP%g.FZ.o.items.length,f.append(g.FZ.o.items[_]),f.K=g.K+"-guide-"+n+"-"+l,f.Z=g.H.usc()?g.H.mc():ZC.AK(g.A.K+"-scales-bl-0-c"),f.parse(),g.AU?f.iX=g.iX+g.I-g.A5-p*g.A9-(l+1)*Q:f.iX=g.iX+g.A5+p*g.A9+l*Q,f.iY=g.iY,f.I=Q,f.F=g.F,f.paint(),g.GP++;if(g.FZ.B0>0)for(n=g.V;n<g.A1+(g.DL?1:0);n++)if(g.K0=n,n%L==0)for(p=n-g.V,g.GP=0,l=1;l<=g.GI;l++)u=[],(h=new ZC.D0(g)).copy(g.FZ),h.JE=e,h.DE()&&h.parse(),Z="log"===g.CA?g.B2(g.X[n]+l*(g.X[n+1]-g.X[n])/(g.GI+1)):g.AU?g.iX+g.I-g.A5-p*g.A9-l*Q:g.iX+g.A5+p*g.A9+l*Q,ZC.DT(Z,R,z)&&(u.push([Z,g.iY],[Z,g.iY+g.F]),h.AM&&(h.K=g.K+"-minor-guide-"+l,ZC.CS.paint(C,h,u))),g.GP++;g.VA(C,v);var j,q,$;if(g.X.length>0&&g.IO.AM){switch(g.IO.o.placement){case"inner":break;case"outer":k+=w;break;default:k+=w/2}if(!zingchart.DEV.SMARTDATELABELS||!g.FD||"date"!==g.FD.o.type)for(g.GP=0,n=g.V;n<=g.A1+(g.DL?1:0);n++)if(n===g.V||n===g.A1+(g.DL?1:0)||(n-g.V)%L==0){g.K0=n;var ee=w;switch(u=[],p=n-g.V,(g.IO.E7.length>0||n===g.V)&&((h=new ZC.DW(g)).copy(g.IO),"inherit"===g.IO.o["line-color"]&&-1!==v&&(h.B9=v),h.JE=e,h.DE()&&h.parse(),h.AI>1&&(ee=h.AI)),Z=g.AU?g.iX+g.I-g.A5-p*g.A9:g.iX+g.A5+p*g.A9,h.o.placement){case"ref-auto":u.push([Z,D+ee/2],[Z,D-ee/2]);break;case"ref-top":u.push([Z,D-ee],[Z,D]);break;case"ref-bottom":u.push([Z,D+ee],[Z,D]);break;case"inner":u.push([Z,o-(F?ee:-ee)],[Z,o]);break;case"outer":u.push([Z,o],[Z,o+(F?ee:-ee)]);break;default:u.push([Z,o+ee/2],[Z,o-ee/2])}if(h.AM){for(q=ZC._i_(h.o["offset-x"]||"0"),$=ZC._i_(h.o["offset-y"]||"0"),j=0;j<u.length;j++)u[j][0]+=q,u[j][1]+=$;if(h.K=g.K+"-tick-"+n,g.A.AJ["3d"]&&g.A.F0.true3d){var ie,te=[];for(j=0;j<u.length;j++)ie=new ZC.CF(g.A,u[j][0]-ZC.AN.E3,u[j][1]-ZC.AN.E2,0),te.push([ie.EB[0],ie.EB[1]]);ZC.CS.paint(A,h,te)}else ZC.CS.paint(A,h,u)}g.GP++}}var ne=[];if(g.X.length>0&&g.GI>0&&g.IA.AM&&!g.A.AJ["3d"])for(n=g.V;n<g.A1+(g.DL?1:0);n++)if(g.K0=n,n%L==0)for(p=n-g.V,g.GP=0,l=1;l<=g.GI;l++){if(u=[],(h=new ZC.D0(g)).copy(g.IA),"inherit"===g.IA.o["line-color"]&&-1!==v&&(h.B9=v),h.JE=e,h.DE()&&h.parse(),"log"===g.CA){var ae=Math.round(ZC.H0(g.X[n],g.EH)),le=g.X[n]+l*(g.X[n+1]-g.X[n])/(g.GI+1);le=ae<0?ZC._f_(le.toFixed(-ae)):ZC._f_(le.toFixed(ae)),ne.push(le),Z=g.B2(le)}else Z=g.AU?g.iX+g.I-g.A5-p*g.A9-l*Q:g.iX+g.A5+p*g.A9+l*Q;if(ZC.DT(Z,R,z)){switch(h.o.placement){case"ref-auto":u.push([Z,D+Y/2],[Z,D-Y/2]);break;case"ref-top":u.push([Z,D],[Z,D-Y]);break;case"ref-bottom":u.push([Z,D],[Z,D+Y]);break;case"inner":u.push([Z,o-(F?Y:-Y)],[Z,o]);break;case"outer":u.push([Z,o],[Z,o+(F?Y:-Y)]);break;default:u.push([Z,o+Y/2],[Z,o-Y/2])}if(h.AM){for(q=ZC._i_(h.o["offset-x"]||"0"),$=ZC._i_(h.o["offset-y"]||"0"),j=0;j<u.length;j++)u[j][0]+=q,u[j][1]+=$;h.K=g.K+"-minor-tick-"+n,ZC.CS.paint(A,h,u)}}g.GP++}g.XJ();var oe=null,re=null,se=g.CI,Ae=g.DU,Ce=[],ce=new ZC.DW(g);ce.copy(g.IO);var ue,pe=0,Ze=0,he=0,de=[],fe=[];if(g.o["custom-items"])for(n=0;n<g.o["custom-items"].length;n++)i(g.o["custom-items"][n][0],!1,!0,g.o["custom-items"][n][1]);if(g.X.length>0&&g.BR.AM)if(zingchart.DEV.SMARTDATELABELS&&g.FD&&"date"===g.FD.o.type){var _e=g.getOptimalDateInterval(g.X[g.A1]-g.X[g.V]),ge=_e[0];ue=_e[1];var ve=_e[2],be=_e[3];he=_e[4];var me=ve*Math.ceil(g.X[g.V]/ve),Be=ve*Math.floor(g.X[g.A1]/ve),Ee="";g.GP=0;var Ke=!0;for(n=me;n<=Be;n+=ve){Ke=!0;var Fe=ZC.AP.Y2(n,ge,g.A.U9,g.A.N6);if(Fe!==Ee){switch(be){case"yr":he>15&&(Ke=ZC._i_(Fe)%2==0);break;case"mon":he>15&&(Ke=ZC._i_(Fe)%3==0);break;case"day":he>45?Ke=1===ZC._i_(Fe)||15===ZC._i_(Fe):he>30?Ke=1===ZC._i_(Fe)||10===ZC._i_(Fe)||20===ZC._i_(Fe):he>15&&(Ke=1===ZC._i_(Fe)||10===ZC._i_(Fe)||15===ZC._i_(Fe)||20===ZC._i_(Fe)||25===ZC._i_(Fe));break;case"hr":he>45?Ke=ZC._i_(Fe)%12==0:he>30?Ke=ZC._i_(Fe)%6==0:he>15&&(Ke=ZC._i_(Fe)%3==0);break;case"min":case"sec":he>45?Ke=ZC._i_(Fe)%30==0:he>30?Ke=ZC._i_(Fe)%10==0:he>15&&(Ke=ZC._i_(Fe)%5==0)}Ke&&(i(n,!0),Ee=Fe)}}ce.AM&&(ce.K=g.K+"-ticks",ZC.CS.paint(A,ce,Ce))}else for(g.GP=0,i(g.V),g.GP=g.A1-g.V,i(g.A1),g.GP=1,n=g.V+1;n<g.A1;n++)(n-g.V)%P==0&&i(n);for(n=0;n<ne.length;n++){var De=g.FO(n,null,null,!1,ne[n]);i(De,!1,!0,De)}if(g.M.AM&&g.M.AR&&""!==g.M.AR){(oe=new ZC.DS(g)).copy(g.M),oe.K=g.A.K+"-"+g.BC.replace(/\-/g,"_")+"-item_title",oe.GJ=g.K+"-label "+g.A.K+"-scale-label zc-scale-label",oe.AR=g.M.AR,oe.Z=g.H.usc()?g.H.mc():ZC.AK(g.A.K+"-scales-ml-0-c"),oe.IJ=g.H.usc()?ZC.AK(g.H.K+"-main"):ZC.AK(g.H.K+"-text"),oe.parse(),"inherit"!==g.M.o["font-color"]&&"inherit"!==g.M.o.color||-1===v||(oe.C1=v);var Xe=g.iX+(g.AU?g.BW:g.A5),Ie=g.I-g.A5-g.BW;switch("chart"===oe.o["center-point"]&&(Xe=g.A.iX,Ie=g.A.I),oe.OB){case"left":oe.iX=Xe;break;case"center":oe.iX=Xe+Ie/2-oe.I/2;break;case"right":oe.iX=Xe+Ie-oe.I}oe.iY=F?o+k+Ze:o-oe.F-k-Ze,g.M.iX=oe.iX,g.M.iY=oe.iY,oe.AM&&(g.MU(oe,null,"h"),oe.paint(),oe.EL(),null===ZC._n_(oe.o.tooltip)&&oe.K5||fe.push(ZC.AP.O1(g.A.K,oe)))}fe.length>0&&ZC.AK(g.A.A.K+"-map")&&(ZC.AK(g.A.A.K+"-map").innerHTML+=fe.join("")),null!==ZC._n_(g.o.transform)&&"date"===g.o.transform.type&&g.paintTransformDate()}},getOptimalDateInterval:function(e){var i,t,n,a,l;return 0<=e&&e<=3*ZC.SEC?(i="%q",t="%q ms",n=10,a="ms",l=ZC._i_(e/10)):3*ZC.SEC<e&&e<=3*ZC.MIN?(i="%s",t="%h:%i:%s %A",n=ZC.SEC,a="sec",l=ZC._i_(e/ZC.SEC)):3*ZC.MIN<e&&e<=3*ZC.HR?(i="%i",t="%h:%i %A",n=ZC.MIN,a="min",l=ZC._i_(e/ZC.MIN)):3*ZC.HR<e&&e<=3*ZC.DAY?(i="%h:%i",t="%M %d, %h %A",n=ZC.HR,a="hr",l=ZC._i_(e/ZC.HR)):3*ZC.DAY<e&&e<=3*ZC.MON?(i="%d",t="%M %d",n=ZC.DAY,a="day",l=ZC._i_(e/ZC.DAY)):3*ZC.MON<e&&e<=3*ZC.YR?(i="%m",t="%M %Y",n=ZC.DAY,a="mon",l=ZC._i_(e/ZC.MON)):(i="%Y",t="%Y",n=ZC.DAY,a="yr",l=ZC._i_(e/ZC.YR)),[i,t,n,a,l]},paintTransformDate:function(){function e(i,t){void 0===t&&(t=!1),0<=i&&i<=2*ZC.SEC?(l="%q",o="%q ms",t&&e(60*i)):2*ZC.SEC<i&&i<=2*ZC.MIN?(l="%s",o="%h:%i:%s %A",t&&e(60*i),i>10*ZC.SEC&&(s=2),i>30*ZC.SEC&&(s=5),i>60*ZC.SEC&&(s=10)):2*ZC.MIN<i&&i<=2*ZC.HR?(l="%i",o="%h:%i %A",t&&e(24*i),i>10*ZC.MIN&&(s=2),i>30*ZC.MIN&&(s=5),i>60*ZC.MIN&&(s=10)):2*ZC.HR<i&&i<=2*ZC.DAY?(l="%h",o="%M %d, %h %A",t&&e(30*i),i>6*ZC.HR&&(s=2),i>12*ZC.HR&&(s=4),i>24*ZC.HR&&(s=6)):2*ZC.DAY<i&&i<=2*ZC.MON?(l="%d",o="%M %d",t&&e(366*i),i>12*ZC.DAY&&(r=[1,5,9,13,17,21,25,29]),i>24*ZC.DAY&&(r=[1,6,11,16,21,26])):2*ZC.MON<i&&i<=2*ZC.YR?(l="%m",o="%M %Y",t&&e(10*i),i>9*ZC.MON&&(r=[1,4,7,10])):(l="%Y",o="%Y",i>9*ZC.YR&&(s=3),i>16*ZC.YR&&(s=4),i>25*ZC.YR&&(s=5))}function i(i){var t,Z;if(null!==ZC._n_(a.X[i])&&""!==a.X[i]){if(a.NV&&i!==a.V&&i!==a.A1&&null!==ZC._n_(a.X[i-1])&&""!==a.X[i-1]&&null!==ZC._n_(a.X[i])&&""!==a.X[i]){var h=a.X[i]-a.X[i-1];null!==ZC._n_(C)&&C!==h&&e(C,!0),C=h}var d=ZC.AP.Y2(a.X[i],l,a.A.U9,a.A.N6);if(d!==A&&ZC._i_(d)%s==0&&(0===r.length||-1!==ZC.AV(r,ZC._i_(d)))){var f,_=!0,g=i-a.V;t=a.AU?a.iX+a.I-a.A5-g*a.A9:a.iX+a.A5+g*a.A9+(a.DL?a.A9/2:0);var v=new ZC.DS(a);a.H.B7.load(v.o,"graph.SCALE.transform[date].item"),null!==ZC._n_(f=a.o.transform.item)&&v.append(f),v.GJ=a.K+"-item "+a.A.K+"-scale-item zc-scale-item",v.K=a.K+"-date-item-"+i;var b=ZC.AP.Y2(a.X[i],o,a.A.U9,a.A.N6);v.AR=b,v.Z=v.C6=a.H.usc()?a.H.mc():ZC.AK(a.A.K+"-scales-ml-0-c"),v.IJ=a.H.usc()?ZC.AK(a.H.K+"-main"):ZC.AK(a.H.K+"-text"),v.parse(),a.AU?v.iX=t-v.I/2-(a.DL?a.A9/2:0):v.iX=t,v.iY=a.iY,a.A.AJ["3d"]&&(a.A.NW(),Z=new ZC.CF(a.A,v.iX+v.I/2-ZC.AN.E3,v.iY+v.F/2-ZC.AN.E2,0),v.iX=Z.EB[0]-v.I/2,v.iY=Z.EB[1]-v.F/2);var m=[v.iX+v.BJ,v.iY+v.BH,v.I,v.F];if(v.AA%180==90&&(m=[v.iX+v.BJ+v.I/2-v.F/2,v.iY+v.BH+v.F/2-v.I/2,v.F,v.I]),a.A.BA&&a.A.BA.HY){for(var B=!1,E=0;E<a.A.BA.BX.length;E++)a.A.BA.BX[E].text===v.AR&&(B=!0);B||v.iX>=a.iX&&v.iX+v.I<=a.iX+a.I&&a.A.BA.BX.push({x:ZC._i_(v.iX),text:v.AR})}if(v.AM&&p){if(_=!0,!a.A0B){if(i===a.V||i===a.A1)_=!0;else for(var K=0,F=c.length;K<F;K++)if(ZC.DT(m[0],c[K][0],c[K][0]+c[K][2])||ZC.DT(m[0]+m[2],c[K][0],c[K][0]+c[K][2])){_=!1;break}v.iX+v.BJ+v.I>a.iX+a.BJ+a.I&&(_=!1)}if(_){c.push(m),v.paint(),v.EL();var D=new ZC.D0(a);null!==ZC._n_(f=a.o.transform.guide)&&D.append(f),D.B0=1,D.B9="#ccc",D.parse();var X=[];if(X.push([t,a.iY],[t,a.iY+a.F]),a.A.AJ["3d"]){a.A.NW();for(var I=0,x=X.length;I<x;I++)Z=new ZC.CF(a.A,X[I][0]-ZC.AN.E3,X[I][1]-ZC.AN.E2,0),X[I][0]=Z.EB[0],X[I][1]=Z.EB[1]}D.AM&&ZC.CS.paint(n,D,X)}}u++}A=d}}var t,n,a=this;n=ZC.Q.E9(a.H.usc()?a.H.K+"-main-c":a.A.K+"-scales-bl-0-c",a.H.AC);var l,o,r=[],s=1;e(a.X[a.A1]-a.X[a.V]);var A=null,C=null,c=[],u=0,p=!1,Z=!1;if(a.A.BA&&a.A.BA.HY&&(a.A.BA.BX=[]),a.X.length>0&&(p=!1,null!==ZC._n_(t=a.o.transform.item)&&(p=!(null!==ZC._n_(t.visible)&&!ZC._b_(t.visible))),Z=!1,a.A.BA&&a.A.BA.BX&&(Z=!0),p||Z)){i(a.V),i(a.A1);for(var h=a.V+1;h<a.A1;h++)i(h)}}}),ZC.T2=ZC.Z4.C7({$i:function(e){this.b(e)},parse:function(){this.b()},IW:function(){var e=this;e.A1===e.V?e.A9=e.F-e.A5-e.BW:e.A9=(e.F-e.A5-e.BW)/(e.A1-e.V+(e.DL?1:0))},A9L:function(e){var i=this;i.b(e),i.IW()},clear:function(){},build:function(){this.b()},zoomTo:function(e,i){var t=this;t.b(e,i),t.IW()},NA:function(e,i,t){var n,a=this;n=a.AU?(e-a.iY-a.A5)/(a.F-a.A5-a.BW):(a.iY+a.F-a.A5-e)/(a.F-a.A5-a.BW);var l=a.B4+ZC._f_((a.BL-a.B4)*n);return t&&(l=ZC._a_(a.AU?Math.ceil(l):Math.floor(l))),"log"===a.CA&&i&&(l=Math.pow(a.EH,l)),l},B2:function(e){var i=this,t=i.BL-i.B4,n=0===t?0:(i.F-i.A5-i.BW)/t;return"log"===i.CA&&(e=0===e?i.FU:ZC.H0(e,i.EH)),i.AU?i.iY+i.A5+(e-i.B4)*n:i.iY+i.F-i.A5-(e-i.B4)*n},paint:function(){function e(e){return e=e.replace(/%scale-last-position/g,v.A1-v.V),e=e.replace(/(%c)|(%scale-position)/g,v.GP),e=e.replace(/(%i)|(%scale-index)/g,v.K0),e=e.replace(/(%v)|(%scale-value)/g,null!==ZC._n_(v.X[v.K0])?v.X[v.K0]:""),e=e.replace(/(%l)|(%scale-label)/g,null!==ZC._n_(v.BX[v.K0])?v.BX[v.K0]:"")}var i,t,n,a,l,o,r,s,A,C,c,u,p,Z,h,d,f,_,g,v=this;v.b(),"bubble"!==v.A.AF&&"scatter"!==v.A.AF||1!==v.X.length||(v.A5=v.F/2);var b=v.A06(),m=0,B=1,E=1,K={};for(t=0,n=v.A.BM.length;t<n;t++)v.A.BM[t].AM&&v.A.BM[t].T3&&("scale-y"===v.A.BM[t].BC.substring(0,7)&&v.A.BM[t].B8===v.B8&&m++,"scale-y"===v.A.BM[t].BC.substring(0,7)&&("default"===v.A.BM[t].B8?(K[v.A.BM[t].BC]=B,B++):(K[v.A.BM[t].BC]=E,E++)));var F=K[v.BC],D="default"===v.B8,X=null,I=null;for(t=0,n=v.A.AY.A6.length;t<n;t++){var x=v.A.AY.A6[t],y=x.BT();if(-1!==ZC.AV(y,v.BC)){var w=v.A.BN(x.BT("k")[0]);X=w.B2(w.H4),I=x;break}}var Y=8;null!==ZC._n_(v.IO.o.size)&&(Y=ZC._i_(v.IO.o.size));var M=4;null!==ZC._n_(v.IA.o.size)&&(M=ZC._i_(v.IA.o.size));var H=ZC._i_(v.A.E[v.BC+"-distance"]||-1);v.V7&&(H=0),"default"===v.B8?(g=ZC._i_(v.A.P.DV/m),a=v.iX-(F-1)*g,-1!==H&&(a=v.iX-H)):(g=ZC._i_(v.A.P.E6/m),a=v.iX+v.I+(F-1)*g,-1!==H&&(a=v.iX+v.I+H));var L=a;if(v.A.I6&&"scale-y"===v.BC&&(v.A.I6.AM=!0,v.FU===v.B4&&v.GY===v.BL&&(v.A.I6.AM=!1),v.A.I6.AM&&0===v.A.I6.AX.BJ&&"default"===v.B8&&(a-=v.A.I6.AX.I+v.B0/2)),v.E.iX=a,v.AM&&v.T3){for(var P=Math.ceil((v.A1-v.V)/(v.EE-1)),N=Math.ceil((v.A1-v.V)/(v.LY-1)),O=v.iStepMultiplier,k=3;k>0;k--)v.iStepMultiplier>k&&v.A1-v.V<=k*v.iStepMultiplier&&(O=k);N*=O,P*=O;var Q=0,R=v.A9*N/(v.GI+1);if(l=v.H.usc()?v.H.mc():ZC.AK(v.A.K+"-scales-ml-0-c"),o=ZC.Q.E9(l,v.H.AC),r=v.H.usc()?v.H.mc():ZC.AK(v.A.K+"-scales-bl-0-c"),s=ZC.Q.E9(r,v.H.AC),v.T3||v.Y7||null!==ZC._n_(v.A.o[v.BC])){if("inherit"===v.o["line-color"]&&-1!==b&&(v.B9=b),v.A.AJ["3d"]){if(p=ZC.DH.DA(v,v.A,a-ZC.AN.E3,a-ZC.AN.E3,v.iY-ZC.AN.E2,v.iY-ZC.AN.E2+v.F,-1,ZC.AN.FS+1,"y"),p.K=v.K+"-line",v.A.F0.true3d&&(v.A.F0["y-angle"]>0?p.MB=[1===v.L?-100:100,1,1]:p.MB=[1===v.L?100:-100,1,1]),v.A.CK.add(p),null!==ZC._n_(v.o.axis)){var z=new ZC.D0(v);z.append(v.o.axis),z.parse(),z.A0=z.AE=z.B9,(p=ZC.DH.DA(z,v.A,a-ZC.AN.E3,a-ZC.AN.E3,v.iY-ZC.AN.E2,v.iY-ZC.AN.E2+v.F,-z.B0/2,z.B0/2,"y")).K=v.K+"-axis",v.A.CK.add(p)}}else{C=[[L,v.iY+v.F],[L,v.iY]];var T=v.K;v.K+="-line",ZC.CS.paint(o,v,C),v.K=T}var G=0,S=0,J=[],V=[];if(v.T3||v.Y7){if(v.X.length>0&&v.D5.AM){var U=null===ZC._n_(v.D5.o["offset-start"])?0:ZC._i_(v.D5.o["offset-start"]),W=null===ZC._n_(v.D5.o["offset-end"])?0:ZC._i_(v.D5.o["offset-end"]);if(v.D5.o.items&&v.D5.o.items.length>0&&!v.A.AJ["3d"])for(v.GP=0,Z=new ZC.HS(v),t=v.V;t<v.A1+(v.DL?1:0);t++)v.K0=t,t%N==0&&(c=t-v.V,h=v.GP%v.D5.o.items.length,Z.append(v.D5.o.items[h]),Z.K=v.K+"-guide-"+t,Z.Z=r,Z.parse(),Z.iX=v.iX+U,A="log"===v.CA?v.B2(v.X[t]):v.AU?v.iY+v.A5+c*v.A9:v.iY+v.F-v.A5-c*v.A9-v.A9*N,Z.iY=A,Z.I=v.I-U-W,Z.F=v.A9*N,Z.paint(),v.GP++);if(v.D5.B0>0)for(v.GP=0,t=v.V;t<=v.A1+(v.DL?1:0);t++)if(v.K0=t,t===v.V||t===v.A1||t%N==0){(v.D5.E7.length>0||t===v.V||"log"===v.CA)&&((u=new ZC.D0(v)).Z=u.C6=r,"log"===v.CA?ZC.AO._int_(ZC.H0(v.X[t],v.EH))?u.copy(v.D5):u.copy(v.FZ):u.copy(v.D5),u.JE=e,u.DE()&&u.parse()),C=[],c=t-v.V;var j=v.iX+U,q=v.I-U-W;if(A="log"===v.CA?v.B2(v.X[t]):v.AU?v.iY+v.A5+c*v.A9:v.iY+v.F-v.A5-c*v.A9,u.AM)if(v.A.AJ["3d"]){var $=new ZC.D0(v);$.copy(u),null!==ZC._n_(v.o["scale-z"])&&null!==ZC._n_(i=v.o["scale-z"].guide)&&($.append(i),$.parse()),$.A0=$.AE=$.B9,p=ZC.DH.DA($,v.A,a-ZC.AN.E3,a-ZC.AN.E3,A-ZC.AN.E2-$.B0/2,A-ZC.AN.E2+$.B0/2,0,ZC.AN.FS,"y"),v.A.CK.add(p),u.A0=u.AE=u.B9,(p=ZC.DH.DA(u,v.A,j-ZC.AN.E3,j-ZC.AN.E3+q,A-ZC.AN.E2-u.B0/2,A-ZC.AN.E2+u.B0/2,ZC.AN.FS+2,ZC.AN.FS+2,"x")).K=v.K+"-guide-"+t,v.A.CK.add(p)}else C.push([j,A],[j+q,A]),u.K=v.K+"-guide-"+t,ZC.CS.paint(s,u,C);v.GP++}}if(v.X.length>0&&v.FZ.AM&&R>2&&!v.A.AJ["3d"]){if(v.FZ.o.items&&v.FZ.o.items.length>0)for(Z=new ZC.HS(v),t=v.V;t<v.A1+(v.DL?1:0);t++)if(v.K0=t,t%N==0)for(c=t-v.V,v.GP=0,d=1;d<=v.GI;d++)h=v.GP%v.FZ.o.items.length,Z.append(v.FZ.o.items[h]),Z.K=v.K+"-guide-"+t+"-"+d,Z.Z=v.H.usc()?v.H.mc():ZC.AK(v.A.K+"-scales-bl-0-c"),Z.parse(),Z.iX=v.iX,A=v.AU?v.iY+v.A5+c*v.A9+d*R:v.iY+v.F-v.A5-c*v.A9-(d+1)*R,Z.iY=A,Z.I=v.I,Z.F=R,Z.paint(),v.GP++;if(v.FZ.B0>0&&"log"!==v.CA)for(t=v.V;t<v.A1+(v.DL?1:0);t++)if(v.K0=t,t===v.V||t===v.A1||t%N==0)for(c=t-v.V,v.GP=0,d=1;d<=v.GI;d++)C=[],(u=new ZC.D0(v)).copy(v.FZ),u.JE=e,u.DE()&&u.parse(),A="log"===v.CA?v.B2(v.X[t]+d*(v.X[t+1]-v.X[t])/(v.GI+1)):v.AU?v.iY+v.A5+c*v.A9+d*R:v.iY+v.F-v.A5-c*v.A9-d*R,ZC.DT(A,v.iY,v.iY+v.F)&&(C.push([v.iX,A],[v.iX+v.I,A]),u.AM&&(u.K=v.K+"-minor-guide-"+d,ZC.CS.paint(s,u,C))),v.GP++}v.VA(s,b);var ee,ie,te;if(v.X.length>0&&v.IO.AM){switch(v.IO.o.placement){case"inner":break;case"outer":Q+=Y;break;default:Q+=Y/2}for(v.GP=0,f=ZC.AV(v.X,0),t=v.V;t<=v.A1+(v.DL?1:0);t++){v.K0=t;var ne=-1;if((t===v.V||t===v.A1||t%N==0||ZC._b_(v.o["show-zero"])&&t===f)&&(C=[],c=t-v.V,(v.IO.E7.length>0||t===v.V||"log"===v.CA)&&(u=new ZC.D0(v),"log"===v.CA?ZC.AO._int_(ZC.H0(v.X[t],v.EH))?u.copy(v.IO):(u.copy(v.IA),ne=Y,Y=M):u.copy(v.IO),"inherit"===v.IO.o["line-color"]&&-1!==b&&(u.B9=b),u.JE=e,u.DE()&&u.parse()),A="log"===v.CA?v.B2(v.X[t]):v.AU?v.iY+v.A5+c*v.A9:v.iY+v.F-v.A5-c*v.A9,ZC.DT(A,v.A.P.iY,v.A.P.iY+v.A.P.F))){switch(u.o.placement){case"ref-right":C.push([X,A],[X+Y,A]);break;case"ref-left":C.push([X,A],[X-Y,A]);break;case"ref-auto":C.push([X-Y/2,A],[X+Y/2,A]);break;case"inner":C.push([a,A],[a+(D?Y:-Y),A]);break;case"outer":C.push([a,A],[a-(D?Y:-Y),A]);break;default:C.push([a+Y/2,A],[a-Y/2,A])}if(-1!==ne&&(Y=ne,ne=-1),u.AM){for(ie=ZC._i_(u.o["offset-x"]||"0"),te=ZC._i_(u.o["offset-y"]||"0"),ee=0;ee<C.length;ee++)C[ee][0]+=ie,C[ee][1]+=te;if(u.K=v.K+"-tick-"+t,v.A.AJ["3d"]&&v.A.F0.true3d){var ae,le=[];for(ee=0;ee<C.length;ee++)ae=new ZC.CF(v.A,C[ee][0]-ZC.AN.E3,C[ee][1]-ZC.AN.E2,0),le.push([ae.EB[0],ae.EB[1]]);ZC.CS.paint(o,u,le)}else ZC.CS.paint(o,u,C)}v.GP++}}}if(v.X.length>0&&v.IA.AM&&v.GI>0&&R>5&&!v.A.AJ["3d"]&&"log"!==v.CA)for(t=v.V;t<v.A1+(v.DL?1:0);t++)if(v.K0=t,t===v.V||t===v.A1||t%N==0)for(c=t-v.V,v.GP=0,d=1;d<=v.GI;d++){if(C=[],(u=new ZC.D0(v)).copy(v.IA),"inherit"===v.IA.o["line-color"]&&-1!==b&&(u.B9=b),u.JE=e,u.DE()&&u.parse(),A="log"===v.CA?v.B2(v.X[t]+d*(v.X[t+1]-v.X[t])/(v.GI+1)):v.AU?v.iY+v.A5+c*v.A9+d*R:v.iY+v.F-v.A5-c*v.A9-d*R,ZC.DT(A,v.iY,v.iY+v.F)){switch(u.o.placement){case"ref-right":C.push([X,A],[X+M,A]);break;case"ref-left":C.push([X,A],[X-M,A]);break;case"ref-auto":C.push([X-M/2,A],[X+M/2,A]);break;case"inner":C.push([a,A],[a+(D?M:-M),A]);break;default:C.push([a,A],[a-(D?M:-M),A]);break;case"cross":C.push([a+M/2,A],[a-M/2,A])}if(u.AM){for(ie=ZC._i_(u.o["offset-x"]||"0"),te=ZC._i_(u.o["offset-y"]||"0"),ee=0;ee<C.length;ee++)C[ee][0]+=ie,C[ee][1]+=te;u.K=v.K+"-minor-tick-"+t,ZC.CS.paint(o,u,C)}}v.GP++}v.XJ();var oe=null,re=v.CI,se=v.DU,Ae=function(i){v.K0=i,c=i-v.V,(v.BR.E7.length>0||i===v.V||!_||v.BR.HT)&&(_=new ZC.DS(v)),_.copy(v.BR),_.GJ=v.K+"-item "+v.A.K+"-scale-item zc-scale-item",_.K=v.A.K+"-"+v.BC.replace(/\-/g,"_")+"-item_"+i,v.CI=re,v.DU=se,v.YT(e);var t;if(t=("piano"===v.A.AF||v.PU)&&v.BX.length?v.FO(i+v.B4):v.FO(i),v.BR.HT&&v.GZ(v.BR,_,null,{index:i,cnt:c,text:t},v.BR.N2),null===ZC._n_(v.LP)||-1!==ZC.AV(v.LP,t)){switch(_.AR=t,_.Z=_.C6=v.H.usc()?v.H.mc():ZC.AK(v.A.K+"-scales-ml-0-c"),_.IJ=v.H.usc()?ZC.AK(v.H.K+"-main"):ZC.AK(v.H.K+"-text"),_.parse(),"inherit"!==v.BR.o["font-color"]&&"inherit"!==v.BR.o.color||-1===b||(_.C1=b),_.JE=e,_.DE()&&_.parse(),_.o.placement){case"ref-left":_.iX=X-_.I-Y;break;case"ref-right":_.iX=X+Y;break;case"ref-auto":I&&I.R[i]?(I.FP(i).setup(),I.FP(i).iX<X?_.iX=X+Y:_.iX=X-_.I-Y):_.iX=X+Y;break;case"middle":_.iX=a-_.I/2;break;case"inner":_.iX=D?a+Y:a-_.I-Y;break;default:_.iX=D?a-_.I-Y:a+Y}if("log"===v.CA?_.iY=v.B2(v.X[i])-_.F/2:v.AU?_.iY=v.iY+v.A5+c*v.A9-_.F/2+(v.DL?v.A9/2:0):_.iY=v.iY+v.F-v.A5-c*v.A9-_.F/2-(v.DL?v.A9/2:0),oe=v.MU(_,oe,"v"),v.BR.o["auto-align"]&&v.BR.AA%180!=0){var n=D?1:-1;90===v.BR.AA||270===v.BR.AA?_.iX+=n*(_.I/2-_.F/2):ZC.DT(v.BR.AA,0,90)||ZC.DT(v.BR.AA,270,360)?(_.iX+=n*(_.I-_.I*ZC.EF(v.BR.AA))/2,_.iY-=n*_.I*ZC.EO(v.BR.AA)/2):ZC.DT(v.BR.AA,90,270)&&(_.iX+=n*(_.I+_.I*ZC.EF(v.BR.AA))/2,_.iY+=n*_.I*ZC.EO(v.BR.AA)/2)}if(ZC.DT(_.iY+_.F/2,v.A.P.iY,v.A.P.iY+v.A.P.F)){var l=v.WT(_,i,{items:0,lcoords:J,lstep:P,tdim:G,mdim:S,dim:"w",html:V});G=l.tdim,S=l.mdim,v.GP++}}};if(v.X.length>0&&v.BR.AM)if("log"===v.CA){var Ce=[];for(t=v.V;t<=v.A1;t++)ZC.AO._int_(ZC.H0(v.X[t],v.EH))&&(v.GP=t,Ae(t),Ce.push(t));for(t=v.V;t<=v.A1;t++)-1===ZC.AV(Ce,t)&&(v.GP=t,Ae(t))}else for(v.GP=0,Ae(v.V),v.GP=v.A1-v.V,Ae(v.A1),-1!==(f=ZC.AV(v.X,0))&&ZC._b_(v.o["show-zero"])&&(v.GP=f,Ae(f)),v.GP=1,t=v.V+1;t<v.A1;t++)t%P==0&&Ae(t)}if(v.M.AM&&v.M.AR&&""!==v.M.AR){(_=new ZC.DS(v)).copy(v.M),_.K=v.A.K+"-"+v.BC.replace(/\-/g,"_")+"-item_title",_.GJ=v.K+"-label "+v.A.K+"-scale-label zc-scale-label",_.AR=v.M.AR,_.Z=v.H.usc()?v.H.mc():ZC.AK(v.A.K+"-scales-ml-0-c"),_.IJ=v.H.usc()?ZC.AK(v.H.K+"-main"):ZC.AK(v.H.K+"-text"),_.parse(),"inherit"!==v.M.o["font-color"]&&"inherit"!==v.M.o.color||-1===b||(_.C1=b);var ce=v.iY+(v.AU?v.A5:v.BW),ue=v.F-v.BW-v.A5;switch("chart"===_.o["center-point"]&&(ce=v.A.iY,ue=v.A.F),_.JU){case"top":_.iY=ce+_.I/2-_.F/2;break;case"middle":_.iY=ce+ue/2-_.F/2;break;case"bottom":_.iY=ce+ue-_.I/2-_.F/2}_.iX=D?a-_.I/2-_.F/2-Q-S:a+S+_.F/2+Q-_.I/2,v.M.iX=_.iX,v.M.iY=_.iY,_.AM&&(v.MU(_,null,"v",10),_.paint(),_.EL(),null===ZC._n_(_.o.tooltip)&&_.K5||V.push(ZC.AP.O1(v.A.K,_)))}V.length>0&&ZC.AK(v.A.A.K+"-map")&&(ZC.AK(v.A.A.K+"-map").innerHTML+=V.join(""))}}}}),ZC.UN=ZC.A3E.C7({$i:function(e){this.b(e),this.CQ=!0},parse:function(){this.b()},IW:function(){var e=this;e.A1===e.V?e.A9=e.F-e.A5-e.BW:e.A9=(e.F-e.A5-e.BW)/(e.A1-e.V+(e.DL?1:0))},A9L:function(e){var i=this;i.b(e),i.IW()},clear:function(){},build:function(){this.b()},zoomTo:function(e,i){var t=this;t.b(e,i),t.IW()},NA:function(e){var i,t=this;return i=t.AU?(e-t.iY-t.A5)/(t.F-t.A5-t.BW):(t.iY+t.F-t.A5-e)/(t.F-t.A5-t.BW),t.B4+ZC._f_((t.BL-t.B4)*i)},O9:function(e,i,t){var n,a,l,o,r=this;void 0===t&&(t=!1);var s=r.DL?r.A9:0;l=r.AU?(e-r.iY-r.A5-s/2)/(r.F-r.A5-r.BW-s):(r.iY+r.F-e-r.A5-s/2)/(r.F-r.A5-r.BW-s);var A=!1;if(i)for(o in i.JY){A=!0;break}if(i&&!r.NV&&A){var C=r.X[r.V];"string"==typeof C&&(C=ZC.AV(r.IM,C)),"log"===r.CA&&(C=ZC.H0(C,r.EH));var c=r.X[r.A1];"string"==typeof c&&(c=ZC.AV(r.IM,c)),"log"===r.CA&&(c=ZC.H0(c,r.EH));var u=C+ZC._f_((c-C)*l);"log"===r.CA&&(u=Math.pow(r.EH,u));var p=ZC.MAX;a=null;for(o in i.JY)(n=Math.abs(o-u))<p&&(p=n,a=i.JY[o]);if(null===ZC._n_(a)&&(a=u),p>i.A29){var Z=Math.ceil((c-C)/(r.I-r.A5-r.BW));if(i.X.length<2&&(Z*=100),p>Z)return null}return a}var h=r.V,d=r.A1;return r.ED&&(null!==ZC._n_(n=r.X[h])&&(h=n),null!==ZC._n_(n=r.X[d])&&(d=n)),"log"===r.CA&&(h=ZC.H0(h,r.EH),d=ZC.H0(d,r.EH)),a=t?r.DL?h+(d-h+1)*l:h+(d-h)*l:r.DL?r.V+(r.A1-r.V+1)*l:r.V+(r.A1-r.V)*l,"log"===r.CA?(a=Math.pow(r.EH,a),a=Math.floor(a)-1):(a=r.DL?Math.floor(a):ZC._i_(a),a=ZC.BQ(0,a),a=ZC.CY(r.E1,a)),a},I4:function(e){var i=this;i.V,i.A1;return i.ED&&!i.NV&&(i.B4,i.BL),"log"===i.CA&&(e=ZC.H0(e+1,i.EH)),i.AU?i.iY+i.A5+(e-i.V)*i.A9+(i.DL?i.A9/2:0):i.iY+i.F-i.A5-(e-i.V)*i.A9-(i.DL?i.A9/2:0)},B2:function(e){var i,t,n,a=this;if("log"===a.CA&&(e=ZC.H0(e,a.EH)),a.NV){var l=a.TX[e];return a.I4(l)}if(-1!==(i=ZC.AV(a.IM,e)))return a.I4(i);var o,r;return!a.A4U&&(a.ED||a.FD&&"date"===a.FD.o.type)?(o=a.X[a.V],r=a.X[a.A1],"log"===a.CA&&(o=ZC.H0(o,a.EH),r=ZC.H0(r,a.EH)),r===o?n=0:(t=r-o,n=(a.F-a.A5-a.BW-(a.DL?a.A9:0))/t),a.AU?a.iY+a.A5+(e-o)*n+(a.DL?a.A9/2:0):a.iY+a.F-a.A5-(e-o)*n-(a.DL?a.A9/2:0)):(o=a.B4,r=a.BL,"log"===a.CA&&(o=ZC.H0(o,a.EH),r=ZC.H0(r,a.EH)),r===o?n=0:(t=r-o+(a.DL?1:0),n=(a.F-a.A5-a.BW)/t),a.AU?a.iY+a.A5+(e-o)*n+(a.DL?a.A9/2:0):a.iY+a.F-a.A5-(e-o)*n-(a.DL?a.A9/2:0))},paint:function(){function e(e){return e=e.replace(/%scale-last-position/g,g.A1-g.V),e=e.replace(/(%c)|(%scale-position)/g,g.GP),e=e.replace(/(%i)|(%scale-index)/g,g.K0),e=e.replace(/(%v)|(%scale-value)/g,null!==ZC._n_(g.X[g.K0])?g.X[g.K0]:""),e=e.replace(/(%l)|(%scale-label)/g,null!==ZC._n_(g.BX[g.K0])?g.BX[g.K0]:"")}function i(i,t,n){g.K0=i,c=i-g.V,(g.BR.E7.length>0||i===g.V||!ee||g.BR.HT)&&(ee=new ZC.DS(g)),ee.copy(g.BR),ee.K=g.A.K+"-"+g.BC.replace(/\-/g,"_")+"-item_"+(n?"c"+n:i),ee.GJ=g.K+"-item "+g.A.K+"-scale-item zc-scale-item",ee.E["p-height"]=g.A9,g.CI=te,g.DU=ne,g.YT(e);var a="";if(a=n||g.FO(i),g.BR.HT&&g.GZ(g.BR,ee,null,{index:i,cnt:c,text:a},g.BR.N2),null===ZC._n_(g.LP)||-1!==ZC.AV(g.LP,a)){switch(ee.AR=a,ee.Z=ee.C6=g.H.usc()?g.H.mc():ZC.AK(g.A.K+"-scales-ml-0-c"),ee.IJ=g.H.usc()?ZC.AK(g.H.K+"-main"):ZC.AK(g.H.K+"-text"),ee.E.nodeidx=i,ee.parse(),"inherit"!==g.BR.o["font-color"]&&"inherit"!==g.BR.o.color||-1===v||(ee.C1=v),ee.JE=e,ee.DE()&&ee.parse(),ee.o["auto-fit"]&&(ee.F=ZC._i_(g.A9)),ee.o.placement){case"inner":ee.iX=F?o+w:o-ee.I-w;break;case"ref-left":ee.iX=D-ee.I-w;break;case"ref-right":ee.iX=D+w;break;case"ref-auto":X&&X.R[i]?(X.R[i].setup(),X.R[i].iX<D?ee.iX=D+w:ee.iX=D-ee.I-w):ee.iX=D+w;break;default:ee.iX=F?o-ee.I-w:o+w}if(t?(p=g.B2(i),ee.iY=p-ee.F/2-(g.DL?g.A9/2:0)):g.AU?ee.iY=g.iY+g.A5+c*g.A9-ee.F/2+(g.DL?g.A9/2:0):ee.iY=g.iY+g.F-g.A5-c*g.A9-ee.F/2-(g.DL?g.A9/2:0),ie=g.MU(ee,ie,"v"),g.BR.o["auto-align"]&&g.BR.AA%180!=0){var l=F?1:-1;90===g.BR.AA||270===g.BR.AA?ee.iX+=l*(ee.I/2-ee.F/2):ZC.DT(g.BR.AA,0,90)||ZC.DT(g.BR.AA,270,360)?(ee.iX+=l*(ee.I-ee.I*ZC.EF(g.BR.AA))/2,ee.iY-=l*ee.I*ZC.EO(g.BR.AA)/2):ZC.DT(g.BR.AA,90,270)&&(ee.iX+=l*(ee.I+ee.I*ZC.EF(g.BR.AA))/2,ee.iY+=l*ee.I*ZC.EO(g.BR.AA)/2)}var r=g.WT(ee,i,{items:oe,lcoords:re,lstep:P,tdim:ae,mdim:le,dim:"w",html:se});ae=r.tdim,le=r.mdim,g.GP++}}var t,n,a,l,o,r,s,A,C,c,u,p,Z,h,d,f,_,g=this;if(g.AM){g.b(),null!==ZC._n_(g.A.A.E[g.BC+"-feed-offset-start"])&&(g.A5=g.A.A.E[g.BC+"-feed-offset-start"]),"hbubble"!==g.A.AF&&"hscatter"!==g.A.AF||(-1===g.A5&&-1===g.BW||1===g.X.length)&&(g.A5=g.BW=g.F/(g.X.length+1),g.IW());var v=g.A06(),b=0,m=1,B=1,E={};for(n=0,a=g.A.BM.length;n<a;n++)"scale-x"===g.A.BM[n].BC.substring(0,7)&&g.A.BM[n].B8===g.B8&&b++,"scale-x"===g.A.BM[n].BC.substring(0,7)&&("default"===g.A.BM[n].B8?(E[g.A.BM[n].BC]=m,m++):(E[g.A.BM[n].BC]=B,B++));var K=E[g.BC],F="default"===g.B8,D=null,X=null;for(n=0,a=g.A.AY.A6.length;n<a;n++){var I=g.A.AY.A6[n],x=I.BT();if(-1!==ZC.AV(x,g.BC)){var y=g.A.BN(I.BT("v")[0]);D=y.B2(y.H4),X=I;break}}var w=8;null!==ZC._n_(g.IO.o.size)&&(w=ZC._i_(g.IO.o.size));var Y=4;null!==ZC._n_(g.IA.o.size)&&(Y=ZC._i_(g.IA.o.size));var M=ZC._i_(g.A.E[g.BC+"-distance"]||-1);g.V7&&(M=0),"default"===g.B8?(l=ZC._i_(g.A.P.DV/b),o=g.iX-(K-1)*l,-1!==M&&(o=g.iX-M)):(l=ZC._i_(g.A.P.E6/b),o=g.iX+g.I+(K-1)*l,-1!==M&&(o=g.iX+g.I+M));var H=o;if(g.A.I9&&"scale-x"===g.BC&&(g.A.I9.AM=!0,g.DD===g.V&&g.E1===g.A1&&(g.A.I9.AM=!1),g.A.I9.AM&&0===g.A.I9.AX.BJ&&"default"===g.B8&&(o-=g.A.I9.AX.I+g.B0/2)),g.E.iX=o,g.AM&&g.T3){null!==ZC._n_(g.o["fixed-items"])&&(g.LY=g.EE=ZC._i_(g.o["fixed-items"]));var L=Math.ceil((g.A1-g.V)/(g.LY-1)),P=Math.ceil((g.A1-g.V)/(g.EE-1));null===ZC._n_(g.o["fixed-items"])&&ZC._b_(g.o.normalize)&&(L=ZC.AO.A0A(L),P=ZC.AO.A0A(P));for(var N=g.iStepMultiplier,O=3;O>0;O--)g.iStepMultiplier>O&&g.A1-g.V<=O*g.iStepMultiplier&&(N=O);L*=N,P*=N;var k=0,Q=g.A9*L/(g.GI+1);if(null===ZC._n_(D)&&(D=o),r=g.H.usc()?g.H.mc():ZC.AK(g.A.K+"-scales-ml-0-c"),s=ZC.Q.E9(r,g.H.AC),A=g.H.usc()?g.H.mc():ZC.AK(g.A.K+"-scales-bl-0-c"),C=ZC.Q.E9(A,g.H.AC),"inherit"===g.o["line-color"]&&-1!==v&&(g.B9=v),g.A.AJ["3d"])(h=ZC.DH.DA(g,g.A,o-ZC.AN.E3,o-ZC.AN.E3,g.iY-ZC.AN.E2,g.iY-ZC.AN.E2+g.F,-1,ZC.AN.FS+1,"y")).K=g.K+"-line",g.A.F0.true3d&&(g.A.F0["x-angle"]>0?h.MB=[1===g.L?-100:100,1,1]:h.MB=[1===g.L?100:-100,1,1]),g.A.CK.add(h);else{u=[[H,g.iY+g.F],[H,g.iY]];var R=g.K;g.K+="-line",ZC.CS.paint(s,g,u),g.K=R}if(g.X.length>0&&g.D5.AM){var z=null===ZC._n_(g.D5.o["offset-start"])?0:ZC._i_(g.D5.o["offset-start"]),T=null===ZC._n_(g.D5.o["offset-end"])?0:ZC._i_(g.D5.o["offset-end"]);if(g.D5.o.items&&g.D5.o.items.length>0&&!g.A.AJ["3d"])for(d=new ZC.HS(g),n=g.V;n<g.A1+(g.DL?1:0);n++)c=n-g.V,_=n%g.D5.o.items.length,d.append(g.D5.o.items[_]),d.K=g.K+"-guide-"+n,d.Z=A,d.parse(),d.iX=g.iX+z,g.AU?d.iY=g.iY+g.A5+c*g.A9:d.iY=g.iY+g.F-g.A5-(c+1)*g.A9,d.I=g.I-z-T,d.F=g.A9,d.paint();if(g.D5.B0>0)for(g.GP=0,n=g.V;n<=g.A1+(g.DL?1:0);n++)if(g.K0=n,n===g.V||n===g.A1+(g.DL?1:0)||(n-g.V)%L==0){(g.D5.E7.length>0||n===g.V)&&((Z=new ZC.D0(g)).Z=Z.C6=A,Z.copy(g.D5),Z.JE=e,Z.DE()&&Z.parse()),c=n-g.V,u=[],p=g.AU?g.iY+g.A5+c*g.A9:g.iY+g.F-g.A5-c*g.A9;var G=g.iX+z,S=g.I-z-T;if(Z.AM)if(g.A.AJ["3d"]){var J=new ZC.D0(g);J.copy(Z),null!==ZC._n_(g.o["scale-z"])&&null!==ZC._n_(t=g.o["scale-z"].guide)&&(J.append(t),J.parse()),J.A0=J.AE=J.B9,h=ZC.DH.DA(J,g.A,o-ZC.AN.E3,o-ZC.AN.E3,p-ZC.AN.E2-J.B0/2,p-ZC.AN.E2+J.B0/2,0,ZC.AN.FS,"z"),g.A.CK.add(h),Z.A0=Z.AE=Z.B9,(h=ZC.DH.DA(Z,g.A,G-ZC.AN.E3,G-ZC.AN.E3+S,p-ZC.AN.E2-J.B0/2,p-ZC.AN.E2+J.B0/2,ZC.AN.FS+2,ZC.AN.FS+2,"x")).K=g.K+"-guide-"+n,g.A.CK.add(h)}else u.push([G,p],[G+S,p]),Z.K=g.K+"-guide-"+n,ZC.CS.paint(C,Z,u);g.GP++}}if(g.X.length>0&&g.FZ.AM&&!g.A.AJ["3d"]){if(g.FZ.o.items&&g.FZ.o.items.length>0)for(d=new ZC.HS(g),n=g.V;n<g.A1+(g.DL?1:0);n++)for(g.K0=n,c=n-g.V,g.GP=0,f=1;f<=g.GI;f++)_=g.GP%g.FZ.o.items.length,d.append(g.FZ.o.items[_]),d.K=g.K+"-guide-"+n+"-"+f,d.Z=g.H.usc()?g.H.mc():ZC.AK(g.A.K+"-scales-bl-0-c"),d.parse(),d.iX=g.iX,g.AU?d.iY=g.iY+g.A5+(c+1)*g.A9-(f+1)*Q:d.iY=g.iY+g.F-g.A5-(c+1)*g.A9+f*Q,d.I=g.I,d.F=Q,d.paint(),g.GP++;if(g.FZ.B0>0)for(n=g.V;n<g.A1+(g.DL?1:0);n++)if(g.K0=n,n%L==0)for(c=n-g.V,g.GP=0,f=1;f<=g.GI;f++)u=[],(Z=new ZC.D0(g)).copy(g.FZ),Z.JE=e,Z.DE()&&Z.parse(),p="log"===g.CA?g.B2(g.X[n]+f*(g.X[n+1]-g.X[n])/(g.GI+1)):g.AU?g.iY+g.A5+c*g.A9+f*Q:g.iY+g.F-g.A5-c*g.A9-f*Q,ZC.DT(p,g.iY,g.iY+g.F)&&(u.push([g.iX,p],[g.iX+g.I,p]),Z.AM&&(Z.K=g.K+"-minor-guide-"+f,ZC.CS.paint(C,Z,u))),g.GP++}g.VA(C,v);var V,U,W;if(g.X.length>0&&g.IO.AM&&(!g.A.AJ["3d"]||!g.A.F0.true3d)){switch(g.IO.o.placement){case"inner":break;case"outer":k+=w;break;default:k+=w/2}for(g.GP=0,n=g.V;n<=g.A1+(g.DL?1:0);n++)if(g.K0=n,n===g.V||n===g.A1+(g.DL?1:0)||(n-g.V)%L==0){switch(u=[],c=n-g.V,(g.IO.E7.length>0||n===g.V)&&((Z=new ZC.D0(g)).copy(g.IO),"inherit"===g.IO.o["line-color"]&&-1!==v&&(Z.B9=v),Z.JE=e,Z.DE()&&Z.parse()),p=g.AU?g.iY+g.A5+c*g.A9:g.iY+g.F-g.A5-c*g.A9,Z.o.placement){case"ref-auto":u.push([D-w/2,p],[D+w/2,p]);break;case"ref-left":u.push([D-w,p],[D,p]);break;case"ref-right":u.push([D+w,p],[D,p]);break;case"inner":u.push([o,p],[o+(F?w:-w),p]);break;case"outer":u.push([o,p],[o-(F?w:-w),p]);break;default:u.push([o+w/2,p],[o-w/2,p])}if(Z.AM){for(U=ZC._i_(Z.o["offset-x"]||"0"),W=ZC._i_(Z.o["offset-y"]||"0"),V=0;V<u.length;V++)u[V][0]+=U,u[V][1]+=W;Z.K=g.K+"-tick-"+n,ZC.CS.paint(s,Z,u)}g.GP++}}var j=[];if(g.X.length>0&&g.GI>0&&g.IA.AM&&!g.A.AJ["3d"])for(n=g.V;n<g.A1+(g.DL?1:0);n++)if(n===g.V||n===g.A1+(g.DL?1:0)||n%L==0)for(c=n-g.V,f=1;f<=g.GI;f++){if(u=[],(Z=new ZC.D0(g)).copy(g.IA),"inherit"===g.IA.o["line-color"]&&-1!==v&&(Z.B9=v),Z.JE=e,Z.DE()&&Z.parse(),"log"===g.CA){p=g.B2(g.X[n]+f*(g.X[n+1]-g.X[n])/(g.GI+1));var q=Math.round(ZC.H0(g.X[n],g.EH)),$=g.X[n]+f*(g.X[n+1]-g.X[n])/(g.GI+1);$=q<0?ZC._f_($.toFixed(-q)):ZC._f_($.toFixed(q)),j.push($),p=g.B2($)}else p=g.AU?g.iY+g.A5+c*g.A9+f*Q:g.iY+g.F-g.A5-c*g.A9-f*Q;if(ZC.DT(p,g.iY,g.iY+g.F)){switch(Z.o.placement){case"ref-auto":u.push([D-Y/2,p],[D+Y/2,p]);break;case"ref-left":u.push([D-Y,p],[D,p]);break;case"ref-right":u.push([D+Y,p],[D,p]);break;case"inner":u.push([o,p],[o+(F?Y:-Y),p]);break;case"outer":u.push([o,p],[o-(F?Y:-Y),p]);break;default:u.push([o+Y/2,p],[o-Y/2,p])}if(Z.AM){for(U=ZC._i_(Z.o["offset-x"]||"0"),W=ZC._i_(Z.o["offset-y"]||"0"),V=0;V<u.length;V++)u[V][0]+=U,u[V][1]+=W;Z.K=g.K+"-minor-tick-"+n,ZC.CS.paint(s,Z,u)}}g.GP++}g.XJ();var ee,ie=null,te=g.CI,ne=g.DU,ae=0,le=0,oe=0,re=[],se=[];if(1===g.X.length&&g.BR.AM)g.GP=0,i(g.V);else if(g.X.length>1&&g.BR.AM)for(g.GP=0,i(g.V),g.GP=g.A1-g.V,i(g.A1),g.GP=1,n=g.V+1;n<g.A1;n++)(n-g.V)%P==0&&i(n);for(n=0;n<j.length;n++){var Ae=g.FO(n,null,null,!1,j[n]);i(Ae,!0,Ae)}if(g.M.AM&&g.M.AR&&""!==g.M.AR){(ee=new ZC.DS(g)).copy(g.M),ee.K=g.A.K+"-"+g.BC.replace(/\-/g,"_")+"-item_title",ee.GJ=g.K+"-label "+g.A.K+"-scale-label zc-scale-label",ee.AR=g.M.AR,ee.Z=g.H.usc()?g.H.mc():ZC.AK(g.A.K+"-scales-ml-0-c"),ee.IJ=g.H.usc()?ZC.AK(g.H.K+"-main"):ZC.AK(g.H.K+"-text"),ee.parse(),"inherit"!==g.M.o["font-color"]&&"inherit"!==g.M.o.color||-1===v||(ee.C1=v);var Ce=g.iY+(g.AU?g.A5:g.BW),ce=g.F-g.A5-g.BW;switch("chart"===ee.o["center-point"]&&(Ce=g.A.iY,ce=g.A.F),ee.JU){case"top":ee.iY=Ce+ee.I/2-ee.F/2;break;case"middle":ee.iY=Ce+ce/2-ee.F/2;break;case"bottom":ee.iY=Ce+ce-ee.I/2-ee.F/2}ee.iX=F?o-ee.I/2-ee.F/2-k-le:o+ee.F/2+le+k-ee.I/2,g.M.iX=ee.iX,g.M.iY=ee.iY,ee.AM&&(g.MU(ee,null,"v"),ee.paint(),ee.EL(),null===ZC._n_(ee.o.tooltip)&&ee.K5||se.push(ZC.AP.O1(g.A.K,ee)))}se.length>0&&ZC.AK(g.A.A.K+"-map")&&(ZC.AK(g.A.A.K+"-map").innerHTML+=se.join(""))}}}}),ZC.UP=ZC.Z4.C7({$i:function(e){this.b(e),this.CQ=!0},parse:function(){this.b()},IW:function(){var e=this;e.A1===e.V?e.A9=e.I-e.A5-e.BW:e.A9=(e.I-e.A5-e.BW)/(e.A1-e.V+(e.DL?1:0))},A9L:function(e){var i=this;i.b(e),i.IW()},zoomTo:function(e,i){var t=this;t.b(e,i),t.IW()},clear:function(){},build:function(){this.b()},NA:function(e,i){var t,n=this;t=n.AU?(n.iX+n.I-n.A5-e)/(n.I-n.A5-n.BW):(e-n.iX-n.A5)/(n.I-n.A5-n.BW);var a=n.B4+ZC._f_((n.BL-n.B4)*t);return"log"===n.CA&&i&&(a=Math.pow(n.EH,a)),a},B2:function(e){var i=this,t=i.BL-i.B4,n=0===t?0:(i.I-i.A5-i.BW)/t;return"log"===i.CA&&(e=0===e?i.FU:ZC.H0(e,i.EH)),i.AU?i.iX+i.I-i.A5-(e-i.B4)*n:i.iX+i.A5+(e-i.B4)*n},paint:function(){function e(e){return e=e.replace(/%scale-last-position/g,v.A1-v.V),e=e.replace(/(%c)|(%scale-position)/g,v.GP),e=e.replace(/(%i)|(%scale-index)/g,v.K0),e=e.replace(/(%v)|(%scale-value)/g,null!==ZC._n_(v.X[v.K0])?v.X[v.K0]:""),e=e.replace(/(%l)|(%scale-label)/g,null!==ZC._n_(v.BX[v.K0])?v.BX[v.K0]:"")}var i,t,n,a,l,o,r,s,A,C,c,u,p,Z,h,d,f,_,g,v=this;if(v.AM&&0!==v.X.length){v.b(),"hbubble"!==v.A.AF&&"hscatter"!==v.A.AF||1!==v.X.length||(v.A5=v.I/2);var b=v.A06(),m=0,B=1,E=1,K={};for(t=0,n=v.A.BM.length;t<n;t++)"scale-y"===v.A.BM[t].BC.substring(0,7)&&v.A.BM[t].B8===v.B8&&m++,"scale-y"===v.A.BM[t].BC.substring(0,7)&&("default"===v.A.BM[t].B8?(K[v.A.BM[t].BC]=B,B++):(K[v.A.BM[t].BC]=E,E++));var F=K[v.BC],D="default"===v.B8;for(t=0,n=v.A.AY.A6.length;t<n;t++){var X=v.A.AY.A6[t],I=X.BT();if(-1!==ZC.AV(I,v.BC)){var x=v.A.BN(X.BT("k")[0]);x.B2(x.H4),X;break}}var y=8;null!==ZC._n_(v.IO.o.size)&&(y=ZC._i_(v.IO.o.size));var w=4;null!==ZC._n_(v.IA.o.size)&&(w=ZC._i_(v.IA.o.size));var Y=ZC._i_(v.A.E[v.BC+"-distance"]||-1);v.V7&&(Y=0),"default"===v.B8?(h=ZC._i_(v.A.P.DP/m),a=v.iY+v.F+(F-1)*h,-1!==Y&&(a=v.iY+v.F+Y)):(h=ZC._i_(v.A.P.E5/m),a=v.iY-(F-1)*h,-1!==Y&&(a=v.iY-Y));var M=a;if(v.A.I6&&(v.A.I6.AM=!0,v.FU===v.B4&&v.GY===v.BL&&(v.A.I6.AM=!1),v.A.I6.AM&&0===v.A.I6.AX.BH&&"default"===v.B8&&(a+=v.A.I6.AX.F+v.B0/2)),v.E.iY=a,v.AM&&v.T3){for(var H=Math.ceil((v.A1-v.V)/(v.EE-1)),L=Math.ceil((v.A1-v.V)/(v.LY-1)),P=v.iStepMultiplier,N=3;N>0;N--)v.iStepMultiplier>N&&v.A1-v.V<=N*v.iStepMultiplier&&(P=N);L*=P,H*=P;var O=0,k=v.A9*L/(v.GI+1);if(l=v.H.usc()?v.H.mc():ZC.AK(v.A.K+"-scales-ml-0-c"),o=ZC.Q.E9(l,v.H.AC),r=v.H.usc()?v.H.mc():ZC.AK(v.A.K+"-scales-bl-0-c"),s=ZC.Q.E9(r,v.H.AC),v.T3||v.Y7||null!==ZC._n_(v.A.o[v.BC])){if("inherit"===v.o["line-color"]&&-1!==b&&(v.B9=b),v.A.AJ["3d"])(p=ZC.DH.DA(v,v.A,v.iX-ZC.AN.E3,v.iX-ZC.AN.E3+v.I,a-ZC.AN.E2,a-ZC.AN.E2,-1,ZC.AN.FS+1,"x")).K=v.K+"-line",v.A.F0.true3d&&(v.A.F0["y-angle"]>0?p.MB=[1===v.L?-100:100,1,1]:p.MB=[1===v.L?100:-100,1,1]),v.A.CK.add(p);else{A=[[v.iX,M],[v.iX+v.I,M]];var Q=v.K;v.K+="-line",ZC.CS.paint(o,v,A),v.K=Q}var R=[],z=0,T=0,G=[];if(v.T3||v.Y7){if(v.X.length>0&&v.D5.AM){var S=null===ZC._n_(v.D5.o["offset-start"])?0:ZC._i_(v.D5.o["offset-start"]),J=null===ZC._n_(v.D5.o["offset-end"])?0:ZC._i_(v.D5.o["offset-end"]);if(v.D5.o.items&&v.D5.o.items.length>0&&!v.A.AJ["3d"])for(v.GP=0,f=new ZC.HS(v),t=v.V;t<v.A1+(v.DL?1:0);t++)v.K0=t,t%L==0&&(C=t-v.V,d=v.GP%v.D5.o.items.length,f.append(v.D5.o.items[d]),f.K=v.K+"-guide-"+t,f.Z=r,f.parse(),c="log"===v.CA?v.B2(v.X[t]):v.AU?v.iX+v.I-v.A5-C*v.A9:v.iX+v.A5+C*v.A9,f.iX=c,f.iY=v.iY+S,f.I=v.A9*L,f.F=v.F-S-J,f.paint(),v.GP++);if(v.D5.B0>0)for(v.GP=0,t=v.V;t<=v.A1+(v.DL?1:0);t++)if(v.K0=t,t===v.V||t===v.A1||t%L==0){(v.D5.E7.length>0||t===v.V||"log"===v.CA)&&((u=new ZC.D0(v)).Z=u.C6=r,"log"===v.CA?ZC.AO._int_(ZC.H0(v.X[t],v.EH))?u.copy(v.D5):u.copy(v.FZ):u.copy(v.D5),u.JE=e,u.DE()&&u.parse()),A=[],C=t-v.V;var V=v.iY+S,U=v.F-S-J;if(c="log"===v.CA?v.B2(v.X[t]):v.AU?v.iX+v.I-v.A5-C*v.A9:v.iX+v.A5+C*v.A9,u.AM)if(v.A.AJ["3d"]){var W=new ZC.D0(v);W.copy(u),null!==ZC._n_(v.o["scale-z"])&&null!==ZC._n_(i=v.o["scale-z"].guide)&&(W.append(i),W.parse()),W.A0=W.AE=W.B9,p=ZC.DH.DA(W,v.A,c-ZC.AN.E3-W.B0/2,c-ZC.AN.E3+W.B0/2,a-ZC.AN.E2,a-ZC.AN.E2,0,ZC.AN.FS,"z"),v.A.CK.add(p),u.A0=u.AE=u.B9,(p=ZC.DH.DA(u,v.A,c-ZC.AN.E3-u.B0/2,c-ZC.AN.E3+u.B0/2,V-ZC.AN.E2,V-ZC.AN.E2+U,ZC.AN.FS+2,ZC.AN.FS+2,"y")).K=v.K+"-guide-"+t,v.A.CK.add(p)}else A.push([c,V],[c,V+U]),u.K=v.K+"-guide-"+t,ZC.CS.paint(s,u,A);v.GP++}}if(v.X.length>0&&v.FZ.AM&&k>2&&!v.A.AJ["3d"]){if(v.FZ.o.items&&v.FZ.o.items.length>0)for(f=new ZC.HS(v),t=v.V;t<v.A1+(v.DL?1:0);t++)if(v.K0=t,t%L==0)for(C=t-v.V,v.GP=0,Z=0;Z<=v.GI;Z++)d=v.GP%v.FZ.o.items.length,f.append(v.FZ.o.items[d]),f.K=v.K+"-guide-"+t+"-"+Z,f.Z=v.H.usc()?v.H.mc():ZC.AK(v.A.K+"-scales-bl-0-c"),f.parse(),c=v.AU?v.iX+v.I-v.A5-C*v.A9-(Z+1)*k:v.iX+v.A5+C*v.A9+Z*k,f.iX=c,f.iY=v.iY,f.I=k,f.F=v.F,f.paint(),v.GP++;if(v.FZ.B0>0&&"log"!==v.CA)for(t=v.V;t<v.A1+(v.DL?1:0);t++)if(v.K0=t,t===v.V||t===v.A1||t%L==0)for(C=t-v.V,v.GP=0,Z=1;Z<=v.GI;Z++)A=[],(u=new ZC.D0(v)).copy(v.FZ),u.JE=e,u.DE()&&u.parse(),c="log"===v.CA?v.B2(v.X[t]+Z*(v.X[t+1]-v.X[t])/(v.GI+1)):v.AU?v.iX+v.I-v.A5-C*v.A9-Z*k:v.iX+v.A5+C*v.A9+Z*k,ZC.DT(c,v.iX,v.iX+v.I)&&(A.push([c,v.iY],[c,v.iY+v.F]),u.AM&&(u.K=v.K+"-minor-guide-"+Z,ZC.CS.paint(s,u,A))),v.GP++}v.VA(s,b);var j,q,$;if(v.X.length>0&&v.IO.AM&&(!v.A.AJ["3d"]||!v.A.F0.true3d)){switch(v.IO.o.placement){case"inner":break;case"outer":O+=y;break;default:O+=y/2}for(v.GP=0,_=ZC.AV(v.X,0),t=v.V;t<=v.A1+(v.DL?1:0);t++){v.K0=t;var ee=-1;if((t===v.V||t===v.A1||t%L==0||ZC._b_(v.o["show-zero"])&&t===_)&&(A=[],C=t-v.V,(v.IO.E7.length>0||t===v.V||"log"===v.CA)&&(u=new ZC.D0(v),"log"===v.CA?ZC.AO._int_(ZC.H0(v.X[t],v.EH))?u.copy(v.IO):(u.copy(v.IA),ee=y,y=w):u.copy(v.IO),"inherit"===v.IO.o["line-color"]&&-1!==b&&(u.B9=b),u.JE=e,u.DE()&&u.parse()),c="log"===v.CA?v.B2(v.X[t]):v.AU?v.iX+v.I-v.A5-C*v.A9:v.iX+v.A5+C*v.A9,ZC.DT(c,v.A.P.iX,v.A.P.iX+v.A.P.I))){switch(u.o.placement){case"inner":A.push([c,a-(D?y:-y)],[c,a]);break;case"outer":A.push([c,a],[c,a+(D?y:-y)]);break;default:A.push([c,a+y/2],[c,a-y/2])}if(-1!==ee&&(y=ee,ee=-1),u.AM){for(q=ZC._i_(u.o["offset-x"]||"0"),$=ZC._i_(u.o["offset-y"]||"0"),j=0;j<A.length;j++)A[j][0]+=q,A[j][1]+=$;u.K=v.K+"-tick-"+t,ZC.CS.paint(o,u,A)}v.GP++}}}if(v.X.length>0&&v.IA.AM&&v.GI>0&&k>5&&!v.A.AJ["3d"]&&"log"!==v.CA)for(t=v.V;t<v.A1+(v.DL?1:0);t++)if(v.K0=t,t===v.V||t===v.A1||t%L==0)for(C=t-v.V,v.GP=0,Z=1;Z<=v.GI;Z++){if(A=[],(u=new ZC.D0(v)).copy(v.IA),"inherit"===v.IA.o["line-color"]&&-1!==b&&(u.B9=b),u.JE=e,u.DE()&&u.parse(),c="log"===v.CA?v.B2(v.X[t]+Z*(v.X[t+1]-v.X[t])/(v.GI+1)):v.AU?v.iX+v.I-v.A5-C*v.A9-Z*k:v.iX+v.A5+C*v.A9+Z*k,ZC.DT(c,v.iX,v.iX+v.I)){switch(u.o.placement){case"inner":A.push([c,a-(D?w:-w)],[c,a]);break;default:A.push([c,a],[c,a+(D?w:-w)]);break;case"cross":A.push([c,a+w/2],[c,a-w/2])}if(u.AM){for(q=ZC._i_(u.o["offset-x"]||"0"),$=ZC._i_(u.o["offset-y"]||"0"),j=0;j<A.length;j++)A[j][0]+=q,A[j][1]+=$;u.K=v.K+"-minor-tick-"+t,ZC.CS.paint(o,u,A)}}v.GP++}v.XJ();var ie=null,te=v.CI,ne=v.DU,ae=function(i){v.K0=i,C=i-v.V,(v.BR.E7.length>0||i===v.V||!g||v.BR.HT)&&(g=new ZC.DS(v)),g.copy(v.BR),g.GJ=v.K+"-item "+v.A.K+"-scale-item zc-scale-item",g.K=v.A.K+"-"+v.BC.replace(/\-/g,"_")+"-item_"+i,v.CI=te,v.DU=ne,v.YT(e);var t;if(t=("piano"===v.A.AF||v.PU)&&v.BX.length?v.FO(i+v.B4):v.FO(i),v.BR.HT&&v.GZ(v.BR,g,null,{index:i,cnt:C,text:t},v.BR.N2),null===ZC._n_(v.LP)||-1!==ZC.AV(v.LP,t)){switch(g.AR=t,g.Z=g.C6=v.H.usc()?v.H.mc():ZC.AK(v.A.K+"-scales-ml-0-c"),g.IJ=v.H.usc()?ZC.AK(v.H.K+"-main"):ZC.AK(v.H.K+"-text"),g.parse(),"inherit"!==v.BR.o["font-color"]&&"inherit"!==v.BR.o.color||-1===b||(g.C1=b),g.JE=e,g.E7=v.BR.E7,g.DE()&&g.parse(),g.o.placement){case"inner":g.iY=D?a-g.KK-y:a+y;break;default:g.iY=D?a+y:a-g.KK-y}if("log"===v.CA?g.iX=v.B2(v.X[i])-g.I/2:v.AU?g.iX=v.iX+v.I-v.A5-C*v.A9-g.I/2-(v.DL?v.A9/2:0):g.iX=v.iX+v.A5+C*v.A9-g.I/2+(v.DL?v.A9/2:0),ie=v.MU(g,ie,"h"),v.BR.o["auto-align"]&&v.BR.AA%180!=0){var n=ZC.DT(v.BR.AA,0,180)?D?1:-1:1===D?-1:1;g.iX+=n*g.I*ZC.EF(v.BR.AA)/2,g.iY+=n*(g.I*ZC.EO(v.BR.AA)/2-g.F*ZC.EO(v.BR.AA)/2)}if(ZC.DT(g.iX+g.I/2,v.A.P.iX,v.A.P.iX+v.A.P.I)){var l=v.WT(g,i,{items:0,lcoords:R,lstep:H,tdim:z,mdim:T,dim:"h",html:G});z=l.tdim,T=l.mdim,v.GP++}}};if(v.X.length>0&&v.BR.AM)if("log"===v.CA){var le=[];for(t=v.V;t<=v.A1;t++)ZC.AO._int_(ZC.H0(v.X[t],v.EH))&&(v.GP=t,ae(t),le.push(t));for(t=v.V;t<=v.A1;t++)-1===ZC.AV(le,t)&&(v.GP=t,ae(t))}else for(v.GP=0,ae(v.V),v.GP=v.A1-v.V,ae(v.A1),-1!==(_=ZC.AV(v.X,0))&&ZC._b_(v.o["show-zero"])&&(v.GP=_,ae(_)),v.GP=1,t=v.V+1;t<v.A1;t++)t%H==0&&ae(t)}if(v.M.AM&&v.M.AR&&""!==v.M.AR){(g=new ZC.DS(v)).copy(v.M),g.K=v.A.K+"-"+v.BC.replace(/\-/g,"_")+"-item_title",g.GJ=v.K+"-label "+v.A.K+"-scale-label zc-scale-label",g.AR=v.M.AR,g.Z=v.H.usc()?v.H.mc():ZC.AK(v.A.K+"-scales-ml-0-c"),g.IJ=v.H.usc()?ZC.AK(v.H.K+"-main"):ZC.AK(v.H.K+"-text"),g.parse(),"inherit"!==v.M.o["font-color"]&&"inherit"!==v.M.o.color||-1===b||(g.C1=b);var oe=v.iX+(v.AU?v.BW:v.A5),re=v.I-v.A5-v.BW;switch("chart"===g.o["center-point"]&&(oe=v.A.iX,re=v.A.I),g.OB){case"left":g.iX=oe;break;case"center":g.iX=oe+re/2-g.I/2;break;case"right":g.iX=oe+re-g.I}g.iY=D?a+O+T:a-T-g.F-O,v.M.iX=g.iX,v.M.iY=g.iY,g.AM&&(v.MU(g,null,"h"),g.paint(),g.EL(),null===ZC._n_(g.o.tooltip)&&g.K5||G.push(ZC.AP.O1(v.A.K,g)))}G.length>0&&ZC.AK(v.A.A.K+"-map")&&(ZC.AK(v.A.A.K+"-map").innerHTML+=G.join(""))}}}}}),ZC.XO=ZC.A3E.C7({$i:function(e){this.b(e);var i=this;i.NB="",i.KO=1,i.GX=1,i.GH=0,i.G8=0,i.JM=.6},parse:function(){var e=this;e.b(),e.iX+=e.DV,e.iY+=e.E5,e.I-=e.DV+e.E6,e.F-=e.E5+e.DP,e.Z5("layout","NB"),null!==ZC._n_(e.o["size-factor"])&&(e.JM=ZC._f_(ZC._p_(e.o["size-factor"])))},A9L:function(e){var i=this;i.b(e),0===i.X.length&&(i.X=[""]);var t=ZC.AO.A20(i.NB,i.X.length,!1);i.KO=t[0],i.GX=t[1],i.GH=i.I/i.GX,i.G8=i.F/i.KO},A44:function(){var e=this;e.b(),e.GH=e.I/e.GX,e.G8=e.F/e.KO},clear:function(){},build:function(){this.b()},paint:function(){var e,i,t,n,a,l=this;if(l.AM){if(l.b(),e=ZC.Q.E9(l.H.usc()?l.H.K+"-main-c":l.A.K+"-scales-ml-0-c",l.H.AC),i=ZC.Q.E9(l.H.usc()?l.H.K+"-main-c":l.A.K+"-scales-bl-0-c",l.H.AC),(t=[]).push([l.iX,l.iY],[l.iX+l.I,l.iY],[l.iX+l.I,l.iY+l.F],[l.iX,l.iY+l.F],[l.iX,l.iY]),ZC.CS.paint(e,l,t),l.D5.AM){if(l.D5.o.items&&l.D5.o.items.length>0)for(n=0,a=l.X.length;n<a;n++){var o=n%l.GX,r=Math.floor(n/l.GX),s=new ZC.HS(l),A=n%l.D5.o.items.length;s.o=l.D5.o.items[A],s.K=l.K+"-guide-"+n,s.Z=l.H.usc()?l.H.mc():ZC.AK(l.A.K+"-scales-bl-0-c"),s.parse(),s.iX=l.iX+o*l.GH,s.iY=l.iY+r*l.G8,s.I=l.GH,s.F=l.G8,s.paint()}if(l.D5.B0>0){for(t=[],n=0;n<=l.GX;n++)t.push([l.iX+n*l.GH,l.iY],[l.iX+n*l.GH,l.iY+l.F],null);for(n=0;n<=l.KO;n++)t.push([l.iX,l.iY+n*l.G8],[l.iX+l.I,l.iY+n*l.G8],null);ZC.CS.paint(i,l.D5,t)}}var C,c=[];if(l.BR.AM){for(n=0,a=l.X.length;n<a;n++)!function(e){(l.BR.E7.length>0||0===e)&&(C=new ZC.DS(l)),C.copy(l.BR);var i=e%l.GX,t=Math.floor(e/l.GX);C.GJ=l.K+"-item "+l.A.K+"-scale-item zc-scale-item",C.K=l.A.K+"-"+l.BC.replace(/\-/g,"_")+"-item_"+e;var n=l.FO(e);if((null===ZC._n_(l.LP)||-1!==ZC.AV(l.LP,n))&&(C.AR=n,C.Z=l.H.usc()?l.H.mc():ZC.AK(l.A.K+"-scales-ml-0-c"),C.parse(),C.JE=function(i){return i=i.replace(/%i/g,e),i=i.replace(/%v/g,null!==ZC._n_(l.X[e])?l.X[e]:""),i=i.replace(/%l/g,null!==ZC._n_(l.BX[e])?l.BX[e]:"")},C.E7=l.BR.E7,C.DE()&&C.parse(),C.AM)){var a="bottom";null!==ZC._n_(l.BR.o.placement)&&(a=l.BR.o.placement);var o=l.iX+i*l.GH,r=l.iY+t*l.G8;switch(a){case"top-left":C.iX=o,C.iY=r;break;case"top-right":C.iX=o+l.GH-C.I,C.iY=r;break;case"bottom-left":C.iX=o,C.iY=r+l.G8-C.F;break;case"bottom-right":C.iX=o+l.GH-C.I,C.iY=r+l.G8-C.F;break;case"top":C.iX=o+l.GH/2-C.I/2,C.iY=r;break;case"right":C.iX=o+l.GH-C.I,C.iY=r+l.G8/2-C.F/2;break;case"left":C.iX=o,C.iY=r+l.G8/2-C.F/2;break;default:C.iX=o+l.GH/2-C.I/2,C.iY=r+l.G8-C.F}C.paint(),C.EL(),null===ZC._n_(l.o.tooltip)&&C.K5||c.push(ZC.AP.O1(l.A.K,C))}}(n);c.length>0&&ZC.AK(l.A.A.K+"-map")&&(ZC.AK(l.A.A.K+"-map").innerHTML+=c.join(""))}}}}),ZC.A86=ZC.A3E.C7({$i:function(e){this.b(e);var i=this;i.DG=0,i.EG=360},parse:function(){var e,i=this;i.b(),null!==ZC._n_(e=i.o["ref-angle"])&&(i.DG=ZC._i_(e)%360),null!==ZC._n_(e=i.o.aperture)&&(i.EG=ZC._i_(e)%360,0===i.EG&&(i.EG=360))}}),ZC.AB9=ZC.Z4.C7({$i:function(e){this.b(e)},parse:function(){this.b()},IW:function(){},A9L:function(e){var i=this;i.b(e),i.IW()},clear:function(){this.b()},build:function(){this.b()},paint:function(){this.b()}}),ZC.A7Z=ZC.AB9.C7({$i:function(e){this.b(e);var i=this;i.DG=-90,i.EG=180,i.Q9=null,i.IU=null,i.CW="circle"},parse:function(){var e,i=this;i.b(),null!==ZC._n_(e=i.o["ref-angle"])&&(i.DG=ZC._i_(e)%360),null!==ZC._n_(e=i.o.aperture)&&(i.EG=ZC._i_(e)),null!==ZC._n_(e=i.o.center)&&(i.Q9=new ZC.DW(i),i.Q9.append(e),i.Q9.parse()),null!==ZC._n_(e=i.o.ring)&&(i.IU=new ZC.DW(i),i.H.B7.load(i.IU.o,[i.A.AF+"."+i.BC+".ring"]),i.IU.append(e),i.IU.parse())},A9L:function(e){this.b(e)},clear:function(){},build:function(){this.b()},B2:function(e){var i=this,t=i.A.BN("scale"),n=t.iX+t.I/2,a=t.iY+t.F/2,l=i.A.BN("scale-"+i.L);l||(l=i.A.BN("scale"));var o=ZC.CY(l.GH/2,l.G8/2)*l.JM,r=i.BL-i.B4,s=i.EG/r;return ZC.AO.BK(n,a,o,i.DG-i.EG/2+s*(e-i.B4))},I4:function(e){var i=this;return i.B2(i.X[e])},paintMarker:function(e){var i,t=this;if(e.F6){var n=t.A.BN("scale-"+t.L);n||(n=t.A.BN("scale"));var a;if(e.AM){var l=t.A.K+"-scales-"+("top"===e.B8?"f":"b")+"l-0-c";e.Z=e.C6=ZC.AK(t.H.usc()?n.H.K+"-main-c":l),a=ZC.Q.E9(e.Z,t.H.AC);var o=ZC.CY(n.GH/2,n.G8/2)*n.JM,r=ZC.IG(e.o["offset-start"]||"0");r>0&&r<1&&(r*=o);var s=ZC.IG(e.o["offset-end"]||"0");s>0&&s<1&&(s*=o),e.M&&(e.M.Z=t.H.usc()?t.H.mc():ZC.AK(t.A.K+"-scales-ml-0-c"),e.M.K=e.A.A.K+"-"+e.A.BC.replace(/\-/g,"_")+"-marker_"+e.L,e.M.GJ=e.A.K+"-marker-label "+e.A.A.K+"-scale-marker-label zc-scale-marker-label");for(var A=0;A<n.X.length;A++){var C,c=A%n.GX,u=Math.floor(A/n.GX),p=n.iX+c*n.GH+n.GH/2+n.BJ,Z=n.iY+u*n.G8+n.G8/2+n.BH;switch(e.AF){case"line":if(e.F6.length>0){var h=t.DG-t.EG/2+t.EG*(e.F6[0]-t.B4)/(t.BL-t.B4);C=h;var d=[];d.push(ZC.AO.BK(p,Z,r,h)),d.push(ZC.AO.BK(p,Z,o-s,h)),2===d.length&&(ZC.CS.setup(a,e),ZC.CS.paint(a,e,d))}break;case"area":if(e.F6.length>1){var f=t.DG-t.EG/2+t.EG*(e.F6[0]-t.B4)/(t.BL-t.B4),_=t.DG-t.EG/2+t.EG*(e.F6[1]-t.B4)/(t.BL-t.B4);C=(f+_)/2;var g=new ZC.DW(e);g.Z=e.Z,g.append(e.o),g.append({size:o-s,slice:r,type:"pie","angle-start":f,"angle-end":_}),g.K=n.K+"-marker-"+e.L,g.iX=p,g.iY=Z,g.parse(),g.paint()}}if(e.M){var v;null!==ZC._n_(i=e.M.o["offset-r"])?v=ZC._f_(ZC._p_(i)):v<1?v*=o-s-r:v=0;var b=ZC.AO.BK(p,Z,(o-s-r)/2+v,C);e.M.iX=b[0]-e.M.I/2,e.M.iY=b[1]-e.M.F/2,e.M.paint()}}}}},paint:function(){function e(e){return e=e.replace(/%i/g,t),e=e.replace(/%k/g,t),e=e.replace(/%v/g,null!==ZC._n_(C.X[t])?C.X[t]:""),e=e.replace(/%l/g,null!==ZC._n_(C.BX[t])?C.BX[t]:"")}var i,t,n,a,l,o,r,s,A,C=this;if(C.AM&&0!==C.X.length){C.AU&&C.X.reverse(),i=ZC.Q.E9(C.H.usc()?C.H.K+"-main-c":C.A.K+"-scales-bl-0-c",C.H.AC);var c=ZC._i_(C.IO.o.size||8),u=ZC._i_(C.IA.o.size||4),p=0,Z=ZC.BQ(1,Math.ceil((C.A1-C.V)/(C.LY-1))),h=ZC.BQ(1,Math.ceil((C.A1-C.V)/(C.EE-1))),d=C.A.BN("scale-"+C.L);d||(d=C.A.BN("scale"));for(var f,_,g,v=ZC.CY(d.GH/2,d.G8/2)*d.JM,b=C.EG/(C.X.length-1),m=0;m<d.X.length;m++){var B=m%d.GX,E=Math.floor(m/d.GX),K=d.iX+B*d.GH+d.GH/2+d.BJ,F=d.iY+E*d.G8+d.G8/2+d.BH,D=new ZC.DW(C);if(D.Z=C.H.usc()?C.H.mc():ZC.AK(C.A.K+"-scales-bl-0-c"),D.copy(C),D.K=C.K+"-"+m,D.iX=K,D.iY=F,D.AI=v-.5,D.DQ=360===C.EG?"circle":"pie",D.B3=C.DG-C.EG/2+360,D.BI=C.DG+C.EG/2+360,D.CN=0,D.parse(),D.paint(),C.D5.AM){if(C.D5.o.items&&C.D5.o.items.length>0)for(t=0;t<C.X.length-1;t++)D=new ZC.DW(C),r=t%C.D5.o.items.length,D.append(C.D5.o.items[r]),D.Z=C.H.usc()?C.H.mc():ZC.AK(C.A.K+"-scales-bl-0-c"),D.iX=K,D.iY=F,D.K=C.K+"-pie-"+t,D.o.type="pie",D.o.size=v-C.BW,D.CN=C.A5,D.B3=C.DG-C.EG/2+t*b+360,D.BI=C.DG-C.EG/2+(t+1)*b+360,D.parse(),D.paint();if(C.D5.B0>0)for(t=0,n=C.X.length;t<n;t++)(f=new ZC.D0(C)).copy(C.D5),f.JE=e,f.E7=C.D5.E7,f.DE()&&f.parse(),(o=[]).push(ZC.AO.BK(K,F,v-C.BW,C.DG-C.EG/2+t*b)),o.push(ZC.AO.BK(K,F,C.A5,C.DG-C.EG/2+t*b)),ZC.CS.paint(i,f,o)}if(C.FZ.AM&&C.FZ.B0>0&&C.GI>0)for(t=0,n=C.X.length;t<n-1;t++)for(s=C.DG-C.EG/2+t*b,_=b/(C.GI+1),g=1;g<=C.GI;g++)(f=new ZC.D0(C)).copy(C.FZ),f.JE=e,f.E7=C.FZ.E7,f.DE()&&f.parse(),(o=[]).push(ZC.AO.BK(K,F,v-C.BW,C.DG-C.EG/2+t*b+g*_)),o.push(ZC.AO.BK(K,F,C.A5,C.DG-C.EG/2+t*b+g*_)),ZC.CS.paint(i,f,o);if(C.XJ(),C.H.ZI(),C.IU&&((l=new ZC.DW(C)).append(C.IU.o),l.Z=C.H.usc()?C.H.mc():ZC.AK(C.A.K+"-scales-bl-0-c"),l.K=C.K+"-ring",l.iX=K,l.iY=F,360!==C.EG?(l.o.type="pie",a=ZC._i_(l.o.size),a=ZC.BQ(1,ZC.CY(a,v)),l.CN=v-a,l.o.size=v,l.B3=C.DG-C.EG/2+360,l.BI=C.DG+C.EG/2+360):(l.o.type="circle",a=ZC._i_(l.o.size),a=ZC.BQ(1,ZC.CY(a,v)),l.o.size=v),l.parse(),l.AM&&a+l.AT>0&&(l.paint(),360===C.EG&&(l.K=C.K+"-ring-inner",l.o.size=v-a,l.parse(),l.paint())),C.IU.o.items&&C.IU.o.items.length>0||C.IU.o.rules))for(t=0;t<C.X.length-1;t++)(l=new ZC.DW(C)).append(C.IU.o),C.IU.o.items&&(r=t%C.IU.o.items.length,l.append(C.IU.o.items[r])),l.Z=C.H.usc()?C.H.mc():ZC.AK(C.A.K+"-scales-bl-0-c"),l.K=C.K+"-ring-"+t,l.iX=K,l.iY=F,l.o.type="pie",a=ZC._i_(l.o.size),a=ZC.BQ(0,ZC.CY(a,v)),l.CN=v-a,l.o.size=v,l.B3=C.DG-C.EG/2+t*b+360,l.BI=C.DG-C.EG/2+(t+1)*b+360+.25,l.parse(),l.JE=e,l.E7=C.IU.E7,l.DE()&&l.parse(),l.AM&&a+l.AT>0&&l.paint();if(C.IO.AM){switch(C.IO.o.placement){case"outer":p+=c;break;default:p+=c/2}for(o=[],t=0,n=C.X.length;t<n;t++)if(t===C.V||t===C.A1||t%Z==0){switch(s=C.DG-C.EG/2+t*b,A=[0,0],C.IO.o.placement){case"inner":A=[-c,0];break;case"outer":A=[0,c];break;default:A=[-c/2,c/2]}o.push(ZC.AO.BK(K,F,v+A[0],s),ZC.AO.BK(K,F,v+A[1],s),null)}ZC.CS.paint(i,C.IO,o)}if(C.IA.AM&&C.GI>0){for(o=[],t=0,n=C.X.length;t<n-1;t++)for(s=C.DG-C.EG/2+t*b,_=b/(C.GI+1),g=1;g<=C.GI;g++){switch(A=[0,0],C.IA.o.placement){case"inner":A=[-u,0];break;case"outer":A=[0,u];break;default:A=[-u/2,u/2]}o.push(ZC.AO.BK(K,F,v+A[0],s+g*_),ZC.AO.BK(K,F,v+A[1],s+g*_),null)}ZC.CS.paint(i,C.IA,o)}if(C.BR.AM){var X=[];for(t=0,n=C.X.length;t<n;t++)if(t===C.V||t===C.A1||t%h==0){var I=new ZC.DS(C);I.append(C.BR.o),I.GJ=C.K+"-item "+C.A.K+"-scale-item zc-scale-item",I.K=C.A.K+"-"+C.BC.replace(/\-/g,"_")+"-item_"+m+"_"+t;var x=C.FO(t);if(I.AR=x,I.Z=I.C6=C.H.usc()?C.H.mc():ZC.AK(C.A.K+"-scales-ml-0-c"),I.parse(),"auto"===I.o.angle&&(I.AA=C.DG-C.EG/2+t*b+90),I.JE=e,I.E7=C.BR.E7,I.DE()&&I.parse(),I.AM){I.F=I.KK;var y,w=1.15*Math.sqrt(I.I*I.I/4+I.F*I.F/4);switch(C.BR.o.placement){case"inner":y=ZC.AO.BK(K,F,v+C.BR.DR-w-5+p,C.DG-C.EG/2+t*b);break;default:y=ZC.AO.BK(K,F,v+C.BR.DR+w+p,C.DG-C.EG/2+t*b)}I.iX=y[0]-I.I/2,I.iY=y[1]-I.F/2,I.paint(),I.EL(),null===ZC._n_(C.o.tooltip)&&I.K5||(null!==ZC._n_(C.o.tooltip)&&(C.o.tooltip.text=C.o.tooltip.text||"%scale-value"),X.push(ZC.AP.O1(C.A.K,I)))}}X.length>0&&ZC.AK(C.A.A.K+"-map")&&(ZC.AK(C.A.A.K+"-map").innerHTML+=X.join(""))}}}},paint_:function(){var e=this,i=e.A.BN("scale-"+e.L);i||(i=e.A.BN("scale"));for(var t=0;t<i.X.length;t++){var n=t%i.GX,a=Math.floor(t/i.GX),l=i.iX+n*i.GH+i.GH/2+i.BJ,o=i.iY+a*i.G8+i.G8/2+i.BH;if(e.Q9){var r=new ZC.DW(e);r.append(e.Q9.o),r.Z=r.C6=e.H.usc()?e.H.mc("top"):ZC.AK(e.A.K+"-scales-ml-0-c"),r.K=e.K+"-"+t+"-center",r.iX=l,r.iY=o,r.o.type=r.o.type||"circle",r.parse(),r.AM&&r.paint()}}}}),ZC.A7S=ZC.A86.C7({$i:function(e){this.b(e);var i=this;i.DG=0,i.CW="star",i.DL=!1},parse:function(){var e=this;e.b(),e.assign_a([["aspect","CW"],["ref-angle","DG","i"],["ranged","DL","b"]])},A7I:function(){var e=this,i=ZC.BQ(e.X.length,e.BX.length);e.EE=ZC.CY(30,i)},A9L:function(e){this.b(e)},clear:function(){},build:function(){this.b()},A77:function(e,i,t){var n=this,a=n.A.BN("scale"),l=a.iX+a.I/2,o=a.iY+a.F/2,r=n.A.BN("scale-v");if(t){var s=n.DG+n.EG*(e-n.B4)/(n.BL-n.B4);return ZC.AO.BK(l,o,i+r.A5,s)}var A=n.EG/(n.X.length-(360===n.EG||n.DL?0:1));return ZC.AO.BK(l,o,i+r.A5,n.DG+e*A)},I4:function(e){var i=this,t=i.A.BN("scale"),n=ZC.CY(t.I/2,t.F/2)*t.JM;return i.A77(e,n)},B2:function(e){var i=this,t=ZC.AV(i.X,e);-1===t&&(t=0);var n=i.A.BN("scale"),a=ZC.CY(n.I/2,n.F/2)*n.JM;return i.A77(t,a)},paint:function(){var e,i,t,n,a,l,o,r,s=this;if(s.AM&&0!==s.X.length){s.b();var A=ZC.BQ(1,Math.floor((s.A1-s.V)/(s.LY-1))),C=ZC.BQ(1,Math.floor((s.A1-s.V)/(s.EE-1)));e=ZC.Q.E9(s.H.usc()?s.H.K+"-main-c":s.A.K+"-scales-ml-0-c",s.H.AC),i=ZC.Q.E9(s.H.usc()?s.H.K+"-main-c":s.A.K+"-scales-bl-0-c",s.H.AC);var c=ZC._i_(s.IO.o.size||8),u=0,p=s.A.BN("scale"),Z=ZC.CY(p.I/2,p.F/2)*p.JM,h=s.A.BN("scale-v"),d=p.iX+p.I/2,f=p.iY+p.F/2,_=s.EG/(s.X.length-(360===s.EG||s.DL?0:1));if(s.D5.AM){if(s.D5.o.items&&s.D5.o.items.length>0){var g=0;for(t=0,n=s.X.length-(360===s.EG||s.DL?0:1);t<n;t+=A){if(r=s.DG+t*_,"circle"===s.CW){var v=new ZC.DW(s);a=g%s.D5.o.items.length,v.append(s.D5.o.items[a]),v.Z=s.H.usc()?s.H.mc():ZC.AK(s.A.K+"-scales-bl-0-c"),v.iX=d,v.iY=f,v.o.type="pie",v.o.size=Z,v.CN=h.A5,v.B3=r,v.BI=r+A*_,v.parse(),v.paint()}else{var b=new ZC.DW(s);a=g%s.D5.o.items.length,b.o=s.D5.o.items[a],b.Z=s.H.usc()?s.H.mc():ZC.AK(s.A.K+"-scales-bl-0-c"),b.B0=0,b.AT=0,b.EX=0,b.G6=0,(l=[]).push(ZC.AO.BK(d,f,h.A5,r),ZC.AO.BK(d,f,Z,r),ZC.AO.BK(d,f,Z,r+A*_),ZC.AO.BK(d,f,h.A5,r+A*_)),b.D=l,b.parse();var m=s.A.P;b.D1=[m.iX,m.iY,m.iX+m.I,m.iY+m.F],b.paint()}g++}}if(s.D5.B0>0)for(t=0,n=s.X.length+(s.DL?1:0);t<n;t+=A)r=s.DG+t*_,(o=new ZC.D0(s)).copy(s.D5),o.K=s.K+"-guide-"+t,o.JE=function(e){return e=e.replace(/(%i)|(%scale-index)/g,t),e=e.replace(/(%v)|(%scale-value)/g,null!==ZC._n_(s.X[t])?s.X[t]:""),e=e.replace(/(%l)|(%scale-label)/g,null!==ZC._n_(s.BX[t])?s.BX[t]:"")},o.E7=s.D5.E7,o.DE()&&o.parse(),(l=[]).push(ZC.AO.BK(d,f,Z,r),ZC.AO.BK(d,f,h.A5,r)),ZC.CS.paint(i,o,l)}if(s.IO.AM){switch(s.IO.o.placement){case"inner":break;case"outer":u+=c;break;default:u+=c/2}for(l=[],t=0,n=s.X.length+(s.DL?1:0);t<n;t+=A){switch(r=s.DG+t*_,(o=new ZC.D0(s)).copy(s.IO),o.o.placement){case"inner":l=[ZC.AO.BK(d,f,Z-c,r),ZC.AO.BK(d,f,Z,r)];break;case"outer":l=[ZC.AO.BK(d,f,Z,r),ZC.AO.BK(d,f,Z+c,r)];break;default:l=[ZC.AO.BK(d,f,Z-c/2,r),ZC.AO.BK(d,f,Z+c/2,r)]}for(var B=ZC._i_(o.o["offset-x"]||"0"),E=ZC._i_(o.o["offset-y"]||"0"),K=0;K<l.length;K++)l[K]&&(l[K][0]+=B,l[K][1]+=E);o.K=s.K+"-tick-"+t,ZC.CS.paint(e,o,l)}}var F,D,X=[];if(s.BR.AM){for(t=0,n=s.X.length;t<n;t+=C)!function(e){(s.BR.E7.length>0||0===e)&&(F=new ZC.DS(s)),F.copy(s.BR),F.GJ=s.K+"-item "+s.A.K+"-scale-item zc-scale-item",F.K=s.A.K+"-"+s.BC.replace(/\-/g,"_")+"-item_"+e;var i=s.FO(e);if(null===ZC._n_(s.LP)||-1!==ZC.AV(s.LP,i)){F.AR=i,F.Z=F.C6=s.H.usc()?s.H.mc():ZC.AK(s.A.K+"-scales-ml-0-c"),F.parse(),F.JE=function(i){return i=i.replace(/(%i)|(%scale-index)/g,e),i=i.replace(/(%v)|(%scale-value)/g,null!==ZC._n_(s.X[e])?s.X[e]:""),i=i.replace(/(%l)|(%scale-label)/g,null!==ZC._n_(s.BX[e])?s.BX[e]:"")},F.E7=s.BR.E7,F.DE()&&F.parse();var t=ZC.IG(F.DR,!0);if(t>-1&&t<1&&(t*=Z),r=s.DG+e*_+(s.DL?_/2:0),s.BR.o["auto-align"]){var n=1.25;1-ZC._a_(ZC.EF(r))>.7&&(n=2.5*(1-ZC._a_(ZC.EF(r))));var a=(1-ZC._a_(ZC.EF(r)))*F.DK*n;D=ZC.AO.BK(d,f,Z+t+u+a,r),ZC.EF(r)>0?(F.iX=D[0],F.iY=D[1]-F.F/2):(F.iX=D[0]-F.I,F.iY=D[1]-F.F/2)}else s.BR.o["auto-rotate"]?(D=ZC.AO.BK(d,f,Z+t+u+F.F/2,r),F.iX=D[0]-F.I/2,F.iY=D[1]-F.F/2,F.AA=r+90):(D=ZC.AO.BK(d,f,Z+t+u+ZC._a_(10*ZC.EO(r))+ZC._a_(F.I/2*ZC.EF(r)),r),F.iX=D[0]-F.I/2,F.iY=D[1]-F.F/2);F.AM&&(F.paint(),F.EL(),null===ZC._n_(s.o.tooltip)&&F.K5||(null!==ZC._n_(s.o.tooltip)&&(s.o.tooltip.text=s.o.tooltip.text||"%scale-value"),X.push(ZC.AP.O1(s.A.K,F))))}}(t);X.length>0&&ZC.AK(s.A.A.K+"-map")&&(ZC.AK(s.A.A.K+"-map").innerHTML+=X.join(""))}}}}),ZC.A7M=ZC.Z4.C7({$i:function(e){this.b(e)},parse:function(){this.b()},IW:function(){var e=this,i=e.A.BN("scale"),t=ZC.CY(i.I/2,i.F/2)*i.JM;e.A9=(t-e.A5-e.BW)/(e.A1-e.V)},A9L:function(e){var i=this;i.b(e),i.IW()},A7I:function(){var e=this,i=e.A.BN("scale"),t=ZC.CY(i.I/2,i.F/2)*i.JM;e.EE=ZC.BQ(2,ZC._i_((t-e.A5-e.BW)/20))},TZ:function(e){var i=this,t=i.A.BN("scale"),n=ZC.CY(t.I/2,t.F/2)*t.JM,a=i.BL-i.B4,l=(n-i.A5-i.BW)/a;return(e-i.B4)*l},B2:function(e){var i=this,t=i.TZ(e),n=i.A.BN("scale-k"),a=i.A.BN("scale"),l=a.iX+a.I/2+a.BJ,o=a.iY+a.F/2+a.BH;return ZC.AO.BK(l,o,t,n.DG)},clear:function(){},build:function(){this.b()},paint:function(){function e(e){return e=e.replace(/(%i)|(%scale-index)/g,l),e=e.replace(/(%v)|(%scale-value)/g,null!==ZC._n_(C.X[l])?C.X[l]:""),e=e.replace(/(%l)|(%scale-label)/g,null!==ZC._n_(C.BX[l])?C.BX[l]:"")}function i(e){return e=e.replace(/(%c)|(%scale-position)/g,C.GP),e=e.replace(/(%i)|(%scale-index)/g,C.K0),e=e.replace(/(%v)|(%scale-value)/g,null!==ZC._n_(C.X[C.K0])?C.X[C.K0]:""),e=e.replace(/(%l)|(%scale-label)/g,null!==ZC._n_(C.BX[C.K0])?C.BX[C.K0]:"")}function t(e){C.K0=e,(y=new ZC.DS(C)).copy(C.BR),y.K=C.A.K+"-"+C.BC.replace(/\-/g,"_")+"-item_"+e,y.GJ=C.K+"-item "+C.A.K+"-scale-item zc-scale-item";var t=C.FO(e);if(y.AR=t,null===ZC._n_(C.LP)||-1!==ZC.AV(C.LP,t)){y.Z=y.C6=C.H.usc()?C.H.mc():ZC.AK(C.A.K+"-scales-fl-0-c"),y.parse(),y.JE=i,y.DE()&&y.parse();var n=ZC.AO.BK(f,_,C.A5+e*C.A9,c.DG);switch(y.F=y.KK,y.I=y.NH,c.DG%180==0?(y.iX=n[0]-y.I/2,y.iY=n[1]):(y.iX=n[0],y.iY=n[1]-y.F/2),C.IO.o.placement){case"inner":break;case"outer":c.DG%180==0?y.iY+=u:y.iX+=u;break;default:c.DG%180==0?y.iY+=u/2:y.iX+=u/2}y.AM&&(y.paint(),y.EL(),null===ZC._n_(C.o.tooltip)&&y.K5||(null!==ZC._n_(C.o.tooltip)&&(C.o.tooltip.text=C.o.tooltip.text||"%scale-value"),w.push(ZC.AP.O1(C.A.K,y))))}}var n,a,l,o,r,s,A,C=this;if(C.AM&&0!==C.X.length){C.b(),n=ZC.Q.E9(C.H.usc()?C.H.K+"-main-c":C.A.K+"-scales-ml-0-c",C.H.AC),a=ZC.Q.E9(C.H.usc()?C.H.K+"-main-c":C.A.K+"-scales-bl-0-c",C.H.AC);var c=C.A.BN("scale-k"),u=ZC._i_(C.IO.o.size||8),p=Math.ceil((C.A1-C.V)/(C.EE-1)),Z=Math.ceil((C.A1-C.V)/(C.LY-1)),h=C.A.BN("scale"),d=ZC.CY(h.I/2,h.F/2)*h.JM,f=h.iX+h.I/2+h.BJ,_=h.iY+h.F/2+h.BH,g=c.EG/(c.X.length-(360===c.EG||c.DL?0:1));if(C.D5.AM){if(C.D5.o.items&&C.D5.o.items.length>0)for(l=0,o=C.X.length;l<o-1;l++){var v=l%C.D5.o.items.length;if("circle"===c.CW){var b=new ZC.DW(C);b.Z=C.H.usc()?C.H.mc():ZC.AK(C.A.K+"-scales-bl-0-c"),b.append(C.D5.o.items[v]),b.o.type="pie",b.o.size=C.A5+(l+1)*C.A9,b.iX=f,b.iY=_,b.CN=C.A5+l*C.A9,360===c.EG?(b.B3=0,b.BI=360):(b.B3=c.DG,b.BI=c.DG+c.EG),b.parse(),b.paint()}else{var m=new ZC.DW(C);for(m.append(C.D5.o.items[v]),m.Z=C.H.usc()?C.H.mc():ZC.AK(C.A.K+"-scales-bl-0-c"),A=[],r=0,s=c.X.length;r<s;r++)A.push(ZC.AO.BK(f,_,C.A5+l*C.A9,c.DG+r*g));for(360===c.EG&&A.push(ZC.AO.BK(f,_,C.A5+l*C.A9,c.DG),ZC.AO.BK(f,_,C.A5+(l+1)*C.A9,c.DG)),r=c.X.length-1;r>=0;r--)A.push(ZC.AO.BK(f,_,C.A5+(l+1)*C.A9,c.DG+r*g));m.D=A,m.parse(),m.B0=0,m.AT=0,m.EX=0,m.G6=0;var B=C.A.P;m.D1=[B.iX,B.iY,B.iX+B.I,B.iY+B.F],m.paint()}}if(C.D5.B0>0)for(l=0,o=C.X.length;l<o;l++)if(l===C.V||l===C.A1||l%Z==0)if("circle"===c.CW){var E=new ZC.DW(C);E.Z=C.H.usc()?C.H.mc():ZC.AK(C.A.K+"-scales-bl-0-c"),E.append(C.D5.o);var K=c.EG;360===K&&(K=359),E.append({type:"arc",size:C.A5+l*C.A9,angleStart:c.DG-.25,angleEnd:c.DG+K+.25}),E.K=C.K+"-guide-"+l,E.iX=f,E.iY=_,E.parse(),E.JE=e,E.E7=C.D5.E7,E.DE()&&E.parse(),E.paint()}else{var F=new ZC.D0(C);for(F.copy(C.D5),F.K=C.K+"-guide-"+l,F.JE=e,F.E7=C.D5.E7,F.DE()&&F.parse(),A=[],r=0,s=c.X.length-(360===c.EG||c.DL?0:1);r<s;r++)A.push(ZC.AO.BK(f,_,C.A5+l*C.A9,c.DG+r*g),ZC.AO.BK(f,_,C.A5+l*C.A9,c.DG+(r+1)*g));ZC.CS.paint(a,F,A)}}if(C.OW.AM&&C.OW.B0>0&&((A=[]).push(ZC.AO.BK(f,_,C.A5,c.DG),ZC.AO.BK(f,_,d-C.BW,c.DG)),ZC.CS.paint(n,C.OW,A)),C.IO.AM){switch(C.IO.o.placement){case"inner":break;case"outer":u;break;default:u/2}for(A=[],l=0,o=C.X.length;l<o;l++)if(l===C.V||l===C.A1||l%Z==0){var D=ZC.AO.BK(f,_,C.A5+l*C.A9,c.DG);switch(C.IO.o.placement){case"inner":A.push([D[0],D[1]]),c.DG%180==0?A.push([D[0],D[1]-u]):A.push([D[0]-u,D[1]]),A.push(null);break;case"outer":A.push([D[0],D[1]]),c.DG%180==0?A.push([D[0],D[1]+u]):A.push([D[0]+u,D[1]]),A.push(null);break;default:c.DG%180==0?A.push([D[0],D[1]-u/2],[D[0],D[1]+u/2]):A.push([D[0]-u/2,D[1]],[D[0]+u/2,D[1]]),A.push(null)}}for(var X=ZC._i_(C.IO.o["offset-x"]||"0"),I=ZC._i_(C.IO.o["offset-y"]||"0"),x=0;x<A.length;x++)A[x]&&(A[x][0]+=X,A[x][1]+=I);ZC.CS.paint(n,C.IO,A)}var y,w;if(w=[],C.X.length>0&&C.BR.AM)for(C.GP=0,t(C.V),C.GP=C.A1-C.V,t(C.A1),C.GP=1,l=C.V+1;l<C.A1;l++)l%p==0&&t(l);w.length>0&&ZC.AK(C.A.A.K+"-map")&&(ZC.AK(C.A.A.K+"-map").innerHTML+=w.join(""))}}}),ZC.A8M=ZC.DW.C7({$i:function(e){this.b(e);var i=this;i.C5=.95,i.L=0,i.AF=null,i.M=null,i.F6=null,i.A5S=!1,i.B8="bottom",i.A5=0,i.BW=0,i.ME="normal",i.O0="normal",i.PG=[5,5],i.A07=[0,0],i.Y9=""},parse:function(){this.b();var e,i=this;i.assign_a([["type","AF"],["value-range","A5S","b"],["offset-start","A5","i"],["offset-end","BW","i"],["placement","B8"],["pair-scale","Y9"],["label-placement","ME"],["label-alignment","O0"],["range","F6"]]),null===ZC._n_(i.o.alpha)&&(i.o.alpha="area"===i.AF?.25:.95),null!==ZC._n_(e=i.o["label-tolerance"])&&("object"==typeof e&&e.length?(i.PG[0]=ZC._i_(e[0]||"5"),i.PG[1]=ZC._i_(e[1]||"5")):i.PG[0]=i.PG[1]=ZC._i_(e||"5")),i.assign_a([["alpha","C5","f",0,1]]),null===ZC._n_(e=i.o.label)&&null===ZC._n_(i.o.text)||(i.M=new ZC.DS(i),i.A.A.A.B7.load(i.M.o,["("+i.A.AF+").SCALE.marker.label"]),null!==ZC._n_(i.o.text)&&i.M.append({text:i.o.text}),i.M.append(e),i.M.parse(),i.A07=[i.M.BJ,i.M.BH])},paint:function(){var e=this;if(e.F6)if(-1===e.A.BC.indexOf("scale-r")){var i,t,n,a,l,o,r;if(e.AM){var s=e.A,A=e.A.A.P.AT,C=s.A.K+"-scales-"+("top"===e.B8?"f":"b")+"l-0-c";e.Z=e.C6=ZC.AK(s.H.usc()?s.H.K+"-main-c":C),i=ZC.Q.E9(e.Z,s.H.AC);var c,u,p,Z;l=[];var h,d=0,f=0;e.BJ>-1&&e.BJ<1&&(e.BJ=Math.ceil(e.BJ*s.A9)),e.BH>-1&&e.BH<1&&(e.BH=Math.ceil(e.BH*s.A9)),e.M&&(e.M.Z=s.H.usc()?s.H.mc():ZC.AK(s.A.K+"-scales-ml-0-c"),e.M.K=e.A.A.K+"-"+e.A.BC.replace(/\-/g,"_")+"-marker_"+e.L,e.M.GJ=e.A.K+"-marker-label "+e.A.A.K+"-scale-marker-label zc-scale-marker-label");var _,g=function(i,t){var n;return-1!==(t+"").indexOf("%")?(n=ZC._f_(t.replace("%","")),n="k"===i.AF?ZC._i_(n*(i.E1-i.DD)/100):n*(i.GY-i.FU)/100):n=t,e.A5S||"v"===i.AF?i.B2(n):i.I4(n)};if("poly"===e.AF){var v,b,m,B;for(_=e.A.A,"k"===s.AF?(v=s,b=""===e.Y9?_.BT("v")[0]:_.BN(e.Y9)||_.BT("v")[0]):"v"===s.AF&&(b=s,v=""===e.Y9?_.BT("k")[0]:_.BN(e.Y9)||_.BT("k")[0]),o=0,r=e.F6.length;o<r;o++)m=g(v,e.F6[o][0]),B=b.B2(e.F6[o][1]),l.push([m,B]),d+=m,f+=B;if(d/=l.length,f/=l.length,l.length>=3){if(l[0].join("/")!==l[l.length-1].join("/")&&l.push([l[0][0],l[0][1]]),s.A.AJ["3d"])for(s.A.NW(),t=0,n=l.length;t<n;t++)a=new ZC.CF(s.A,l[t][0]-ZC.AN.E3,l[t][1]-ZC.AN.E2,ZC.AN.FS),l[t][0]=a.EB[0],l[t][1]=a.EB[1];(h=new ZC.DW(e.A)).K=s.K+"-marker-"+e.L,h.Z=h.C6=s.H.usc()?s.H.mc():ZC.AK(C),h.copy(e),h.B0=0,h.AT=0,h.EX=0,h.G6=0,h.D=l,h.parse(),h.paint()}}else if("line"===e.AF){if(-1!==s.BC.indexOf("scale-x")?1===e.F6.length?c=u=g(s,e.F6[0]):2===e.F6.length&&(c=g(s,e.F6[0]),u=g(s,e.F6[1])):-1!==s.BC.indexOf("scale-y")&&(1===e.F6.length?c=u=g(s,e.F6[0]):2===e.F6.length&&(c=g(s,e.F6[0]),u=g(s,e.F6[1]))),-1!==s.BC.indexOf("scale-x")&&s.CQ||-1!==s.BC.indexOf("scale-y")&&!s.CQ?(l.push([s.iX+e.A5,c],[s.iX+s.I-e.BW,u]),e.M&&("opposite"===e.ME?e.M.iX=s.iX+s.I-e.M.I-e.BW:e.M.iX=s.iX+e.A5,"opposite"===e.ME?e.M.iY=u-(s.AU?0:e.M.F):e.M.iY=c-(s.AU?0:e.M.F))):(l.push([c,s.iY+s.F-e.A5],[u,s.iY+e.BW]),e.M&&("opposite"===e.ME?e.M.iX=u-(s.AU?e.M.I:0):e.M.iX=c-(s.AU?e.M.I:0),"opposite"===e.ME?e.M.iY=s.iY+e.M.I-e.M.F+e.BW:e.M.iY=s.iY+s.F-e.M.F-e.A5)),s.A.AJ["3d"])for(s.A.NW(),t=0,n=l.length;t<n;t++)a=new ZC.CF(s.A,l[t][0]-ZC.AN.E3,l[t][1]-ZC.AN.E2,ZC.AN.FS),l[t][0]=a.EB[0],l[t][1]=a.EB[1];2===l.length&&(ZC.CS.setup(i,e),ZC.CS.paint(i,e,l))}else if("area"===e.AF&&(-1!==s.BC.indexOf("scale-x")?2===e.F6.length?(c=p=g(s,e.F6[0]),u=Z=g(s,e.F6[1])):4===e.F6.length&&(c=g(s,e.F6[0]),u=g(s,e.F6[1]),p=g(s,e.F6[2]),Z=g(s,e.F6[3])):-1!==s.BC.indexOf("scale-y")&&(2===e.F6.length?(c=p=s.B2(e.F6[0]),u=Z=s.B2(e.F6[1])):4===e.F6.length&&(c=s.B2(e.F6[0]),u=s.B2(e.F6[1]),p=s.B2(e.F6[2]),Z=s.B2(e.F6[3]))),u=c===u?u+1:u,Z=p===Z?Z+1:Z,-1!==s.BC.indexOf("scale-x")&&s.CQ||-1!==s.BC.indexOf("scale-y")&&!s.CQ?(l.push([s.iX+A,c],[s.iX+s.I-A,p],[s.iX+s.I-A,Z],[s.iX+A,u],[s.iX+A,c]),e.M&&("opposite"===e.ME?e.M.iX=s.iX+s.I-e.M.I-e.BW:e.M.iX=s.iX+e.A5,"opposite"===e.ME?e.M.iY=u-(s.AU?0:e.M.F):e.M.iY=c-(s.AU?0:e.M.F))):(l.push([c,s.iY+s.F-A],[p,s.iY+A],[Z,s.iY+A],[u,s.iY+s.F-A],[c,s.iY+s.F-A]),e.M&&("opposite"===e.ME?e.M.iX=u-(s.AU?e.M.I:0):e.M.iX=c-(s.AU?e.M.I:0),"opposite"===e.ME?e.M.iY=s.iY+e.M.I-e.M.F+e.BW:e.M.iY=s.iY+s.F-e.M.F-e.A5)),l.length>=4)){if(s.A.AJ["3d"])for(s.A.NW(),t=0,n=l.length;t<n;t++)a=new ZC.CF(s.A,l[t][0]-ZC.AN.E3,l[t][1]-ZC.AN.E2,ZC.AN.FS),l[t][0]=a.EB[0],l[t][1]=a.EB[1];(h=new ZC.DW(e.A)).K=s.K+"-marker-"+e.L,h.Z=h.C6=s.H.usc()?s.H.mc():ZC.AK(C),h.copy(e),h.B0=0,h.AT=0,h.EX=0,h.G6=0,h.D=l,h.parse(),h.BJ=e.BJ,h.BH=e.BH,h.paint()}var E=!0,K=s.A.P;2===l.length&&(-1!==s.BC.indexOf("scale-x")&&s.CQ||-1!==s.BC.indexOf("scale-y")&&!s.CQ?ZC.DT(l[0][1],K.iY-2,K.iY+K.F+2)&&ZC.DT(l[1][1],K.iY-2,K.iY+K.F+2)||(E=!1):ZC.DT(l[0][0],K.iX-2,K.iX+K.I+2)&&ZC.DT(l[1][0],K.iX-2,K.iX+K.I+2)||(E=!1));var F=e.O0;if(e.M&&E&&("poly"===e.AF?(e.M.iX=ZC._i_(d-e.M.I/2),e.M.iY=ZC._i_(f-e.M.F/2)):("auto"===e.O0&&(F=-1!==s.BC.indexOf("scale-x")&&!s.CQ||-1!==s.BC.indexOf("scale-y")&&s.CQ?c<s.iX+s.I/2?"normal":"opposite":c>s.iY+s.F/2?"normal":"opposite"),e.M.BJ=e.M.BH=0,(-1!==s.BC.indexOf("scale-x")&&!s.CQ||-1!==s.BC.indexOf("scale-y")&&s.CQ)&&null===ZC._n_(e.M.o.angle)&&(e.M.AA=270),-1!==s.BC.indexOf("scale-x")&&!s.CQ||-1!==s.BC.indexOf("scale-y")&&s.CQ?(e.M.AA%180==90&&(e.M.BJ-=(s.AU?-1:1)*(e.M.I/2-e.M.F/2),e.M.BH-=e.M.I/2-e.M.F/2,"opposite"===e.ME&&(e.M.BH=-e.M.I/2+e.M.F/2),"opposite"===F&&(e.M.BJ-=e.M.F)),e.M.AA%180==0&&("opposite"===e.ME&&(e.M.BH=-e.M.I+e.M.F),"opposite"===F&&(e.M.BJ-=e.M.I))):(e.M.AA%180==90&&(e.M.BJ-=e.M.I/2-e.M.F/2,e.M.BH-=(s.AU?-1:1)*(e.M.I/2-e.M.F/2),"opposite"===e.ME&&(e.M.BJ=e.M.I/2-e.M.F/2),"opposite"===F&&(e.M.BH+=e.M.I)),e.M.AA%180==0&&"opposite"===F&&(e.M.BH+=e.M.F)),e.M.BJ+=e.A07[0]+e.BJ,e.M.BH+=e.A07[1]+e.BH),s.A.AJ["3d"]&&(a=new ZC.CF(s.A,e.M.iX-ZC.AN.E3,e.M.iY-ZC.AN.E2,ZC.AN.FS),e.M.iX=a.EB[0],e.M.iY=a.EB[1]),ZC.DT(e.M.iX+e.M.BJ+(e.M.AA%180==0?e.M.I/2:e.M.F/2),e.A.A.P.iX-e.PG[0],e.A.A.P.iX+e.A.A.P.I+e.PG[0])&&ZC.DT(e.M.iY+e.M.BH+(e.M.AA%180==0?e.M.F/2:e.M.I/2),e.A.A.P.iY-e.PG[1],e.A.A.P.iY+e.A.A.P.F+e.PG[1])&&(e.M.paint(),e.M.EL(),!e.M.K5&&"normal"===zingchart.OBJECTMODE&&(s.E["marker_text_"+e.L]=e.M.AR,_=e.A.A,ZC.AK(_.A.K+"-map"))))){var D=ZC.AP.O1(_.K,e.M);ZC.AK(_.A.K+"-map").innerHTML=ZC.AK(_.A.K+"-map").innerHTML+D}}}else e.A.paintMarker(e)}}),ZC.A24=ZC.C8.C7({$i:function(e){var i=this;i.LT=null,i.A5A=0,i.OV=[],i.BC=e,i.A32=!0},add:function(e){var i=this;i.OV.push(e),e.JX=i,e.LT=i.LT,e.BY.TL=!0,e.WV=i.OV.length-1,i.A32=!1}}),ZC.EA=ZC.C8.C7({$i:function(e,i,t,n,a,l){var o=this;o.LT=null,o.BY=e,o.AW=null,o.A46=0,o.II=null,o.O=i||{},o.A4A=t||500,o.X3=n||-1,o.ZZ=null,o.SY=null,o.O6=null,null!==ZC._n_(l)&&(o.SY=l),o.A4C=ZC.EA.linear,null!==ZC._n_(a)&&""!==a&&(o.A4C=a),o.ADJ={},o.C4={},o.ACN=[],o.R8=ZC._i_(o.A4A/ZC.PB.TW),o.R8>100&&(o.R8=100),(ZC.vml||ZC.mobile)&&(o.R8=ZC._i_(o.R8/4)),o.R8<5&&(o.R8=5);for(var r in o.O)null!==ZC._n_(ZC.EA.GK[r])?o.C4[r]=o.BY[ZC.EA.GK[r]]:o.C4[r]=o.BY[r];o.W=0,o.JX=null,o.WV=-1},status:function(){var e=this;return e.W+1>e.R8?0:1},step:function(){var e,i,t,n,a,l,o=this,r=1,s=o.LT.C.H.AC;if(o.W++,o.W>o.R8&&(o.W===o.R8+1&&-1!==o.WV&&(o.JX.A5A++,o.JX.A5A===o.JX.OV.length&&(o.JX.A32=!0)),r=0),r){var A={};if(o.W===o.R8)A=o.O,o.A46=1;else{o.A46=o.A4C(o.W,0,1,o.R8);for(var C in o.O)switch(C){case"points":var c=[];for(a=0,l=o.O[C].length;a<l;a++)if(null!==ZC._n_(o.C4[C][a])){c[a]=[];for(var u=0,p=o.O[C][a].length;u<p;u++)c[a][u]=o.A4C(o.W,o.C4[C][a][u],o.O[C][a][u]-o.C4[C][a][u],o.R8)}A[C]=c;break;case"lineColor":case"borderColor":case"backgroundColor1":case"backgroundColor2":var Z=o.C4[C].replace("#",""),h=ZC.AP.G5(o.O[C]).replace("#",""),d=ZC.QE(Z.slice(0,2)),f=ZC.QE(Z.slice(2,4)),_=ZC.QE(Z.slice(4,6)),g=ZC.QE(h.slice(0,2)),v=ZC.QE(h.slice(2,4)),b=ZC.QE(h.slice(4,6)),m=ZC.OS(ZC._i_(o.A4C(o.W,d,g-d,o.R8)));1===m.length&&(m="0"+m);var B=ZC.OS(ZC._i_(o.A4C(o.W,f,v-f,o.R8)));1===B.length&&(B="0"+B);var E=ZC.OS(ZC._i_(o.A4C(o.W,_,b-_,o.R8)));1===E.length&&(E="0"+E),A[C]="#"+m+B+E;break;default:A[C]=o.A4C(o.W,o.C4[C],o.O[C]-o.C4[C],o.R8)}}if(o.BY.append(A),o.BY.TL=!0,o.BY.parse(),o.AW&&(null!==ZC._n_(e=o.BY.E["bound-1"])&&(o.BY.D1[1]=e),null!==ZC._n_(e=o.BY.E["bound-3"])&&(o.BY.D1[3]=e),"vml"===s&&1===o.W&&("undefined"!=typeof o.AW.A.HQ?o.BY.E.opacity2=o.AW.A.HQ:o.BY.E.opacity2=o.AW.A.C5),o.AW.H&&(o.AW.H.E[o.AW.K+"-bounds"]=[o.AW.iX,o.AW.iY,o.AW.iX+o.AW.I,o.AW.iY+o.AW.F])),o.ZZ)try{o.ZZ(o.BY,A)}catch(Y){}if(o.AW){var K={id:o.AW.H.K,graphid:o.AW.C.K,plotindex:o.AW.A.L,nodeindex:o.AW.L,stage:o.A46,value:o.AW.AD*o.A46};ZC.AP.BZ("animation_step",o.AW.H,K)}}if(o.AW){if(1===o.W||"canvas"===s)-1!==ZC.AV(["svg","vml"],s)?0===ZC.A4("#"+o.BY.K+"-path").length&&o.paint():o.paint();else if(o.W<=o.R8){switch(s){case"svg":o.BY.WP(!0);break;case"vml":o.BY.WQ(null,!0)}o.BY.VI&&o.BY.VI(),"vml"===s&&/\-plotset\-plot-\d+\-node\-\d+\-area/.test(o.BY.K)&&(o.BY.B0=0),i=null,"undefined"!=typeof o.BY.DQ&&"box"===o.BY.DQ&&(i=o.BY.B0,o.BY.B0=o.BY.AT);var F=!1;if("svg"===s&&ZC.AK(o.BY.K+"-path")&&"rect"===ZC.AK(o.BY.K+"-path").tagName&&(F=!0),F)t=[],n=[];else if(t=ZC.Q.A2O(o.BY.D,s,o.BY,!1,!0),o.BY.M4){var D=ZC.Q._sh_(o.BY.D,o.BY);n=ZC.Q.A2O(D,s,o.BY,!1,!0)}null!==ZC._n_(i)&&(o.BY.B0=i);var X=o.BY.C5,I=o.BY.NQ,x=o.BY.SU,y=o.BY.JP,w=o.BY.AI;switch(s){case"svg":ZC.A4("#"+o.BY.K+"-path").attr("d",t.join(" ")).attr("stroke-opacity",I).attr("fill-opacity",X),o.BY.M4&&ZC.A4("#"+o.BY.K+"-sh-path").attr("d",n.join(" ")).attr("stroke-opacity",I*x).attr("fill-opacity",X*x),F&&(ZC.A4("#"+o.BY.K+"-path").attr("x",o.BY.iX).attr("y",o.BY.iY).attr("width",ZC.BQ(0,o.BY.I)).attr("height",ZC.BQ(0,o.BY.F)),o.BY.M4&&ZC.A4("#"+o.BY.K+"-sh-path").attr("x",o.BY.iX+y*ZC.EF(o.BY.OE)).attr("y",o.BY.iY+y*ZC.EO(o.BY.OE)).attr("width",ZC.BQ(0,o.BY.I)).attr("height",ZC.BQ(0,o.BY.F))),ZC.A4("#"+o.BY.K+"-circle").attr("stroke-opacity",I).attr("cx",o.BY.iX).attr("cy",o.BY.iY).attr("r",w).attr("fill-opacity",X),o.BY.M4&&ZC.A4("#"+o.BY.K+"-sh-circle").attr("stroke-opacity",I*x).attr("cx",o.BY.iX+y).attr("r",w).attr("cy",o.BY.iY+y).attr("fill-opacity",X*x),""!==o.BY.D9&&ZC.A4("#"+o.BY.K+"-path-imgfill").attr("stroke-opacity",I).attr("fill-opacity",X),ZC.A4("#"+o.BY.K+"-goal-path").remove();break;case"vml":ZC.A4("#"+o.BY.K+"-path").children().each(function(){this.v=t.join(" "),this.opacity=X}),o.BY.M4&&ZC.A4("#"+o.BY.K+"-sh-path").children().each(function(){this.v=n.join(" "),this.opacity=X*x}),ZC.A4("#"+o.BY.K+"-circle").children().each(function(){this.opacity=X}),ZC.A4("#"+o.BY.K+"-circle").each(function(){this.style.left=o.BY.iX-w+"px",this.style.top=o.BY.iY-w+"px",this.style.width=2*w+"px",this.style.height=2*w+"px"}),o.BY.M4&&(ZC.A4("#"+o.BY.K+"-sh-circle").children().each(function(){this.opacity=X*x}),ZC.A4("#"+o.BY.K+"-sh-circle").each(function(){this.style.left=o.BY.iX-w+y+"px",this.style.top=o.BY.iY-w+y+"px",this.style.width=2*w+"px",this.style.height=2*w+"px"})),ZC.A4("#"+o.BY.K+"-goal-path").remove()}}}else o.LT.C.PX=!0,o.LT.C.A0E(),o.LT.C.KF();return o.W===o.R8+1&&null!==ZC._n_(o.SY)&&o.SY(),r},paint:function(){var e=this;if(null!==ZC._n_(e.II)?ZC.CS.paint(e.II,e.BY,e.BY.D):e.BY.paint(),e.O6)try{1===e.A46&&e.O6()}catch(i){}}}),ZC.EA.GK={angleStart:"B3",angleEnd:"BI",slice:"CN",size:"AI",x:"iX",y:"iY",width:"I",height:"F",alpha:"C5",angle:"AA",fillAngle:"N8",points:"D",lineWidth:"B0",lineColor:"B9",borderWidth:"AT",borderColor:"BV",backgroundColor1:"A0",backgroundColor2:"AE"},ZC.EA.linear=function(e,i,t,n){return t*e/n+i},ZC.EA.backEaseOut=function(e,i,t,n){var a=(e/=n)*e;return i+t*(4*(a*e)+-9*a+6*e)},ZC.EA.elasticEaseOut=function(e,i,t,n){var a=(e/=n)*e,l=a*e;return i+t*(37.045*l*a+-116.2825*a*a+134.08*l+-68.59*a+14.7475*e)},ZC.EA.bounceEaseOut=function(e,i,t,n){return(e/=n)<1/2.75?t*(7.5625*e*e)+i:e<2/2.75?t*(7.5625*(e-=1.5/2.75)*e+.75)+i:e<2.5/2.75?t*(7.5625*(e-=2.25/2.75)*e+.9375)+i:t*(7.5625*(e-=2.625/2.75)*e+.984375)+i},ZC.EA.regularEaseOut=function(e,i,t,n){var a=(e/=n)*e;return i+t*(a*e+-3*a+3*e)},ZC.EA.strongEaseOut=function(e,i,t,n){var a=(e/=n)*e,l=a*e;return i+t*(l*a+-5*a*a+10*l+-10*a+5*e)},ZC.EA.RC=[ZC.EA.linear,ZC.EA.backEaseOut,ZC.EA.elasticEaseOut,ZC.EA.bounceEaseOut,ZC.EA.strongEaseOut,ZC.EA.regularEaseOut],ZC.ANIMATION={SLOW:4e3,FAST:1e3,LINEAR:0,BACK_EASE_OUT:1,ELASTIC_EASE_OUT:2,BOUNCE_EASE_OUT:3,STRONG_EASE_OUT:4,REGULAR_EASE_OUT:5,NO_SEQUENCE:0,BY_PLOT:1,BY_NODE:2,BY_PLOT_AND_NODE:3,FADE_IN:1,EXPAND_VERTICAL:2,EXPAND_TOP:3,EXPAND_BOTTOM:4,EXPAND_LEFT:5,EXPAND_RIGHT:6,EXPAND_HORIZONTAL:7,SLIDE_LEFT:8,SLIDE_RIGHT:9,SLIDE_TOP:10,SLIDE_BOTTOM:11,UNFOLD_HORIZONTAL:12,UNFOLD_VERTICAL:13,EXPAND:2,GROW:3,FLY_IN:4,UNFOLD:5},ZC.PB=ZC.C8.C7({$i:function(e){var i=this;i.C=e,i.RL=!1,i.C3=null,i.OV=[],i.PA={},i.onStop=null},A9W:function(e,i){var t=this;null===ZC._n_(t.PA[e.BC])&&(t.PA[e.BC]=e,e.LT=t,t.RL||(null!==ZC._n_(i)&&i>0?window.setTimeout(function(){t.start()},i+1):t.start()))},add:function(e){var i=this;e.LT=i,e.X3>0?(i.OV.push(e),window.setTimeout(function(){e.BY.TL=!0,i.RL||i.start()},e.X3+1)):(e.BY.TL=!0,i.OV.push(e),i.RL||i.start())},start:function(){var e=this;e.RL=!0,ZC.AP.BZ("animation_start",e.C.A,{id:e.C.A.K,graphid:e.C.K});var i=!0;!function t(){i||e.step(),i=!1,e.RL&&(e.C3=window.requestAnimFrame(t))}()},step:function(){var e,i=this,t=0;if(i.RL){for(var n=0,a=i.OV.length;n<a;n++)t+=i.OV[n].status();if("canvas"===i.C.H.AC)if(i.C.H.K5)null!==ZC._n_(e=ZC.AK(i.C.K+"-plots-bl-c"))&&e.getContext("2d").clearRect(i.C.iX,i.C.iY,i.C.I,i.C.F);else for(n=0,a=i.C.AY.A6.length;n<a;n++)for(var l=0;l<i.C.AY.A6[n].SO;l++)null!==ZC._n_(e=ZC.AK(i.C.K+"-plot-"+n+"-bl-"+l+"-c"))&&e.getContext("2d").clearRect(i.C.iX,i.C.iY,i.C.I,i.C.F);for(n=0,a=i.OV.length;n<a;n++)0===i.OV[n].step()&&(i.OV[n].BY.TL=!1);for(var o in i.PA)for(i.PA[o].A32||(t+=1),n=0,a=i.PA[o].OV.length;n<a;n++)i.PA[o].OV[n].WV===i.PA[o].A5A?0===i.PA[o].OV[n].step()&&(i.PA[o].OV[n].BY.TL=!1):"canvas"===i.C.H.AC&&i.PA[o].OV[n].paint();0===t&&(i.PA={},i.OV=[],i.stop())}},stop:function(e){null===ZC._n_(e)&&(e=!1);var i,t=this;if(e&&(t.bDead=!0),window.clearAnimFrame(t.C3),t.C.A0E(),t.C.PX=!1,ZC.AK(t.C.H.K)){t.C.KF(),window.setTimeout(function(){(i=ZC.AK(t.C.A.K+"-map"))&&t.C.AY.HN&&(-1===ZC.AV(["bubble","mixed","vbullet","hbullet","radar"],t.C.AF)&&1!==zingchart.SORTTRACKERS||t.C.AY.HN.sort(function(e,i){return ZC.AP.MY(e)>ZC.AP.MY(i)?1:-1}),i.innerHTML+=t.C.AY.HN.join(""))},33),t.C.A66(),t.RL=!1;for(var n=0,a=t.OV.length;n<a;n++)t.OV[n].SY=null;if(t.OV=[],t.PA={},e||ZC.AP.BZ("animation_end",t.C.A,{id:t.C.A.K,graphid:t.C.K}),null!==ZC._n_(t.onStop))try{t.onStop()}catch(l){}}}}),ZC.PB.TW=33,function(){for(var e=["ms","moz","webkit","o"],i=0,t=e.length;i<t&&!window.requestAnimFrame;++i)window.requestAnimFrame=window.requestAnimationFrame||window[e[i]+"RequestAnimationFrame"],window.cancelAnimFrame=window.cancelAnimationFrame||window[e[i]+"CancelAnimationFrame"]||window[e[i]+"CancelRequestAnimationFrame"];window.requestAnimFrame||(window.requestAnimFrame=function(e){return window.setTimeout(e,ZC.PB.TW)}),window.clearAnimFrame||(window.clearAnimFrame=function(e){window.clearTimeout(e)})}(),zingchart.bind(null,"dataparse",function(e,i){for(var t,n,a=0,l=i.graphset.length;a<l;a++)if(i.graphset[a].type&&-1!==ZC.AV(["pie","line","vline","area","varea","bar","vbar","hbar","line3d","area3d","bar3d","vbar3d","hbar3d"],i.graphset[a].type)&&i.graphset[a].nav){var o=i.graphset[a];ZC._todash_(o);var r=o.nav||{};ZC._todash_(r);var s,A,C,c=ZC.IG(r.threshold||"10%"),u=r.others||{text:"Others"},p=r.back||{},Z=r.slice||"0.3",h=o.series||[],d=[];if("pie"===i.graphset[a].type){var f=0;for(t=0;t<h.length;t++)h[t].values&&null!==ZC._n_(h[t].values[0])&&(f+=h[t].values[0]);c>0&&c<1&&(c*=f),s=[].concat(h);var _=0,g="";for(A=1,t=h.length-1;t>=0;t--)h[t].values&&null!==ZC._n_(h[t].values[0])&&h[t].values[0]<c&&(_+=h[t].values[0],g+=(h[t].text||"Item no."+A)+":"+h[t].values[0]+"<br>",h[t].slice=Z,d.push(h[t]),h.splice(t,1),A++);_>0&&(A>2?(C={values:[_],detach:!1,"data-group":[1],"tooltip-text":g=g.substring(0,g.length-4)},ZC._cp_(u,C),h.push(C),zingchart.bind(e.id,"plot_click",function(i){if(i.xdata.group){var t=zingchart.getLoader(i.id);if(!t)return;var n=zingchart.getGraph(t,i.graphid);for(var a in n.getAttributes())"pie-sel-"===a.substring(0,8)&&n.setAttribute(a,null);zingchart.exec(e.id,"setseriesdata",{data:d}),window.setTimeout(function(){var i=zingchart.exec(e.id,"getobjectinfo",{object:"node",plotindex:0,nodeindex:0}),t={id:"navpie_btnback",x:i.x,y:i.y,text:"< Back",anchor:"c",cursor:"hand"};ZC._cp_(p,t),zingchart.exec(e.id,"addobject",{type:"label",data:t})},1)}}),zingchart.bind(e.id,"label_click",function(i){if("navpie_btnback"===i.label.id){var t=zingchart.getLoader(i.id);if(!t)return;var n=zingchart.getGraph(t,i.graphid);for(var a in n.getAttributes())"pie-sel-"===a.substring(0,8)&&n.setAttribute(a,null);zingchart.exec(e.id,"removeobject",{type:"label",id:"navpie_btnback"}),zingchart.exec(e.id,"setseriesdata",{data:h})}})):o.series=[].concat(s))}else{var v=0,b=[];for(t=0;t<h.length;t++){if(b[t]=0,h[t].values&&h[t].values.length)for(n=0;n<h[t].values.length;n++)b[t]+=ZC._a_(h[t].values[n]);v=ZC.BQ(v,b[t])}c>0&&c<1&&(c*=v),s=[].concat(h);var m=[],B=[];for(A=1,t=h.length-1;t>=0;t--)if(b[t]<c){if(h[t].values&&h[t].values.length)for(n=0;n<h[t].values.length;n++)m[n]=ZC._f_(m[n]||"0"),m[n]+=h[t].values[n],B[n]=B[n]||"",B[n]+=(h[t].text||"Item no."+A)+":"+h[t].values[n]+"<br>";d.push(h[t]),h.splice(t,1),A++}if(m.length)if(A>2){for(n=0;n<B.length;n++)B[n]=B[n].substring(0,B[n].length-4);C={values:m,detach:!1,"data-group":[1],"data-tt-text":B,"tooltip-text":"%data-tt-text"},ZC._cp_(u,C),h.push(C),zingchart.bind(e.id,"plot_click",function(i){if(i.xdata.group){if(!zingchart.getLoader(i.id))return;zingchart.exec(e.id,"setseriesdata",{data:d}),window.setTimeout(function(){var i=zingchart.exec(e.id,"getobjectinfo",{object:"plotarea"}),t={id:"navxy_btnback",x:i.x+i.width/2,y:i.y,text:"< Back",anchor:"c",cursor:"hand"};ZC._cp_(p,t),zingchart.exec(e.id,"addobject",{type:"label",data:t})},1)}}),zingchart.bind(e.id,"label_click",function(i){if("navxy_btnback"===i.label.id){if(!zingchart.getLoader(i.id))return;zingchart.exec(e.id,"removeobject",{type:"label",id:"navxy_btnback"}),zingchart.exec(e.id,"setseriesdata",{data:h})}})}else o.series=[].concat(s)}}return i});}
